KernelDriverProgrammingCourse2015/Troubleshooting

From RevSpace
Revision as of 07:23, 22 July 2015 by Andrey (talk | contribs)
Jump to navigation Jump to search

Troubleshooting

Preparations

  • While compiling the kernel under Ubuntu you can get a beautiful error - "Your compiler is too buggy":
 $ make -j4 ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- dtbs
 CHK     include/config/kernel.release
 CHK     include/generated/uapi/linux/version.h
 CHK     include/generated/utsrelease.h
 make[1]: `include/generated/mach-types.h' is up to date.
 CHK     include/generated/timeconst.h
 CHK     include/generated/bounds.h
 CC      arch/arm/kernel/asm-offsets.s
 arch/arm/kernel/asm-offsets.c:54:2: error: #error Your compiler is too buggy; it is known to miscompile kernels
 #error Your compiler is too buggy; it is known to miscompile kernels
  ^
 arch/arm/kernel/asm-offsets.c:55:2: error: #error and result in filesystem corruption and oopses.
 #error and result in filesystem corruption and oopses.
  ^
 make[1]: *** [arch/arm/kernel/asm-offsets.s] Error 1
 make: *** [prepare0] Error 2

(It looks like GCC v4.8 is not welcome - it is too old, but this is just a guess)

Back to KernelDriverProgrammingCourse2015