Error building Dart on Ubuntu 64 bit

36 views
Skip to first unread message

Ivo Balbaert

unread,
Aug 6, 2012, 4:10:47 AM8/6/12
to mi...@dartlang.org

Hello fellow dartisans,

 

I try to build the bleeding_edge release on a Ubuntu 12.04 LTS 64-bit machine, after preparing it according the wiki instructions and getting the sources successfully. Building the standalone Dart VM works and all tests pass.

When building the entire tree with the command ./tools/build.py--arch=x64

I got this error: ... in third_party/v8/src:

Error: #error Target architecture ia32 is only supported on ia32 host

Error 1: BUILD FAILED

The message seems to say clearly that v8 is only supported on a 32 bit os, but I find this hard to believe. I searched for an answer but could not find it, sorry if I overlooked it.

Could anyone clarify this error, and possibly suggest a work-around ?

Thanks!

 

Ivo Balbaert

 

 

Kevin Millikin

unread,
Aug 6, 2012, 4:34:14 AM8/6/12
to Ivo Balbaert, mi...@dartlang.org
Hi Ivo,

It seems like the V8 target architecture is not getting set properly.  This worked for me on Ubuntu 10.04:

export GYP_DEFINES=v8_target_arch=x64
gclient runhooks
build.py --arch=x64

Ivo Balbaert

unread,
Aug 6, 2012, 6:06:11 AM8/6/12
to mi...@dartlang.org
Thanks for the quick response Kevin!
This seems to have worked, in the output I get a BUILD FINISHED message somewhere, and everything in the out folder seems to be there.
One remark still, the build script does not complete normally, it now stalls at ACTION Running apidoc, but this is less important. 

Ivo Balbaert


Op maandag 6 augustus 2012 10:10:47 UTC+2 schreef Ivo Balbaert het volgende:
Reply all
Reply to author
Forward
0 new messages