16. dec. 2010 02.04 skrev AJ ONeal <[email protected]>:
> Isn't scons supposed to auto-guess my architecture when not cross-compiling?

Just because you are compiling on an ARMv7, it doesn't mean you want
to build a VM that doesn't work on an older CPU.

I think
export CFLAGS=-march=armv7-a
should work for you.  If you don't care about CPUs without VFP then
you should use
export CFLAGS=-march=armv7-a -DCAN_USE_VFP_INSTRUCTIONS=1

>
>
> touch foo.cc
> g++ -march=armv7-a -mtune=cortex-a8 -mfpu=vfp -dM -E foo.cc || grep -i ARM
> #define __ARMEL__ 1
> #define __arm__ 1
> #define __ARM_ARCH_7A__ 1
> #define __ARM_EABI__ 1
>
>
> svn checkout http://v8.googlecode.com/svn/trunk/ v8-read-only
> cd v8-read-only
> scons mode=debug snapshot=on library=shared
>
>
> g++ -o obj/debug/arm/macro-assembler-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_VMSTATE_TRACKING
> -DENABLE_LOGGING_AND_PROFILING -DV8_ENABLE_CHECKS -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"
>
>
> AJ ONeal
>
> --
> v8-users mailing list
> [email protected]
> http://groups.google.com/group/v8-users



-- 
Erik Corry, Software Engineer
Google Denmark ApS - Frederiksborggade 20B, 1 sal,
1360 København K - Denmark - CVR nr. 28 86 69 84

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

Reply via email to