Kernel compilation error
I'm trying to compile the linux-188.8.131.52 kernel on ubuntu 11.04
I untared the archive, did a "make defconfig"
and I get this error when running
fs/binfmt_aout.c: Assembler messages:
fs/binfmt_aout.c:156: Error: operand type mismatch for `cmp'
make: *** [fs/binfmt_aout.o] Error 1
make: *** [fs] Error 2
Can someone assist me ?
First, never built the kernel as root - only to install it after building. Build the kernel as a regular user instead. You also have to tweak the Makefile as well as create the .config file. Read the HowToFaq on building a kernel on the Ubuntu web site. One other thing, the 2.6.12 kernel is very old and not one you would run on a 11.04 system - you would need to rebuild all system libraries and applications as well, and probably build it all with an older version of gcc.