环境:ubuntu 20.10
tqc@ubuntu:~/100ask_imx6ull-sdk/Linux-4.9.88$echo $ARCH
arm
tqc@ubuntu:~/100ask_imx6ull-sdk/Linux-4.9.88$echo $CROSS_COMPILE
arm-buildroot-linux-gnueabihf-
tqc@ubuntu:~/100ask_imx6ull-sdk/Linux-4.9.88$ bear --version
bear 2.4.3
tqc@ubuntu:~/100ask_imx6ull-sdk/Linux-4.9.88$ make --version
GNU Make 4.2.1
tqc@ubuntu:~/100ask_imx6ull-sdk/Linux-4.9.88$ gcc --version
gcc (Ubuntu 9.4.0-1ubuntu1~20.04.3) 9.4.0
编译内核出错情况:
tqc@ubuntu:~/100ask_imx6ull-sdk/Linux-4.9.88$ make mrproper
tqc@ubuntu:~/100ask_imx6ull-sdk/Linux-4.9.88$ make 100ask_imx6ull_defconfig
HOSTCC scripts/basic/fixdep
scripts/basic/fixdep.c:105:10: fatal error: sys/types.h: No such file or directory
105 | #include <sys/types.h>
| ^~~~~~~~~~~~~
compilation terminated.
make[1]: *** [scripts/Makefile.host:107: scripts/basic/fixdep] Error 1
make: *** [Makefile:445: scripts_basic] Error 2
tqc@ubuntu:~/100ask_imx6ull-sdk/Linux-4.9.88$