Please take a look at http://code.google.com/p/v8/wiki/CrossCompilingForARM. Also note that the scons build will be going away, see http://code.google.com/p/v8/wiki/BuildingWithGYP for information on the GYP build.
Regards, Søren On Thu, Oct 20, 2011 at 16:02, Laurent <[email protected]> wrote: > Hi, thanks for reading. I am attempting to cross-compile V8 from my > Ubuntu station for an ARM processor using the following Makefile: > > V8_DIR=vendor/1.3.16 > > CPPPATH=/usr/local/angstrom/arm/bin/ > TOOL_PREFIX=/usr/local/angstrom/arm/bin/arm-angstrom-linux-gnueabi > CXX=${TOOL_PREFIX}-g++ > AR=${TOOL_PREFIX}-ar > RANLIB=${TOOL_PREFIX}-ranlib > CC=${TOOL_PREFIX}-gcc > LD=${TOOL_PREFIX}-ld > > > CFLAGS += "-march=armv7-a" > CFLAGS += "-mfpu=vfpv3" > > all-v8: ${BUILD}/libv8.a > > ${BUILD}/libv8.a: ${OBJS} > @echo Building libv8.a > @(cd ${V8_DIR}; echo CXX=${CXX}; scons mode=debug library=shared > os=linux wordsize=32 snapshot=off arch=arm sample=shell) > > The result running make shows that g++ is used instead of arm-angstrom- > linux-gnueabi-g++ > > Building libv8.a > CXX=/usr/local/angstrom/arm/bin/arm-angstrom-linux-gnueabi-g++ > scons: Reading SConscript files ... > scons: done reading SConscript files. > scons: Building targets ... > g++ -o obj/debug/arm/debug-arm.os -c -Wall -Werror -W -Wno-unused- > parameter -Wnon-virtual-dtor -pedantic -g -O0 -ansi -fno-rtti -fno- > exceptions -fvisibility=hidden -Wall -Werror -W -Wno-unused-parameter - > Wnon-virtual-dtor -pedantic -g -O0 -ansi -fPIC -DV8_TARGET_ARCH_ARM - > DENABLE_DISASSEMBLER -DDEBUG -DV8_SHARED -DENABLE_DEBUGGER_SUPPORT - > DV8_NATIVE_REGEXP -DV8_ENABLE_CHECKS -DENABLE_LOGGING_AND_PROFILING - > Isrc src/arm/debug-arm.cc > > What I am doing wrong ? > > Any help is appreciated > > -- > 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
