Hello, thanks for looking. I am attempting to cross-compile V8 from my
Ubuntu 9.10 i686 laptop for an ARM processor, after my attempts at
natively compiling it on the device failed (apparently running out of
memory, see here: 
http://groups.google.com/group/v8-users/browse_thread/thread/a2b29d515fd276f1
).

I have attempted to build my own ARM toolchain on my development
laptop, following many different guides all failing at some point. The
only hope has been pre-compiled toolchains, of which I've found 2:
which contain GCC versions 4.0.1 and 4.2.4.

Using both ARM toolchain versions (and I suspect 4.0.1 is too old to
build V8 properly anyway), I'm using the following commands to build:

    svn checkout http://v8.googlecode.com/svn/trunk/ v8
    CC="arm-linux-gcc" LD="arm-linux-ld" AR="arm-linux-ar" CXX="arm-
linux-g++" CPP="arm-linux-cpp" RANLIB="arm-linux-ranlib" scons
arch=arm

And with both versions it fails. Here's the last 5 lines of the build
process:

     arm-linux-g++ -o obj/release/platform-linux.o -c -Wall -Werror -W
-Wno-unused-parameter -Wnon-virtual-dtor -pedantic -O3 -fomit-frame-
pointer -fdata-sections -ffunction-sections -ansi -fno-rtti -fno-
exceptions -fvisibility=hidden -Wall -Werror -W -Wno-unused-parameter -
Wnon-virtual-dtor -pedantic -O3 -fomit-frame-pointer -fdata-sections -
ffunction-sections -ansi -DV8_TARGET_ARCH_ARM -
DENABLE_VMSTATE_TRACKING -DENABLE_LOGGING_AND_PROFILING -
DENABLE_DEBUGGER_SUPPORT -Isrc src/platform-linux.cc
     /tmp/ccfLh9fu.s: Assembler messages:
     /tmp/ccfLh9fu.s:88: Error: bad instruction `int $3'
     scons: *** [obj/release/platform-linux.o] Error 1
     scons: building terminated because of errors.

Any guidance would be much appreciated, thanks in advance!

-- 
v8-users mailing list
[email protected]
http://groups.google.com/group/v8-users

Reply via email to