CentOS kernel won't re-compile

General support questions including new installations

CentOS kernel won't re-compile

Postby Soko » 2005/03/04 20:26:09

Hi.

I'm trying to re-compile the CentOS 4 kernel with AppleTalk support for netatalk.
I'm sure I didn't do anything but enable AppleTalk with make menuconfig, and here's the errors I get:

[root@welserv2 2.6.9-5.0.3.EL-i686]# make
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
HOSTCC scripts/mod/mk_elfconfig
MKELF scripts/mod/elfconfig.h
HOSTCC scripts/mod/file2alias.o
HOSTCC scripts/mod/modpost.o
HOSTCC scripts/mod/sumversion.o
HOSTLD scripts/mod/modpost
HOSTCC scripts/kallsyms
HOSTCC scripts/pnmtologo
HOSTCC scripts/conmakehash
make[1]: *** No rule to make target `init/main.o', needed by `init/built-in.o'. Stop.
make: *** [init] Error 2
[root@welserv2 2.6.9-5.0.3.EL-i686]# make
CHK include/linux/version.h
CHK include/asm-i386/asm_offsets.h
make[1]: *** No rule to make target `init/main.o', needed by `init/built-in.o'. Stop.
[root@welserv2 2.6.9-5.0.3.EL-i686]# make
CHK include/linux/version.h
CHK include/asm-i386/asm_offsets.h
make[1]: *** No rule to make target `init/main.o', needed by `init/built-in.o'. Stop.
make: *** [init] Error 2
[root@welserv2 2.6.9-5.0.3.EL-i686]#

Did I miss something, or have I found a bug?

Of course, my preference would be to have AppleTalk support built into a CentOS provided package of some sort. I have an RPM of netatalk 2.0.2, BTW, if anyone is interested. :-D

Soko
Soko
 
Posts: 1
Joined: 2005/03/04 07:56:59

Re: CentOS kernel won't re-compile

Postby pwebb » 2005/03/04 22:37:56

I have the exact same errors when trying to recompile for Reiserfs.

[root@devnull 2.6.9-5.0.3.EL-smp-i686]# make clean
[root@devnull 2.6.9-5.0.3.EL-smp-i686]# make menuconfig
HOSTCC scripts/basic/fixdep
HOSTCC scripts/basic/split-include
HOSTCC scripts/basic/docproc
HOSTCC -fPIC scripts/kconfig/zconf.tab.o
HOSTLLD -shared scripts/kconfig/libkconfig.so
HOSTCC scripts/kconfig/conf.o
HOSTCC scripts/kconfig/mconf.o
HOSTLD scripts/kconfig/mconf
HOSTCC scripts/lxdialog/checklist.o
HOSTCC scripts/lxdialog/inputbox.o
HOSTCC scripts/lxdialog/lxdialog.o
HOSTCC scripts/lxdialog/menubox.o
HOSTCC scripts/lxdialog/msgbox.o
HOSTCC scripts/lxdialog/textbox.o
HOSTCC scripts/lxdialog/util.o
HOSTCC scripts/lxdialog/yesno.o
HOSTLD scripts/lxdialog/lxdialog
scripts/kconfig/mconf arch/i386/Kconfig
#
# using defaults found in .config
#
*** End of Linux kernel configuration.
*** Execute 'make' to build the kernel or try 'make help'.

[root@devnull 2.6.9-5.0.3.EL-smp-i686]# make
CHK include/linux/version.h
SPLIT include/linux/autoconf.h -> include/config/*
CHK include/asm-i386/asm_offsets.h
/bin/sh: arch/i386/kernel/asm-offsets.s: No such file or directory
UPD include/asm-i386/asm_offsets.h
mv: cannot stat `include/asm-i386/asm_offsets.h.tmp': No such file or directory
make: *** [include/asm-i386/asm_offsets.h] Error 1


Even doing a "make oldconfig" on a clean kernel source doesn't help.
pwebb
 
Posts: 1
Joined: 2005/03/04 22:29:08

Re: CentOS kernel won't re-compile

Postby xtreme2490 » 2005/03/09 20:13:42

Same deal here when trying to get preempt option compiled in kernel.


Does anyone have a clue to solve this ?
xtreme2490
 
Posts: 1
Joined: 2005/02/08 08:39:02

Re: CentOS kernel won't re-compile

Postby stefanke » 2005/03/15 18:36:20

I have the same problem :(

Can someone place this bug in bugzilla ?
stefanke
 
Posts: 9
Joined: 2005/03/14 18:05:38

Re: CentOS kernel won't re-compile

Postby hughesjr » 2005/03/16 11:42:52

you guys are in the wrong place :)

RH included the ability to make modules, but not the kernel in the kernel-devel package.

I included the kernel-sourecode package as well

install that package

go to /usr/src/linux-2.6.9-5.0.3.EL

make mrproper

edit the Makefile and change the EXTRAVERSION and NAME lines to the kernel name you want

copy the initial config file you are booting from down from /boot to /usr/src/linux-2.6.9-5.0.3.EL/.config

make oldconfig

make menuconfig

After your changes, do:

make bzImage

make modules

make modules_install

cp arch/your_arch/boot/bzImage /boot/vmlinuz-version-name

cd /boot

mkinitrd initrd-version-name.img kernel-version

edit your /boot/grub/grub.conf to point to your new kernel and initrd.img

_OR_ If you don't want to install the kernel-sourcecode package follow these instructions:

go to the CentOS-4 Release Notes and search the page for In order to eliminate the redundancy and when it tells you to proceed as usual, start with make menuconfig above...
hughesjr
Site Admin
 
Posts: 229
Joined: 2004/12/05 01:51:26
Location: Corpus Christi, Texas, USA

Re: CentOS kernel won't re-compile

Postby stefanke » 2005/03/16 16:46:47

just do a correct src.rpm installation:

rpm --rebuild packetname.src.rpm


in redhat/BUILD/ you will find the kernel-sources ! Then make menuconfig etc.


That`s all.


cheers Stefan
stefanke
 
Posts: 9
Joined: 2005/03/14 18:05:38


Return to CentOS 4 - General Support

Who is online

Users browsing this forum: No registered users and 0 guests