Find the answer to your Linux question:
Results 1 to 2 of 2
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1

    Kernel compilation error

    I'm trying to compile the linux- kernel on ubuntu 11.04

    I untared the archive, did a "make defconfig"
    and I get this error when running
    "sudo make":

    fs/binfmt_aout.c: Assembler messages:
    fs/binfmt_aout.c:156: Error: operand type mismatch for `cmp'
    make[1]: *** [fs/binfmt_aout.o] Error 1
    make: *** [fs] Error 2

    Can someone assist me ?

  2. #2
    Linux Guru Rubberman's Avatar
    Join Date
    Apr 2009
    I can be found either 40 miles west of Chicago, in Chicago, or in a galaxy far, far away.
    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.
    Sometimes, real fast is almost as good as real time.
    Just remember, Semper Gumbi - always be flexible!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts