Skip to content

Instantly share code, notes, and snippets.

@txomon
Created May 30, 2015 12:21
Show Gist options
  • Save txomon/632aadfa76882cebd0a1 to your computer and use it in GitHub Desktop.
Save txomon/632aadfa76882cebd0a1 to your computer and use it in GitHub Desktop.
kernel compilation bug
[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
@kostaz
Copy link

kostaz commented Jan 21, 2016

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