I'm building a Raspbian kernel from the latest sources, and following the instructions at https://www.raspberrypi.org/documentati ... uilding.md
pretty much to the letter.
I'm building it on a fresh install of Debian 9 Stretch, on an 8 core PC.
The build of the kernel completes just fine .. no errors.
But when I get to installing the modules:
sudo make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- INSTALL_MOD_PATH=/media/paul/rootfs modules_install
I get some error messages about the compiler not being found, then a ton of INSTALL lines and then it ends with another error about the compiler not being found, despite just having built the kernel. When I then invoke the compiler with --version, it's there!
So when I run the above command, I get this ... (I added the testing of the compiler it's saying is missing!):
paul@paulux:~/rpi3/linux$ sudo make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- INSTALL_MOD_PATH=/media/paul/rootfs modules_install
./scripts/gcc-version.sh: line 26: arm-linux-gnueabihf-gcc: command not found
./scripts/gcc-version.sh: line 27: arm-linux-gnueabihf-gcc: command not found
make: arm-linux-gnueabihf-gcc: Command not found
make: arm-linux-gnueabihf-gcc: Command not found
INSTALL arch/arm/crypto/aes-arm-bs.ko
INSTALL arch/arm/crypto/aes-arm.ko
INSTALL arch/arm/crypto/sha1-arm-neon.ko
-- then a ton more INSTALL lines, and then it all ends with:
INSTALL sound/usb/misc/snd-ua101.ko
INSTALL sound/usb/snd-usb-audio.ko
INSTALL sound/usb/snd-usbmidi-lib.ko
make: arm-linux-gnueabihf-gcc: Command not found
DEPMOD 4.14.31-v7+
paul@paulux:~/rpi3/linux$ arm-linux-gnueabihf-gcc --version
arm-linux-gnueabihf-gcc (crosstool-NG linaro-1.13.1+bzr2650 - Linaro GCC 2014.03) 4.8.3 20140303 (prerelease)
Copyright (C) 2013 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
Anyone any idea what's going on here? Or some other command missing?
~ Paul