Hi v8-users

I'm trying to build V8 for my raspberry board using a GCC cross compiler 
(arm-linux-gnueabi provided by linaro).   My host system is OS X (10.11.5).

My environment is set up for cross compilation using

export 
TOOL_PREFIX=/usr/local/linaro/arm-linux-gnueabihf-raspbian/bin/arm-linux-gnueabihf
export CXX=$TOOL_PREFIX-g++
export LINK=$TOOL_PREFIX-g++

.... and I build with 

make V=1    arm.release snapshot=off arm_version=6 armfpu=vfp 
armfloatabi=hard  hardfp=on

The build fails at first invocation of the compiler with output as follows 

/usr/local/linaro/arm-linux-gnueabihf-raspbian/bin/arm-linux-gnueabihf-g++ 
'-DCR_CLANG_REVISION=270823-1' '-DV8_TARGET_ARCH_ARM' 
'-DV8_DEPRECATION_WARNINGS' '-DV8_IMMINENT_DEPRECATION_WARNINGS' 
'-DV8_I18N_SUPPORT' '-DICU_UTIL_DATA_IMPL=ICU_UTIL_DATA_STATIC' 
'-DU_USING_ICU_NAMESPACE=0' '-DU_ENABLE_DYLOAD=0' '-DU_NOEXCEPT=' 
'-DU_STATIC_IMPLEMENTATION' '-DENABLE_HANDLE_ZAPPING' -I../. -I../.. 
-I../include -I../third_party/icu/source/i18n 
-I../third_party/icu/source/common  -isysroot 
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk
 
-O3 -gdwarf-2 -fstrict-aliasing -fvisibility=hidden -Werror 
-mmacosx-version-min=10.7 -arch i386 -Wall -Wendif-labels 
-Wno-unused-parameter -Wno-missing-field-initializers 
-Wno-gnu-zero-variadic-macro-arguments -fno-rtti -fno-exceptions 
-fvisibility-inlines-hidden -fno-threadsafe-statics -fno-strict-aliasing 
-MMD -MF 
/Users/casperagerskov/Build/V8/v8/out/arm.release/.deps//Users/casperagerskov/Build/V8/v8/out/arm.release/obj.target/v8_base/src/accessors.o.d.raw
 
  -c -o 
/Users/casperagerskov/Build/V8/v8/out/arm.release/obj.target/v8_base/src/accessors.o
 
../src/accessors.cc
arm-linux-gnueabihf-g++: error: i386: No such file or directory
arm-linux-gnueabihf-g++: error: unrecognized command line option 
‘-mmacosx-version-min=10.7’
arm-linux-gnueabihf-g++: error: unrecognized command line option ‘-arch’

Clearly,  the compile switches following  -isysroot are applicable for 
native compilation only.  Where do these CC flags come from? :)  . Any help 
will be greatly appreciated!


/ Casper Agerskov

-- 
-- 
v8-users mailing list
v8-users@googlegroups.com
http://groups.google.com/group/v8-users
--- 
You received this message because you are subscribed to the Google Groups 
"v8-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to v8-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to