Created
May 30, 2015 12:21
-
-
Save txomon/632aadfa76882cebd0a1 to your computer and use it in GitHub Desktop.
kernel compilation bug
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[rtai@localhost linux-3.8.13]$ make clean | |
CLEAN arch/x86/tools | |
CLEAN .tmp_versions | |
[rtai@localhost linux-3.8.13]$ make | |
make[1]: Nothing to be done for 'all'. | |
HOSTCC scripts/basic/fixdep | |
HOSTCC arch/x86/tools/relocs | |
CHK include/generated/uapi/linux/version.h | |
CHK include/generated/utsrelease.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/rtai/rtai/src/linux-3.8.13/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:100:30: fatal error: linux/compiler-gcc5.h: No such file or directory | |
compilation terminated. | |
/home/rtai/rtai/src/linux-3.8.13/./Kbuild:35: recipe for target 'kernel/bounds.s' failed | |
make[1]: *** [kernel/bounds.s] Error 1 | |
Makefile:831: recipe for target 'prepare0' failed | |
make: *** [prepare0] Error 2 |
I'm trying to compile Linux Kernel 3.4.69 with gcc --version >= 5
and encountered this error.
What should be done to solve this issue?
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Just in case someone hits this error, it means that your kernel version (3.8.13) in this case, does not have include/linux/compiler-gcc5.h file. Which is obviously needed if compiling with gcc --version >= 5