Make clean: gcc not found

Hi, I am rebuilding the Linux kernel for a NANO device. “make ARCH=arm64 O=$TEGRA_KERNEL_OUT tegra_defconfig” was successful. But “make mrproper” or “make clean” generates the following error:

make: /l4t-gcc/gcc-linaro-7.3.1-2018.05-x86_64_aarch64-linux-gnu/bin/aarch64-linux-gnu-gcc: Command not found

I have set the environment variale:


Anyone can tell me how to fix the problem?



There is another line in the very top:
./scripts/ line 25: /l4t-gcc/gcc-linaro-7.3.1-2018.05-x86_64_aarch64-linux-gnu/bin/aarch64-linux-gnu-gcc: No such file or directory

looks like I need to pass the cross compile prefix in the command line. Any help is appreciated.


Just found out, the CROSS_COMPILE variable was not properly defined. Sorry for the bothering.