You must enable the appropriate (HOST) foreign architecture before installing the cross-compiler.
dpkg --add-architecture armhf apt-get updateIt is recommended to install the cross environment like this as that pulls in all the necessary components:
apt-get install crossbuild-essential-<arch>i.e
apt-get install crossbuild-essential-armhfBut you can install just the compiler with
apt-get install gcc-arm-linux-gnueabihfNote that gcc-arm-linux-gnueabihf is (like the native 'gcc') just a metapackage, which brings int he current version of the actual compiler gcc-4.9-arm-linux-gnueabihf (c.f. gcc-4.9)
Were you able to do this?The guide from Derek is a bit outdated.You don't have to use the source from embedian (as its deprecated). In debian 9 the cross compiling packages are in the standard repository.Follow this steps instead - Installation for unstable - from https://wiki.debian.org/CrossToolchains - :You must enable the appropriate (HOST) foreign architecture before installing the cross-compiler.
dpkg --add-architecture armhf apt-get updateIt is recommended to install the cross environment like this as that pulls in all the necessary components:
apt-get install crossbuild-essential-<arch>i.e
apt-get install crossbuild-essential-armhfBut you can install just the compiler with
apt-get install gcc-arm-linux-gnueabihfNote that gcc-arm-linux-gnueabihf is (like the native 'gcc') just a metapackage, which brings int he current version of the actual compiler gcc-4.9-arm-linux-gnueabihf (c.f. gcc-4.9)
Everything else form the guide should be ok to follow. You could even try to install a newer eclipse version if you want, it works fine.PD. The step in which you get the error is optional. Derek uses it only to show how easy is to get the versions of the libraries you need for either architecture....
/usr/lib/arm-linux-gnueabihf
/usr/lib/gcc-cross/arm-linux-gnueabihf