Find the answer to your Linux question:
Results 1 to 2 of 2
I'm running an apt-gotten kernel right now (kernel-image-2.6.8-10-amd64-generic), and I want to compile a new 2.6.9 kernel for various reasons. However, Code: CHK include/linux/version.h CC scripts/mod/empty.o cc1: error: code model ...
  1. #1
    Linux Newbie
    Join Date
    May 2004
    Location
    Boston, MA
    Posts
    246

    Kernel won't compile: core model 'the kernel' not support...

    I'm running an apt-gotten kernel right now (kernel-image-2.6.8-10-amd64-generic), and I want to compile a new 2.6.9 kernel for various reasons. However,
    Code:
      CHK       include/linux/version.h
      CC        scripts/mod/empty.o
    cc1: error: code model `kernel' not supported in 32 bit mode
    make[2]:  *** [scripts/mod/empty.o] Error 1
    make[1]: *** [scripts/mod] Error 2
    make: *** [scripts] Error 2
    I can't make heads or tails of this output; can you?

  2. #2
    Just Joined!
    Join Date
    Jul 2006
    Posts
    1

    Smile

    Took me a while but here's the solution. You need to use a special 32bit chroot command before compiling your kernel and other utils.

    use:

    linux32 chroot /mnt/gentoo /bin/bash

Posting Permissions

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