Error running Make Menuconfig - Debian Etch

Discussion in 'HOWTO-Related Questions' started by joelee, Jan 10, 2007.

  1. joelee

    joelee New Member

    Hi All, I trying to compile a new kernel on a fresh installed Debian Etch (test) system which came with 2.6.17-2. I need the new kernel to be 2.6.9...
    I am following this how-to guide:

    http://www.howtoforge.com/howto_linux_kernel_2.6_compile_debian

    After running make menuconfig I get the following error:

    Code:
    debian:/usr/src/linux# make menuconfig
      HOSTCC  scripts/basic/fixdep
    /bin/sh: gcc: command not found
    make[1]: *** [scripts/basic/fixdep] Error 127
    make: *** [scripts_basic] Error 2
    debian:/usr/src/linux# uname -a
    Linux debian 2.6.17-2-686 #1 SMP Wed Sep 13 16:34:10 UTC 2006 i686 GNU/Linux
    
    * Based on the output above it seems like I am missing GCC package or something. But, I think the how-to first command installs this.

    Any thoughts on what this problem could be. Thanks in advance for any help!

    FYI: I am new with linux this is my first few attempts to building a system. Apologies for obvious problem I should perhaps know about.
    -Joe
     
  2. joelee

    joelee New Member

    Per last post by me, I come to find out that first step of how-to:
    http://www.howtoforge.com/howto_linux_kernel_2.6_compile_debian
    is missing some options that should install GCC package.

    I found this other similar how-to:
    http://www.howtoforge.com/kernel_compilation_debian
    That has options that installs GCC...

    Falko, perhaps you can update document! See below:

    1st how-to:
    apt-get install kernel-package ncurses-dev fakeroot wget bzip2
    2nd how-to:
    apt-get install kernel-package libncurses5-dev fakeroot wget bzip2 build-essential udev

    After running second command all seems to work for me now.

    -Joe
     
  3. joelee

    joelee New Member

    New error problem compiling new kernel.

    I am now running into this error when compiling new kernel. Would appreciate any help with fixing this problem. Below is partial error output:

    After running cmd (as per how-to debian-kernel-compile_2.6):
    make-kpkg clean
    fakeroot make-kpkg --revision=custom.1.0 kernel_image
    (of course, I have change --revision= to my kernel name.)

    Code:
    include/asm/mpspec_def.h:78: warning: âpackedâ attribute ignored for field of type âunsigned char[6]â
    init/initramfs.c: In function âflush_windowâ:
    init/initramfs.c:401: warning: pointer targets in passing argument 1 of âflush_bufferâ differ in signedness
    init/initramfs.c: In function âunpack_to_rootfsâ:
    init/initramfs.c:442: warning: pointer targets in assignment differ in signedness
      LD      init/built-in.o
      HOSTCC  usr/gen_init_cpio
      CPIO    usr/initramfs_data.cpio
      GZIP    usr/initramfs_data.cpio.gz
      AS      usr/initramfs_data.o
      LD      usr/built-in.o
      CC      arch/i386/kernel/process.o
    In file included from include/asm/mpspec.h:5,
                     from include/asm/smp.h:18,
                     from include/linux/smp.h:17,
                     from include/linux/sched.h:23,
                     from arch/i386/kernel/process.c:17:
    [B]include/asm/mpspec_def.h:78: warning: âpackedâ attribute ignored for field of type âunsigned char[6]â
    arch/i386/kernel/process.c: In function âshow_regsâ:
    arch/i386/kernel/process.c:252: warning: pointer targets in passing argument 2 of âshow_traceâ differ in signedness
    {standard input}: Assembler messages:
    {standard input}:654: Error: suffix or operands invalid for `mov'
    {standard input}:655: Error: suffix or operands invalid for `mov'
    {standard input}:846: Error: suffix or operands invalid for `mov'
    {standard input}:847: Error: suffix or operands invalid for `mov'
    {standard input}:918: Error: suffix or operands invalid for `mov'[/B]
    {standard input}:919: Error: suffix or operands invalid for `mov'
    {standard input}:1023: Error: suffix or operands invalid for `mov'
    {standard input}:1024: Error: suffix or operands invalid for `mov'
    {standard input}:1034: Error: suffix or operands invalid for `mov'
    {standard input}:1046: Error: suffix or operands invalid for `mov'
    make[2]: *** [arch/i386/kernel/process.o] Error 1
    make[1]: *** [arch/i386/kernel] Error 2
    make[1]: Leaving directory `/usr/src/linux-2.6.9'
    make: *** [debian/stamp-build-kernel] Error 2
    Thanks for any help!
    joe
     
  4. falko

    falko Super Moderator ISPConfig Developer

    I suggest you install Debian Sarge instead of Etch if you need an old kernel. If you downgrade from 2.6.17 to 2.6.9, you will get problems with udev and devfs (new kernels use udev, old ones devfs).
     
  5. joelee

    joelee New Member

    Thanks for the info!
     

Share This Page