Hi Capewell V8 builds on Ubuntu 15 using the build steps from your post. Thanks again.
V8 commit: c304d414d837c665c2d5ee6231269eeced986686 Host system: Ubuntu 15 Cross toolchain: git://github.com/raspberrypi/tools.git (commit 648a6eeb1e3c2b40af4eb34d88941ee0edeb3e9a) / Casper Agerskov Den onsdag den 15. juni 2016 kl. 22.42.19 UTC+2 skrev Casper Agerskov: > > Thank you, Capewell. :) I'll try with your instructions on an x86 Linux > system. > > In case it's any help to others, I managed to get a bit further with my > OSX host, raspberry target build. Editing python module > build/gyp/pylib/gyp/common.py so that the method GetFlavor() returns > "linux" rather than "mac" disables the xcode emulation that causes the > build system to add host specific flags to the compiler command line - even > when cross compiling for ARM. This awful hack allows most of V8 to build. > However for some reason, gyp tries to build gmock/gtest for the host > system using clang with compiler options for the target system (the same > options that the cross compiler is invoked with). What a mess. > > > > Den onsdag den 15. juni 2016 kl. 12.57.30 UTC+2 skrev M Capewell: >> >> On Linux, we've used the following successfully: >> GYPFLAGS="-Dlinux_use_bundled_gold=0 -Dtarget_arch=arm" >> tools/cross_build_gcc.sh <path to your toolchain>/bin/arm-linux-gnueabihf- >> arm.release armfpu=vfp armfloatabi=hard arm_version=6 >> >> You may also want to use 'export LDFLAGS="-static"' beforehand to get a >> statically linked binary, if your local library versions don't match those >> on your Pi. >> >> We've also found that modern Linaro toolchains will link ARMv7-based >> support libraries by default, and you may need to build our own toolchain >> for ARMv6 to get things working on Pi Zero or 1. Google for 'crosstool-ng' >> for help on building your own toolchain. >> > -- -- v8-users mailing list [email protected] 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 [email protected]. For more options, visit https://groups.google.com/d/optout.
