1
votes

I am trying to install a cross-compiler in Debian, but I encountered the following error:

arm-linux-gnueabihf-gcc: command not found

When I try to install it:

 apt-get install gcc-arm-linux-gnueabihf

It says unable to locate package gcc-arm-linux-gnueabihf (the tutorial I am following).

1
gcc-arm-linux-gnueabihf is currently only in sid (aka unstable). What version of debian do you have? - Marc Glisse
The debian version is Release 7.8 (wheezy) 32 bit, Kernel Linux 3.2.0-4-486 - user990639
It seems crosscompiling is truly deceased starting with Debian 8.0. The Emdebian.org site says "no longer supported, just use regular Debian" which points to wiki.debian.org. It in turn says "packages did not make it into jessie [i.e. 8.0]" and points back to emdebian.org. Really too bad, as it looked like Debian was making inroads in the embedded space (Raspbian etc) - MSalters

1 Answers

2
votes

Debian 9 already provides a collection of cross-compilers for various architectures, so following command is sufficient:

apt-get install gcc-arm-linux-gnueabihf

Alternatively you can use Buildroot. With this project you'll be able to compile everything from toolchain till root file system.