Kernel recompile fail

Issues related to software problems.
Post Reply
tangi
Posts: 5
Joined: 2014/04/05 10:38:05

Kernel recompile fail

Post by tangi » 2014/04/05 10:42:12

Hi,

Kernel compile worked in the past, I don't know why not anymore.

Code: Select all

make[1]: Leaving directory `/home/kcompil/rpmbuild/BUILD/kernel-2.6.18/xen'
+ install -m 644 xen.gz /var/tmp/kernel-2.6.18-348.18.1.el5.centos.plus.ufs.1-root/boot/xen.gz-2.6.18-348.18.1.el5.centos.plus.ufs.1
+ install -m 755 xen-syms /var/tmp/kernel-2.6.18-348.18.1.el5.centos.plus.ufs.1-root/boot/xen-syms-2.6.18-348.18.1.el5.centos.plus.ufs.1
+ cd ..
+ cd linux-2.6.18-348.18.1.el5.centos.plus.ufs.1.x86_64
+ BuildKernel bzImage x86
+ MakeTarget=bzImage
+ KernelImage=x86
+ Flavour=
+ '[' -n '' ']'
+ Config=kernel-2.6.18-x86_64.config
+ DevelDir=/usr/src/kernels/2.6.18-348.18.1.el5.centos.plus.ufs.1-x86_64
+ DevelLink=
+ KernelVer=2.6.18-348.18.1.el5.centos.plus.ufs.1
+ echo BUILDING A KERNEL FOR x86_64...
BUILDING A KERNEL FOR x86_64...
+ perl -p -i -e 's/^EXTRAVERSION.*/EXTRAVERSION = -348.18.1.el5.centos.plus.ufs.1/' Makefile
+ make -s mrproper
+ cp configs/kernel-2.6.18-x86_64.config .config
++ head -1 .config
++ cut -b 3-
+ Arch=x86_64
+ echo USING ARCH=x86_64
USING ARCH=x86_64
+ '[' x86 == x86 ']'
+ KernelImage=arch/x86_64/boot/bzImage
+ '[' x86_64 == s390 -a '' == kdump ']'
+ make -s ARCH=x86_64 nonint_oldconfig
fixdep: scripts/basic/.fixdep.d is empty
fixdep: scripts/basic/.docproc.d is empty
fixdep: scripts/kconfig/.conf.o.d is empty
fixdep: scripts/kconfig/.kxgettext.o.d is empty
fixdep: scripts/kconfig/.mconf.o.d is empty
fixdep: scripts/kconfig/.zconf.tab.o.d is empty
+ make -s ARCH=x86_64 -j2 bzImage
***
*** You have not yet configured your kernel!
***
*** Please run some configurator (e.g. "make oldconfig" or
*** "make menuconfig" or "make xconfig").
***
make[2]: *** [silentoldconfig] Error 1
make[1]: *** [silentoldconfig] Error 2
make: *** No rule to make target `include/config/auto.conf', needed by `include/config/kernel.release'.  Stop.
error: Bad exit status from /var/tmp/rpm-tmp.67409 (%build)


RPM build errors:
    Bad exit status from /var/tmp/rpm-tmp.67409 (%build)
Thank you so much.
Julio

User avatar
TrevorH
Site Admin
Posts: 33202
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: Kernel recompile fail

Post by TrevorH » 2014/04/05 11:04:10

I'd hazard a guess that the file it copies to .config is not correct. Look at configs/kernel-2.6.18-x86_64.config and see if it needs amendment.
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

tangi
Posts: 5
Joined: 2014/04/05 10:38:05

Re: Kernel recompile fail

Post by tangi » 2014/04/05 11:15:57

thanks for your reply :D , I tried to compile a unmodified .config by just running make menuconfig then saved, added # x86_64 in the .config file, I followed the tutorial as described on http://wiki.centos.org/HowTos/Custom_Kernel.

here is the content of build-err.log

Code: Select all

+ cd linux-2.6.18-308.24.1.el5test1.x86_64
+ BuildKernel bzImage x86
+ MakeTarget=bzImage
+ KernelImage=x86
+ Flavour=
+ '[' -n '' ']'
+ Config=kernel-2.6.18-x86_64.config
+ DevelDir=/usr/src/kernels/2.6.18-308.24.1.el5test1-x86_64
+ DevelLink=
+ KernelVer=2.6.18-308.24.1.el5test1
+ echo BUILDING A KERNEL FOR x86_64...
+ perl -p -i -e 's/^EXTRAVERSION.*/EXTRAVERSION = -308.24.1.el5test1/' Makefile
+ make -s mrproper
+ cp configs/kernel-2.6.18-x86_64.config .config
++ head -1 .config
++ cut -b 3-
+ Arch=x86_64
+ echo USING ARCH=x86_64
+ '[' x86 == x86 ']'
+ KernelImage=arch/x86_64/boot/bzImage
+ '[' x86_64 == s390 -a '' == kdump ']'
+ make -s ARCH=x86_64 nonint_oldconfig
fixdep: scripts/basic/.fixdep.d is empty
fixdep: scripts/basic/.docproc.d is empty
fixdep: scripts/kconfig/.conf.o.d is empty
fixdep: scripts/kconfig/.kxgettext.o.d is empty
fixdep: scripts/kconfig/.mconf.o.d is empty
fixdep: scripts/kconfig/.zconf.tab.o.d is empty
+ make -s ARCH=x86_64 -j2 bzImage
make[2]: *** [silentoldconfig] Error 1
make[1]: *** [silentoldconfig] Error 2
make: *** No rule to make target `include/config/auto.conf', needed by `include/config/kernel.release'.  Stop.
error: Bad exit status from /var/tmp/rpm-tmp.77188 (%build)
    Bad exit status from /var/tmp/rpm-tmp.77188 (%build)

tangi
Posts: 5
Joined: 2014/04/05 10:38:05

Re: Kernel recompile fail

Post by tangi » 2014/04/05 11:21:25

it says

Code: Select all

+ Config=kernel-2.6.18-x86_64.config
+ DevelDir=/usr/src/kernels/2.6.18-308.24.1.el5test1-x86_64
+ DevelLink=
+ KernelVer=2.6.18-308.24.1.el5test1
+ echo BUILDING A KERNEL FOR x86_64...
+ perl -p -i -e 's/^EXTRAVERSION.*/EXTRAVERSION = -308.24.1.el5test1/' Makefile
+ make -s mrproper
+ cp configs/kernel-2.6.18-x86_64.config .config
I checked the devel dir and it doesn't exist.

User avatar
toracat
Site Admin
Posts: 7518
Joined: 2006/09/03 16:37:24
Location: California, US
Contact:

Re: Kernel recompile fail

Post by toracat » 2014/04/05 12:30:50

In the CentOS wiki article you referenced, there is a line that says:
First run make oldconfig. Now you should run either make menuconfig, .....
When you ran make oldconfig, did you get the prompt back without having to answer any question? Just to be sure, run the command twice.
CentOS Forum FAQ

tangi
Posts: 5
Joined: 2014/04/05 10:38:05

Re: Kernel recompile fail

Post by tangi » 2014/04/12 13:04:15

thanks, solved by upgrading gcc. :D

Post Reply