This seems more like a toolchain issue than a build script issue. Get rid of "-mcpu=arm926ej-s" and it should work. If you want to target 926 then use "-mtune=arm926ej-s". In general I prefer using march/mtune to mcpu, and the wiki page you mention only uses mtune not mcpu.
Cheers, Rodolph. On 21 January 2011 21:47, kb <[email protected]> wrote: > Hi, I'm trying to cross compile v8 for an arm926ej-s (which is > armv5te). Following the instructions on the following wiki: > > http://code.google.com/p/v8/wiki/CrossCompilingForARM > > My build ends up bailing with the "For thumb inter-working we require > an architecture which supports blx" error. Surely this is a simple > misconfiguration in the build scripts. Can anyone suggest an easy > workaround? > > ... > /opt/codesourcery/arm-2009q1/bin/arm-none-linux-gnueabi-g++ -o obj/ > release/api.o -c -mthumb -mcpu=arm926ej-s -march=armv5te -mfloat- > abi=soft -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 -mthumb - > mcpu=arm926ej-s -march=armv5te -mfloat-abi=soft -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/api.cc > /opt/codesourcery/arm-2009q1/bin/arm-none-linux-gnueabi-g++ -o obj/ > release/arm/macro-assembler-arm.o -c -mthumb -mcpu=arm926ej-s - > march=armv5te -mfloat-abi=soft -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 > -mthumb -mcpu=arm926ej-s -march=armv5te -mfloat-abi=soft -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/arm/macro-assembler-arm.cc > src/arm/macro-assembler-arm.cc:61:3: error: #error "For thumb inter- > working we require an architecture which supports blx" > scons: *** [obj/release/arm/macro-assembler-arm.o] Error 1 > scons: building terminated because of errors. > > -- > 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
