It is mandatory when you need to croscompile for ARM on 32 bit system where CXX and LINK are already pointing to the ARM compiler. So making the right 32bit clang executable for CXX(host) is mandatory - at least for those who lost faith not being able to compile for ARM on the 32 bit linux.
On Friday, March 13, 2015 at 10:41:00 AM UTC+1, Jakob Kummerow wrote: > > make ia32.release GYPFLAGS=-Dclang=0 should be enough to fall back to the > system toolchain. (Maybe we should expose that as a Makefile option... but > then it's rarely needed.) > > On Fri, Mar 13, 2015 at 9:40 AM, Jochen Eisinger <joc...@chromium.org > <javascript:>> wrote: > >> The clang binary included with v8 is a 64bit binary. >> >> If you want to compile on a 32bit host, you have to provide your own >> compiler (by specifying CC, CXX, CPP, and LINK variables to make) >> >> best >> -jochen >> >> On Thu, Mar 12, 2015 at 2:04 PM David Xanatos <xanato...@gmail.com >> <javascript:>> wrote: >> >>> i have problems building the v8 engine on ubuntu x86 >>> >>> i get strange errors >>> >>> david@ubuntu:~/test/v8$ make ia32.release library=shared >>> PYTHONPATH="/home/david/test/v8/tools/generate_shim_headers:/home/david/test/v8/build::/home/david/test/v8/build/gyp/pylib:" >>> >>> \ >>> GYP_GENERATORS=make \ >>> build/gyp/gyp --generator-output="out" build/all.gyp \ >>> -Ibuild/standalone.gypi --depth=. \ >>> -Dv8_target_arch=ia32 \ >>> \ >>> \ >>> -S.ia32.release -Dcomponent=shared_library >>> -Dv8_enable_backtrace=1 -Darm_fpu=default -Darm_float_abi=default >>> make[1]: Entering directory `/home/david/test/v8/out' >>> CC(target) >>> /home/david/test/v8/out/ia32.release/obj.target/icudata/third_party/icu/linux/icudtl_dat.o >>> /home/david/test/v8/third_party/llvm-build/Release+Asserts/bin/clang: 1: >>> /home/david/test/v8/third_party/llvm-build/Release+Asserts/bin/clang: @8: >>> not found >>> /home/david/test/v8/third_party/llvm-build/Release+Asserts/bin/clang: 1: >>> /home/david/test/v8/third_party/llvm-build/Release+Asserts/bin/clang: >>> cannot open j >>> >>> >>> >>> q��zi� d� v��GX.� 0@ y 2 0*p!: No such file >>> /home/david/test/v8/third_party/llvm-build/Release+Asserts/bin/clang: 2: >>> /home/david/test/v8/third_party/llvm-build/Release+Asserts/bin/clang: B� � >>> : not found >>> /home/david/test/v8/third_party/llvm-build/Release+Asserts/bin/clang: 1: >>> /home/david/test/v8/third_party/llvm-build/Release+Asserts/bin/clang: ELF : >>> not found >>> /home/david/test/v8/third_party/llvm-build/Release+Asserts/bin/clang: 1: >>> /home/david/test/v8/third_party/llvm-build/Release+Asserts/bin/clang: �: >>> not found >>> /home/david/test/v8/third_party/llvm-build/Release+Asserts/bin/clang: 2: >>> /home/david/test/v8/third_party/llvm-build/Release+Asserts/bin/clang: Q ! >>> �MQ�k�P@��PD @2�� ��@� : not found >>> /home/david/test/v8/third_party/llvm-build/Release+Asserts/bin/clang: 3: >>> /home/david/test/v8/third_party/llvm-build/Release+Asserts/bin/clang: @ ! >>> �@$��� : not found >>> /home/david/test/v8/third_party/llvm-build/Release+Asserts/bin/clang: 1: >>> /home/david/test/v8/third_party/llvm-build/Release+Asserts/bin/clang: � : >>> not found >>> /home/david/test/v8/third_party/llvm-build/Release+Asserts/bin/clang: 1: >>> /home/david/test/v8/third_party/llvm-build/Release+Asserts/bin/clang: �� � >>> �@: not found >>> /home/david/test/v8/third_party/llvm-build/Release+Asserts/bin/clang: 3: >>> /home/david/test/v8/third_party/llvm-build/Release+Asserts/bin/clang: � : >>> not found >>> /home/david/test/v8/third_party/llvm-build/Release+Asserts/bin/clang: 8: >>> /home/david/test/v8/third_party/llvm-build/Release+Asserts/bin/clang: : not >>> found >>> /home/david/test/v8/third_party/llvm-build/Release+Asserts/bin/clang: 9: >>> /home/david/test/v8/third_party/llvm-build/Release+Asserts/bin/clang: A@� R >>> � : not found >>> /home/david/test/v8/third_party/llvm-build/Release+Asserts/bin/clang: 1: >>> /home/david/test/v8/third_party/llvm-build/Release+Asserts/bin/clang: �� : >>> not found >>> /home/david/test/v8/third_party/llvm-build/Release+Asserts/bin/clang: >>> 11: /home/david/test/v8/third_party/llvm-build/Release+Asserts/bin/clang: >>> @D�E�� a � L @ @� >>> n : not found >>> /home/david/test/v8/third_party/llvm-build/Release+Asserts/bin/clang: >>> 12: /home/david/test/v8/third_party/llvm-build/Release+Asserts/bin/clang: >>> Syntax error: "(" unexpected >>> make[1]: *** >>> [/home/david/test/v8/out/ia32.release/obj.target/icudata/third_party/icu/linux/icudtl_dat.o] >>> >>> Error 2 >>> make[1]: Leaving directory `/home/david/test/v8/out' >>> make: *** [ia32.release] Error 2 >>> david@ubuntu:~/test/v8$ >>> >>> >>> >>> on ubuntu x64 all works as it should >>> >>> whats wrong here? >>> >>> -- >>> -- >>> v8-users mailing list >>> v8-u...@googlegroups.com <javascript:> >>> 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+u...@googlegroups.com <javascript:>. >>> For more options, visit https://groups.google.com/d/optout. >>> >> -- >> -- >> v8-users mailing list >> v8-u...@googlegroups.com <javascript:> >> 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+u...@googlegroups.com <javascript:>. >> For more options, visit https://groups.google.com/d/optout. >> > > -- -- 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.