How to Solve Linux Kernel Compile Error

Linux Kernel Compile Error 1:
make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- bcm2709_defconfig
make[1]: *** [scripts/Makefile.host:9: scripts/kconfig/lexer.lex.c] Error 127
make: *** [Makefile:568: menuconfig] Error 2
Solution: Install the lexical parser flex, and the syntactic parser bison, respectively.
apt install flex
apt install bison

 

Linux Kernel Compile Error 2:

make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- zImage modules dtbs
Report an error: include/generated/timeconst.h' failed

Solution:
sudo apt-get install bc

Similar Posts: