Skip to content

Instantly share code, notes, and snippets.

@murilopontes
Created December 11, 2016 23:31
Show Gist options
  • Save murilopontes/0557a21ec3407ca4ac1dbd847b05a9d5 to your computer and use it in GitHub Desktop.
Save murilopontes/0557a21ec3407ca4ac1dbd847b05a9d5 to your computer and use it in GitHub Desktop.
echo deb http://emdebian.org/tools/debian/ jessie main > /etc/apt/sources.list.d/crosstools.list
apt-get install -y curl
curl http://emdebian.org/tools/debian/emdebian-toolchain-archive.key | sudo apt-key add -
sudo dpkg --add-architecture arm64
sudo dpkg --add-architecture armel
sudo dpkg --add-architecture armhf
sudo dpkg --add-architecture mips
sudo dpkg --add-architecture mipsel
sudo dpkg --add-architecture powerpc
sudo dpkg --add-architecture ppc64el
sudo apt-get update
sudo apt-get install crossbuild-essential-arm64
sudo apt-get install crossbuild-essential-armel
sudo apt-get install crossbuild-essential-armhf
sudo apt-get install crossbuild-essential-mipsel
# sudo apt-get install crossbuild-essential-ppc64el
# I found problems with powerpc toolchain
# sudo apt-get install crossbuild-essential-powerpc
# libc6:powerpc is broken
# Unpacking libc6:powerpc (2.19-18+deb8u6) ...
# dpkg: error processing archive /var/cache/apt/archives/libc6_2.19-18+deb8u6_powerpc.deb (--unpack):
# trying to overwrite shared '/lib/ld.so.1', which is different from other instances of package libc6:powerpc
# remove broken powerpc toolchain
# sudo apt-get remove libatomic1:powerpc libc6-dev:powerpc libgcc1:powerpc libgomp1:powerpc libstdc++6:powerpc crossbuild-essential-powerpc libgcc-4.9-dev:powerpc libstdc++-4.9-dev:powerpc g++-4.9-powerpc-linux-gnu gcc-4.9-powerpc-linux-gnu g++-powerpc-linux-gnu gcc-powerpc-linux-gnu
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment