I've been trying to cross build V8 for the Raspberry Pi like this:
sudo apt-get install gcc-arm-linux-gnueabihf g++-arm-linux-gnueabihf g++-multilib-arm-linux-gnueabihf
cd ~/
mkdir ~/build/
cd ~/build/
git clone https://chromium.googlesource.com/chromium/tools/depot_tools.git
export PATH=~/build/depot_tools:"$PATH"
fetch v8
cd v8
make arm.release snapshot=off arm_version=6 armfpu=vfp
However it won't compile for so many different reasons. What am I doing wrong?
Cross Compiling V8 for Raspberry Pi on Ubuntu 16.04 LTS x64.
First get the cross compiler and necessary libraries:
Then get depot tools, which will retrieve V8.
Next set the path to depot tools and retrieve the latest version of V8.
Now lets prepare the cross build script for building.
Add -4.9 to the end of CXX,CC,LD, and LINK. So it should look like:
Save and exit.
Now we have to create a link to asm-generic for the headers to be found while compiling.
Now we can start compiling.