Hi,
I'm trying to recompile CentOS stock kernel, and after making my choices (make menuconfig), i run "make" and imediatly get this error (after my signature).
Yes, i have the kernel source installed :P
Any help would be apreciated.
Warm regards, Mário Gamito
[root@tux 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 /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 [root@tux 2.6.9-5.0.3.EL-i686]# make dep *** Warning: make dep is unnecessary now. [root@tux 2.6.9-5.0.3.EL-i686]# make clean CLEAN .tmp_versions [root@tux 2.6.9-5.0.3.EL-i686]# make CHK include/linux/version.h 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
On Tue, 2005-04-05 at 08:25 +0100, Mário Gamito wrote:
Hi,
I'm trying to recompile CentOS stock kernel, and after making my choices (make menuconfig), i run "make" and imediatly get this error (after my signature).
Yes, i have the kernel source installed :P
You are in the wrong directory :) ...
How did you install the kernel-source ... the proper way is:
yum install kernel-sourcecode
The you would be in the directory:
/usr/src/linux-2.6.9-5.0.3.EL
Any help would be apreciated.
Warm regards, Mário Gamito
[root@tux 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 /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 [root@tux 2.6.9-5.0.3.EL-i686]# make dep *** Warning: make dep is unnecessary now. [root@tux 2.6.9-5.0.3.EL-i686]# make clean CLEAN .tmp_versions [root@tux 2.6.9-5.0.3.EL-i686]# make CHK include/linux/version.h 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 _______________________________________________ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Try:
"make bzImage && make modules && make modules_install && make install"
cheers,
Peter
Mário Gamito wrote:
Hi,
I'm trying to recompile CentOS stock kernel, and after making my choices (make menuconfig), i run "make" and imediatly get this error (after my signature).
Yes, i have the kernel source installed :P
Any help would be apreciated.
Warm regards, Mário Gamito
[root@tux 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 /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 [root@tux 2.6.9-5.0.3.EL-i686]# make dep *** Warning: make dep is unnecessary now. [root@tux 2.6.9-5.0.3.EL-i686]# make clean CLEAN .tmp_versions [root@tux 2.6.9-5.0.3.EL-i686]# make CHK include/linux/version.h 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 _______________________________________________ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Try this:
1. cd /usr/src/linux-2.6.9-5.0.3.EL/ 2. make menuconfig (and configure your kernel) 3. make clean 4. make rpm (Builds RPM & SRPM) 5. rpm -ivh /usr/src/redhat/RPMS/<arch>/kernel-<version>-<extraversion>-1.<arch>.rpm 6. edit /etc/grub.conf if needed.
I have recompiled the CentOS 4 kernel (as an rpm) with Appletalk support and it works fine with netatalk 2.0.2. If you would like an RPM or SRPM of either the kernel or netatalk, just let me know.
Hope this helps, Barry
Quoting Mário Gamito lists@tuxdoit.com:
Hi,
I'm trying to recompile CentOS stock kernel, and after making my choices (make menuconfig), i run "make" and imediatly get this error (after my signature).
Yes, i have the kernel source installed :P
Any help would be apreciated.
Warm regards, Mário Gamito
[root@tux 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 /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 [root@tux 2.6.9-5.0.3.EL-i686]# make dep *** Warning: make dep is unnecessary now. [root@tux 2.6.9-5.0.3.EL-i686]# make clean CLEAN .tmp_versions [root@tux 2.6.9-5.0.3.EL-i686]# make CHK include/linux/version.h 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 _______________________________________________ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
!DSPAM:42523d88301151263055411!
Hi Barry,
Thanks for the excelent tip, but in the end, stumble on the same shit (sorry for cursing, but i'm getting realy annoied):
Warm Regards, Mário Gamito
---
+ make CHK include/linux/version.h 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[2]: *** [include/asm-i386/asm_offsets.h] Error 1 error: Bad exit status from /var/tmp/rpm-tmp.65827 (%build)
RPM build errors: Bad exit status from /var/tmp/rpm-tmp.65827 (%build) make[1]: *** [rpm] Error 1 make: *** [rpm] Error 2 [root@tux 2.6.9-5.0.3.EL-i686]#
---
Mario,
I believe you are in the wrong directory. According to the output below, your directory prompt reads :
[root@tux 2.6.9-5.0.3.EL-i686]
This suggests that you are in /usr/src/kernels/2.6.9-5.0.3.EL-i686 not /usr/src/linux-2.6.9-5.0.3.EL
Try this:
1. cd /usr/src/linux-2.6.9-5.0.3.EL 2. cp configs/kernel-2.6.9-i686.config . 3. make menuconfig (configure kernel) 4. make clean 5. make rpm 6. install RPM 7. edit grub config if needed
Hope this helps, Barry
Quoting Mário Gamito lists@tuxdoit.com:
Hi Barry,
Thanks for the excelent tip, but in the end, stumble on the same shit (sorry for cursing, but i'm getting realy annoied):
Warm Regards, Mário Gamito
- make CHK include/linux/version.h 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[2]: *** [include/asm-i386/asm_offsets.h] Error 1 error: Bad exit status from /var/tmp/rpm-tmp.65827 (%build)
RPM build errors: Bad exit status from /var/tmp/rpm-tmp.65827 (%build) make[1]: *** [rpm] Error 1 make: *** [rpm] Error 2 [root@tux 2.6.9-5.0.3.EL-i686]#
CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
!DSPAM:4252939217451844717219!
Hi Barry,
Indeed, i'm starting to see some light here:
---
[root@tux ~]# ls /usr/src/kernels/ 2.6.9-5.0.3.EL-hugemem-i686 2.6.9-5.0.3.EL-smp-i686 2.6.9-5.0.3.EL-i686 [root@tux ~]#
---
I got no linux-2.6.9-5.0.3.EL
All i've done, was in the install time choosen kernel source. And i got these 3 ones.
Now, at the sugestion of a fellow from here i'm making a
# yum install kernel-sourcecode
Hope it's the right one this time.
Nevertheless i'm bezerked with its dependencies: This thing starts looking like Mandrake.
Regards, Mário Gamito --- Performing the following to resolve dependencies: Install: atk.i386 0:1.8.0-2 - base Install: atk-devel.i386 0:1.8.0-2 - base Install: fontconfig-devel.i386 0:2.2.3-7 - base Install: freetype-devel.i386 0:2.1.9-1 - base Install: gtk2.i386 0:2.4.13-14 - update Install: gtk2-devel.i386 0:2.4.13-14 - update Install: libjpeg-devel.i386 0:6b-33 - base Install: libmng-devel.i386 0:1.0.8-1 - base Install: libpng-devel.i386 2:1.2.7-1 - base Install: pango.i386 0:1.6.0-7 - base Install: pango-devel.i386 0:1.6.0-7 - base Install: qt-devel.i386 1:3.3.3-9.3 - base Install: xorg-x11-devel.i386 0:6.8.1-23.EL - base
---
Barry Brimer wrote:
Mario,
I believe you are in the wrong directory. According to the output below, your directory prompt reads :
[root@tux 2.6.9-5.0.3.EL-i686]
This suggests that you are in /usr/src/kernels/2.6.9-5.0.3.EL-i686 not /usr/src/linux-2.6.9-5.0.3.EL
Try this:
- cd /usr/src/linux-2.6.9-5.0.3.EL
- cp configs/kernel-2.6.9-i686.config .
IMHO here the right command is: 2. cp configs/kernel-2.6.9-i686.config .config
- make menuconfig (configure kernel)
- make clean
- make rpm
- install RPM
- edit grub config if needed
Hope this helps, Barry
Quoting Mário Gamito lists@tuxdoit.com:
Hi Barry,
Thanks for the excelent tip, but in the end, stumble on the same shit (sorry for cursing, but i'm getting realy annoied):
Warm Regards, Mário Gamito
- make CHK include/linux/version.h 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[2]: *** [include/asm-i386/asm_offsets.h] Error 1 error: Bad exit status from /var/tmp/rpm-tmp.65827 (%build)
RPM build errors: Bad exit status from /var/tmp/rpm-tmp.65827 (%build) make[1]: *** [rpm] Error 1 make: *** [rpm] Error 2 [root@tux 2.6.9-5.0.3.EL-i686]#
CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
!DSPAM:4252939217451844717219!
CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Absolutely correct .. I apologize for the mistake. The correction noted by Romeo is quite important. The correct command should be:
2. cp configs/kernel-2.6.9-i686.config .config
Good catch!
Barry
Quoting Romeo Ninov rninov@mailbg.com:
Barry Brimer wrote:
Mario,
I believe you are in the wrong directory. According to the output below,
your
directory prompt reads :
[root@tux 2.6.9-5.0.3.EL-i686]
This suggests that you are in /usr/src/kernels/2.6.9-5.0.3.EL-i686 not /usr/src/linux-2.6.9-5.0.3.EL
Try this:
- cd /usr/src/linux-2.6.9-5.0.3.EL
- cp configs/kernel-2.6.9-i686.config .
IMHO here the right command is: 2. cp configs/kernel-2.6.9-i686.config .config
- make menuconfig (configure kernel)
- make clean
- make rpm
- install RPM
- edit grub config if needed
Hope this helps, Barry
Quoting Mário Gamito lists@tuxdoit.com:
Hi Barry,
Thanks for the excelent tip, but in the end, stumble on the same shit (sorry for cursing, but i'm getting realy annoied):
Warm Regards, Mário Gamito
- make CHK include/linux/version.h 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[2]: *** [include/asm-i386/asm_offsets.h] Error 1 error: Bad exit status from /var/tmp/rpm-tmp.65827 (%build)
RPM build errors: Bad exit status from /var/tmp/rpm-tmp.65827 (%build) make[1]: *** [rpm] Error 1 make: *** [rpm] Error 2 [root@tux 2.6.9-5.0.3.EL-i686]#
CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
!DSPAM:42529b1121352636119242!
Nice community, this one :)
Barry Brimer wrote:
Absolutely correct .. I apologize for the mistake. The correction noted by Romeo is quite important. The correct command should be:
- cp configs/kernel-2.6.9-i686.config .config
Good catch!
Barry
Quoting Romeo Ninov rninov@mailbg.com:
Barry Brimer wrote:
Mario,
I believe you are in the wrong directory. According to the output below,
your
directory prompt reads :
[root@tux 2.6.9-5.0.3.EL-i686]
This suggests that you are in /usr/src/kernels/2.6.9-5.0.3.EL-i686 not /usr/src/linux-2.6.9-5.0.3.EL
Try this:
- cd /usr/src/linux-2.6.9-5.0.3.EL
- cp configs/kernel-2.6.9-i686.config .
IMHO here the right command is: 2. cp configs/kernel-2.6.9-i686.config .config
- make menuconfig (configure kernel)
- make clean
- make rpm
- install RPM
- edit grub config if needed
Hope this helps, Barry
Quoting Mário Gamito lists@tuxdoit.com:
Hi Barry,
Thanks for the excelent tip, but in the end, stumble on the same shit (sorry for cursing, but i'm getting realy annoied):
Warm Regards, Mário Gamito
- make
CHK include/linux/version.h 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[2]: *** [include/asm-i386/asm_offsets.h] Error 1 error: Bad exit status from /var/tmp/rpm-tmp.65827 (%build)
RPM build errors: Bad exit status from /var/tmp/rpm-tmp.65827 (%build) make[1]: *** [rpm] Error 1 make: *** [rpm] Error 2 [root@tux 2.6.9-5.0.3.EL-i686]#
CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
!DSPAM:42529b1121352636119242!
CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
At this point I would like to point out that you should not be doing things like compiling kernels as root, let alone writing your own files into /usr/src. So I would recommend that once you have installed the kernel-sourcecode package, you switch back to a normal user and use:
cd ~ (or /tmp whatever) cp -r /usr/src/linux-2.6.9-5.0.3.EL . cd linux-2.6.9-5.0.3.EL cp configs/kernel-2.6.9-i686.config .config make oldconfig make menuconfig etc...
(Note, untested on CentOS-4. Perhaps someone could confirm). Regarding the kernel-sourcecode dependencies, many of them look optional and might be easily ignored with --nodeps. Be warned however... if you are having problems it might be best just to install them.
John.
Barry Brimer wrote:
Mario,
I believe you are in the wrong directory. According to the output below, your directory prompt reads :
[root@tux 2.6.9-5.0.3.EL-i686]
This suggests that you are in /usr/src/kernels/2.6.9-5.0.3.EL-i686 not /usr/src/linux-2.6.9-5.0.3.EL
Try this:
- cd /usr/src/linux-2.6.9-5.0.3.EL
- cp configs/kernel-2.6.9-i686.config .
- make menuconfig (configure kernel)
- make clean
- make rpm
- install RPM
- edit grub config if needed
Hope this helps, Barry
Quoting Mário Gamito lists@tuxdoit.com:
Hi Barry,
Thanks for the excelent tip, but in the end, stumble on the same shit (sorry for cursing, but i'm getting realy annoied):
Warm Regards, Mário Gamito
- make CHK include/linux/version.h 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[2]: *** [include/asm-i386/asm_offsets.h] Error 1 error: Bad exit status from /var/tmp/rpm-tmp.65827 (%build)
RPM build errors: Bad exit status from /var/tmp/rpm-tmp.65827 (%build) make[1]: *** [rpm] Error 1 make: *** [rpm] Error 2 [root@tux 2.6.9-5.0.3.EL-i686]#
CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
!DSPAM:4252939217451844717219!
CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Rebuilding the whole kernel is kinda extreme .... I modified the build-2.6 script and spec file from http://linux-ntfs.sourceforge.net/rpm/build.html to built a NCPFS kernel module for the kernel I have installed and make a nice RPM that behaves nicely.
Now all I need to do is figure out a way to have it automatically generated whenever a new kernel and kernel-source package is released.
Regards, Paul Berger
On Tue, 2005-04-05 at 08:24 -0500, Barry Brimer wrote:
Try this:
- cd /usr/src/linux-2.6.9-5.0.3.EL/
- make menuconfig (and configure your kernel)
- make clean
- make rpm (Builds RPM & SRPM)
- rpm -ivh
/usr/src/redhat/RPMS/<arch>/kernel-<version>-<extraversion>-1.<arch>.rpm 6. edit /etc/grub.conf if needed.
I have recompiled the CentOS 4 kernel (as an rpm) with Appletalk support and it works fine with netatalk 2.0.2. If you would like an RPM or SRPM of either the kernel or netatalk, just let me know.
Hope this helps, Barry
Quoting Mário Gamito lists@tuxdoit.com:
Hi,
I'm trying to recompile CentOS stock kernel, and after making my choices (make menuconfig), i run "make" and imediatly get this error (after my signature).
Yes, i have the kernel source installed :P
Any help would be apreciated.
Warm regards, Mário Gamito
[root@tux 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 /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 [root@tux 2.6.9-5.0.3.EL-i686]# make dep *** Warning: make dep is unnecessary now. [root@tux 2.6.9-5.0.3.EL-i686]# make clean CLEAN .tmp_versions [root@tux 2.6.9-5.0.3.EL-i686]# make CHK include/linux/version.h 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 _______________________________________________ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
!DSPAM:42523d88301151263055411!
CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Hi Paul,
Paul wrote:
Rebuilding the whole kernel is kinda extreme
Indeed, but i've installed CentOS 4 to be a fileserver to a network where there are many Macs, and the kernel didn't have support for Appletalk compiled.
So, no choice.
Anyway, i've managed allright with
# make menuconfig # make clean # make rpm # rpm -ivh # *had* to edit grub.conf # and finally, not mentioned here before in any post (as far as i can remember), make the respective initrd for the new kernel in /boot
Everything's allright now. Thanks to everyone who contributed with their sugestions, helping me and others in the future that may come across the same issue.
Warm Regards, Mário Gamnito
Mário Gamito wrote:
Hi Paul, # and finally, not mentioned here before in any post (as far as i can remember), make the respective initrd for the new kernel in /boot
As I remember the above is need only if You use SCSI (or/and maybe SATA) drivers, not integrated in kernel, but maked as modules BTW: command is mkinitrd :-)
Everything's allright now. Thanks to everyone who contributed with their sugestions, helping me and others in the future that may come across the same issue.
Warm Regards, Mário Gamnito _______________________________________________ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Hi,
# and finally, not mentioned here before in any post (as far as i can remember), make the respective initrd for the new kernel in /boot
As I remember the above is need only if You use SCSI (or/and maybe SATA) drivers, not integrated in kernel, but maked as modules BTW: command is mkinitrd :-)
Yes, i use SCSIs. Don't know about IDE or SATA though.
Regards, Mário Gamito