Comment #6 on issue 836 by [email protected]: armv5tel compilation error
in macro-assembler-arm.cc "For thumb inter-working we require an
architecture which supports blx"
http://code.google.com/p/v8/issues/detail?id=836
When I change v8/SConstruct, it does not seem to change the flags during
compilation.
136 'gcc': {
137 'all': {
138 'CCFLAGS':
['$DIALECTFLAGS', '$WARNINGFLAGS','-march=armv6'],
139 'CXXFLAGS':
['$CCFLAGS', '-fno-rtti', '-fno-exceptions', '-march=armv6'],
140 },
I'm using berkelium and the build finishes as follows:
arm-linux-gnueabi-g++ '-DENABLE_LOGGING_AND_PROFILING' '-DENABLE_DEBUGGER_SUPPORT' '-DENABLE_VMSTATE_TRACKING' '-DV8_TARGET_ARCH_ARM' '-DNO_TCMALLOC' '-DNO_HEAPCHECKER' '-DDISABLE_NACL' '-DCHROMIUM_BUILD' '-DENABLE_REMOTING=1' '-DENABLE_GPU=1' '-DENABLE_EGLIMAGE=1' '-DNDEBUG' '-DNVALGRIND' '-DDYNAMIC_ANNOTATIONS_ENABLED=0'
-Iv8/src
-Iv8/src/arm -pthread -fno-exceptions -Wno-unused-parameter
-Wno-missing-field-initializers -D_FILE_OFFSET_BITS=64 -fvisibility=hidden
-pipe -fno-strict-aliasing -Wno-deprecated -Wno-format -fno-ident
-fdata-sections -ffunction-sections -fomit-frame-pointer -O3 -fno-tree-vrp
-fno-rtti -fno-threadsafe-statics -fvisibility-inlines-hidden -Wno-abi -MMD
-MF
out/Release/.deps/out/Release/obj.target/v8_base/v8/src/arm/macro-assembler-arm.o.d.raw
-c -o out/Release/obj.target/v8_base/v8/src/arm/macro-assembler-arm.o
v8/src/arm/macro-assembler-arm.cc
v8/src/arm/macro-assembler-arm.cc:61:3: error: #error "For thumb
inter-working we require an architecture which supports blx"
make: *** [out/Release/obj.target/v8_base/v8/src/arm/macro-assembler-arm.o]
Error 1
I've also tried to delete the mk files generated by gyp in v8/tools/gyp,
but they generated again without the correct flags.
This is my environment:
export CROSSTOOL=arm-linux-gnueabi
export CXX=$CROSSTOOL-g++
export CC=$CROSSTOOL-gcc
export AR=$CROSSTOOL-ar
export AS=$CROSSTOOL-as
export RANLIB=$CROSSTOOL-ranlib
export CFLAGS="-I/usr/arm-linux-gnueabi/include/gtk-2.0
-I/usr/arm-linux-gnueabi/include/glib-2.0 -march=armv6 -mfpu=vfp
-mfloat-abi=softfp"
export CCFLAGS=$CFLAGS
export CXXFLAGS="-I/usr/arm-linux-gnueabi/include/gtk-2.0
-I/usr/arm-linux-gnueabi/include/glib-2.0/
-I/usr/arm-linux-gnueabi/lib/glib-2.0/include/
-I/usr/arm-linux-gnueabi/include/pango-1.0
-I/usr/arm-linux-gnueabi/include/cairo/
-I/usr/arm-linux-gnueabi/include/librsvg-2 -O3 -march=armv6 -mfpu=vfp
-mfloat-abi=softfp"
export GYP_DEFINES="target_arch=arm disable_nacl=1 linux_use_tcmalloc=0
armv6=1 arm_thumb=0 use_libjpeg_turbo=0"
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev