Hi everyone! When I was flowing the steps in this link to compile linux kernel for my board I have got this issue while I try to compile kernel linux: Code: In file included from include/linux/compiler.h:54:0, from include/uapi/linux/stddef.h:1, from include/linux/stddef.h:4, from /home/oem/imx6-udoo-board/linux_kernel/include/uapi/linux/posix_types.h:4, from include/uapi/linux/types.h:13, from include/linux/types.h:5, from include/linux/mod_devicetable.h:11, from scripts/mod/devicetable-offsets.c:2: include/linux/compiler-gcc.h:106:1: fatal error: linux/compiler-gcc7.h: No such file or directory #include gcc_header(__GNUC__) ^~~~ compilation terminated. scripts/Makefile.build:204: recipe for target 'scripts/mod/devicetable-offsets.s' failed make[2]: *** [scripts/mod/devicetable-offsets.s] Error 1 scripts/Makefile.build:455: recipe for target 'scripts/mod' failed make[1]: *** [scripts/mod] Error 2 make[1]: *** Waiting for unfinished jobs.... CHK include/generated/utsrelease.h HOSTCC scripts/dtc/dtc-lexer.lex.o UPD include/generated/utsrelease.h HOSTCC scripts/dtc/dtc-parser.tab.o Generating include/generated/mach-types.h CC kernel/bounds.s In file included from include/linux/compiler.h:54:0, from include/uapi/linux/stddef.h:1, from include/linux/stddef.h:4, from /home/oem/imx6-udoo-board/linux_kernel/include/uapi/linux/posix_types.h:4, from include/uapi/linux/types.h:13, from include/linux/types.h:5, from include/linux/page-flags.h:8, from kernel/bounds.c:9: include/linux/compiler-gcc.h:106:1: fatal error: linux/compiler-gcc7.h: No such file or directory #include gcc_header(__GNUC__) ^~~~ compilation terminated. /home/oem/imx6-udoo-board/linux_kernel/./Kbuild:35: recipe for target 'kernel/bounds.s' failed make[1]: *** [kernel/bounds.s] Error 1 Makefile:892: recipe for target 'prepare0' failed make: *** [prepare0] Error 2 make: *** Waiting for unfinished jobs.... HOSTLD scripts/dtc/dtc Makefile:529: recipe for target 'scripts' failed make: *** [scripts] Error 2 I try many ways to solve this. But, this still happen. So, I need yours help Hope to see your feedback! Thanks
The instruction is based on a host in Ubuntu 14. On what host sytem OS are you compiling? Perhaps you need extra or other libraries. Google for the error combined with your OS version.
Sorry for my late feedback! My host OS is ubuntu 18.04 version. Is this suitable for compile this kernel?