Hi, It looks as if __arm__ is not defined by GCC when compiling. The pre-processor symbol __arm__ throughout the codebase to check whether we are compiling for an ARM platform. The pre-processor symbol V8_TARGET_ARCH_ARM is used to set whether the code generated by V8 should be for ARM. When building for the simulator V8_TARGET_ARCH_ARM is defined but __arm__ is not.
You can use g++ -dM -E - < /dev/null to get a list of the defied pre-processor symbols. Regards, Søren On Wed, Jun 23, 2010 at 19:05, TooTallNate <[email protected]> wrote: > 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 > -- v8-users mailing list [email protected] http://groups.google.com/group/v8-users
