Find the answer to your Linux question:
Results 1 to 8 of 8
I am attempting a simple kernel build with Redhat Desktop 4, at least I thought I was. I am having repeated problems with the following error: [root@hehl2 build]# make bzImage ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Apr 2005
    Location
    Lucasvile, OH
    Posts
    19

    No rule to make target `init/main.o', needed by `init/built-


    I am attempting a simple kernel build with Redhat Desktop 4, at least I thought I was. I am having repeated problems with the following error:

    [root@hehl2 build]# make bzImage
    CHK include/linux/version.h
    SPLIT include/linux/autoconf.h -> include/config/*
    CHK include/asm-i386/asm_offsets.h
    HOSTCC scripts/genksyms/genksyms.o
    HOSTCC scripts/genksyms/lex.o
    HOSTCC scripts/genksyms/parse.o
    HOSTLD scripts/genksyms/genksyms
    CC scripts/mod/empty.o
    MKELF scripts/mod/elfconfig.h
    HOSTCC scripts/mod/file2alias.o
    HOSTCC scripts/mod/modpost.o
    HOSTCC scripts/mod/sumversion.o
    HOSTLD scripts/mod/modpost
    make[1]: *** No rule to make target `init/main.o', needed by `init/built-in.o'. Stop.
    make: *** [init] Error 2

    Can anyone point me in the right direction? I'm trying to create a small memory version of the 2.6.9-5.0.3 kernel.

    Thanks.

  2. #2
    Just Joined!
    Join Date
    Oct 2005
    Posts
    1
    heh, I'm having the same exact problem except with RedHat ES 4

    I found that I couldnt boot using the smp kernel RH installed, so i tried to compile a new smp one and am having the same issue.

  3. #3
    Just Joined!
    Join Date
    Oct 2005
    Posts
    2
    Same problem here using 2.6.13-1.1526_FC4-x86_64

    In searching I've found the question asked many times but never answered. Surely it can't be an unsolved problem?

  4. $spacer_open
    $spacer_close
  5. #4
    Linux Newbie rat007's Avatar
    Join Date
    Jul 2004
    Location
    Brno
    Posts
    230
    Same here

    # make all
    CHK include/linux/version.h
    make[1]: *** No rule to make target `init/main.o', needed by `init/built-in.o'. Stop.
    make: *** [init] Error 2

    don't know what it means

  6. #5
    Just Joined!
    Join Date
    Nov 2005
    Location
    NJ
    Posts
    1
    OK, I'll play along. I have the same problem using
    2.6.14-1.1637_FC4
    And even though googling shows others with the same problem, no one has posted a fix If someone here has gotten past this, please post your solution.

    Thanks!

  7. #6
    Linux Newbie rat007's Avatar
    Join Date
    Jul 2004
    Location
    Brno
    Posts
    230
    My solution was to grab the kernel from kernel.org and recompile a vanilla one with the patches I needed. I don't understand why fedora kernel doesn't compile from the package they provide.

  8. #7
    Just Joined!
    Join Date
    Jun 2006
    Posts
    4
    I had the same problem, but apparently, i wasnt trying to compile the kernel source in the first palce, the path /usr/src/kernels/ is misleading, you will have to install the source code of the kernel from your fedora/redhat SRPM or kernel--someversion--.src.rpm or from ftp server or using up2date or yum ... this is true even if you select install everything in the installation procedure.

    after that you have to look where the source code is installed and go start from there ... redhat/fedora seem to have a little bit diffrent procedure than the good old make menuconfig, so good luck googling for that.

  9. #8
    Just Joined!
    Join Date
    Nov 2006
    Posts
    4
    Just Stumbled upon this

    http://www.howtoforge.com/kernel_compilation_fedora

    This shows how to compile a kernel in FC5 and FC6

Posting Permissions

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