View Full Version : Issue compiling kernel 2.6.19.1 in Ubuntu 6.10
sqrtof3
30th December 2006, 10:30
After following the howoto forge article on how to compile the new kernel in ubuntu 6.10 (http://www.howtoforge.com/kernel_compilation_ubuntu_p2 ) I reached the fakeroot make-kpkg --initrd --append-to-version=-custom kernel_image kernel_headers command and received the following error "nothing to be done. " Subsequently the kernel wasn't compiled. Can any one offer me some insight as to what I may have done wrong or what is necessary to compile the kernel correctly? I am attempting to compile the newest kernel build (2.6.19.1) for the k7 architecture (I have an AMD Athlon XP 1600+) in order to overcome the apparent lag in this build of linux (default kernel is 2.6.17-generic). Any help would be much appreciated.
falko
31st December 2006, 21:01
Are you in the correct directory when you run the fakeroot command?
sqrtof3
1st January 2007, 00:45
I think so /usr/src/linux ?
I followed the tutorial rather meticulously, twice... I'm sure I did it right.
falko
1st January 2007, 21:19
What's the output of ls -la /usr/src/linux/ and ls -la /usr/src/?
sqrtof3
2nd January 2007, 02:04
First off thanks for the replys and insight so far. Secondly here are the outputs:
ls -la /usr/src/linux/
Output:
total 444
drwxrwxrwx 20 root root 4096 2006-12-30 02:19 .
drwxrwsr-x 5 root src 4096 2006-12-30 02:04 ..
drwxrwxrwx 27 root root 4096 2006-12-11 13:32 arch
drwxrwxrwx 2 root root 4096 2006-12-11 13:32 block
-rw-r--r-- 1 root root 75503 2006-12-30 02:13 .config
-rw-rw-rw- 1 root root 18693 2006-12-11 13:32 COPYING
-rw-rw-rw- 1 root root 90307 2006-12-11 13:32 CREDITS
drwxrwxrwx 2 root root 4096 2006-12-11 13:32 crypto
drwxr-xr-x 10 root root 4096 2006-12-30 02:19 debian
drwxrwxrwx 59 root root 4096 2006-12-11 13:32 Documentation
drwxrwxrwx 62 root root 4096 2006-12-11 13:32 drivers
drwxrwxrwx 63 root root 4096 2006-12-11 13:32 fs
-rw-rw-rw- 1 root root 547 2006-12-11 13:32 .gitignore
drwxrwxrwx 43 root root 4096 2006-12-30 02:19 include
drwxrwxrwx 2 root root 4096 2006-12-11 13:32 init
drwxrwxrwx 2 root root 4096 2006-12-11 13:32 ipc
-rw-rw-rw- 1 root root 1262 2006-12-11 13:32 Kbuild
drwxrwxrwx 5 root root 4096 2006-12-11 13:32 kernel
drwxrwxrwx 5 root root 4096 2006-12-11 13:32 lib
lrwxrwxrwx 1 root root 14 2006-12-30 02:10 linux-2.6.19.1 -> linux-2.6.19.1
-rw-rw-rw- 1 root root 75926 2006-12-11 13:32 MAINTAINERS
-rw-rw-rw- 1 root root 50186 2006-12-11 13:32 Makefile
drwxrwxrwx 2 root root 4096 2006-12-11 13:32 mm
drwxrwxrwx 37 root root 4096 2006-12-11 13:32 net
-rw-rw-rw- 1 root root 16538 2006-12-11 13:32 README
-rw-rw-rw- 1 root root 3065 2006-12-11 13:32 REPORTING-BUGS
drwxrwxrwx 9 root root 4096 2006-12-11 13:32 scripts
drwxrwxrwx 4 root root 4096 2006-12-11 13:32 security
drwxrwxrwx 17 root root 4096 2006-12-11 13:32 sound
drwxrwxrwx 2 root root 4096 2006-12-11 13:32 usr
ls -la /usr/src/
Output:
total 83580
drwxrwsr-x 5 root src 4096 2006-12-30 02:04 .
drwxr-xr-x 13 root root 4096 2006-12-30 03:22 ..
lrwxrwxrwx 1 root src 14 2006-12-30 01:25 linux -> linux-2.6.19.1
drwxrwxrwx 20 root root 4096 2006-12-30 02:19 linux-2.6.19.1
-rw-r--r-- 1 root src 42731688 2006-12-11 13:40 linux-2.6.19.1.tar.bz2
-rw-r--r-- 1 root src 42731688 2006-12-11 13:40 linux-2.6.19.1.tar.bz2.1
drwxr-xr-x 19 root root 4096 2006-12-29 18:36 linux-headers-2.6.17-10
drwxr-xr-x 4 root root 4096 2006-12-29 18:37 linux-headers-2.6.17-10-generic
If you are wondering why there are two of each bz2 file it's because like I said I did the process twice after I relieved the error initially thinking i may have typed something wrong the first time.
falko
2nd January 2007, 19:38
ls -la /usr/src/linux/
Output:
lrwxrwxrwx 1 root root 14 2006-12-30 02:10 linux-2.6.19.1 -> linux-2.6.19.1
This looks strange, but I'm not sure if it is wrong...
Did the commands
cp /boot/config-`uname -r` ./.config
make menuconfig
make-kpkg clean
give back any errors?
rupertg
23rd January 2007, 04:40
Hi there.
I'm getting exactly the same problem trying to compile 2.6.19.2 under Ubuntu 6.10.
ls -la /usr/src/linux/
gives
total 444
drwxr-xr-x 20 root root 4096 2007-01-23 02:19 .
drwxrwsr-x 7 root src 4096 2007-01-23 02:16 ..
drwxr-xr-x 27 root root 4096 2007-01-10 19:10 arch
drwxr-xr-x 2 root root 4096 2007-01-10 19:10 block
-rw-r--r-- 1 root root 75481 2007-01-23 02:17 .config
-rw-r--r-- 1 root root 18693 2007-01-10 19:10 COPYING
-rw-r--r-- 1 root root 90307 2007-01-10 19:10 CREDITS
drwxr-xr-x 2 root root 4096 2007-01-10 19:10 crypto
drwxr-xr-x 10 root root 4096 2007-01-23 02:19 debian
drwxr-xr-x 59 root root 4096 2007-01-10 19:10 Documentation
drwxr-xr-x 62 root root 4096 2007-01-10 19:10 drivers
drwxr-xr-x 63 root root 4096 2007-01-10 19:10 fs
-rw-r--r-- 1 root root 547 2007-01-10 19:10 .gitignore
drwxr-xr-x 43 root root 4096 2007-01-23 02:19 include
drwxr-xr-x 2 root root 4096 2007-01-10 19:10 init
drwxr-xr-x 2 root root 4096 2007-01-10 19:10 ipc
-rw-r--r-- 1 root root 1262 2007-01-10 19:10 Kbuild
drwxr-xr-x 5 root root 4096 2007-01-10 19:10 kernel
drwxr-xr-x 5 root root 4096 2007-01-10 19:10 lib
-rw-r--r-- 1 root root 75926 2007-01-10 19:10 MAINTAINERS
-rw-r--r-- 1 root root 50186 2007-01-10 19:10 Makefile
drwxr-xr-x 2 root root 4096 2007-01-10 19:10 mm
drwxr-xr-x 37 root root 4096 2007-01-10 19:10 net
-rw-r--r-- 1 root root 16538 2007-01-10 19:10 README
-rw-r--r-- 1 root root 3065 2007-01-10 19:10 REPORTING-BUGS
drwxr-xr-x 9 root root 4096 2007-01-10 19:10 scripts
drwxr-xr-x 4 root root 4096 2007-01-10 19:10 security
drwxr-xr-x 17 root root 4096 2007-01-10 19:10 sound
drwxr-xr-x 2 root root 4096 2007-01-10 19:10 usr
and
ls -la /usr/src/
gives
total 42700
drwxrwsr-x 7 root src 4096 2007-01-23 02:16 .
drwxr-xr-x 13 root root 4096 2007-01-14 20:52 ..
drwxr-sr-x 2 root src 4096 2007-01-14 18:48 ati
-rw-r--r-- 1 root src 235550 2007-01-14 23:03 fglrx-kernel-2.6.17-10-generic_8.32.5-1+2.6.17.1-10.34_i386.deb
-rw-rw-r-- 1 root root 669815 2007-01-14 18:37 fglrx.tar.bz2
lrwxrwxrwx 1 root src 14 2007-01-23 02:16 linux -> linux-2.6.19.2
drwxr-xr-x 20 root root 4096 2007-01-23 02:19 linux-2.6.19.2
-rw-r--r-- 1 root src 42729366 2007-01-10 19:50 linux-2.6.19.2.tar.bz2
drwxr-xr-x 19 root root 4096 2007-01-08 20:08 linux-headers-2.6.17-10
drwxr-xr-x 4 root root 4096 2007-01-23 01:51 linux-headers-2.6.17-10-generic
drwxr-xr-x 3 root src 4096 2007-01-14 18:37 modules
The other three commands gave no errors. make-kpgk is rather noisy, though, so it might be complaining in ways I don't understand. Here's the output from that...
root@rupert-laptop:/usr/src/linux# make-kpkg clean
exec debian/rules DEBIAN_REVISION=5:10.Custom clean
====== making target CLN-common [new prereqs: testdir]======
====== making target CLN-common [new prereqs: ]======
/usr/bin/make -f ./debian/rules real_stamp_clean
make[1]: Entering directory `/usr/src/linux-2.6.19.2'
====== making target real_stamp_clean [new prereqs: ]======
running clean
test ! -f .config || cp -pf .config config.precious
test ! -f Makefile || \
/usr/bin/make ARCH=i386 distclean
make[2]: Entering directory `/usr/src/linux-2.6.19.2'
CLEAN scripts/basic
CLEAN scripts/kconfig
CLEAN /usr/src/linux-2.6.19.2/debian/
CLEAN include/config
CLEAN .config include/linux/autoconf.h
make[2]: Leaving directory `/usr/src/linux-2.6.19.2'
test ! -f config.precious || mv -f config.precious .config
test ! -f stamp-patch || /usr/bin/make -f ./debian/rules unpatch_now
test -f stamp-building || test -f debian/official || rm -rf debian
# work around idiocy in recent kernel versions
test ! -e scripts/package/builddeb.dist || \
mv -f scripts/package/builddeb.dist scripts/package/builddeb
test ! -e scripts/package/Makefile.dist || \
mv -f scripts/package/Makefile.dist scripts/package/Makefile
rm -f modules/modversions.h modules/ksyms.ver debian/files conf.vars scripts/cramfs/cramfsck scripts/cramfs/mkcramfs applied_patches debian/buildinfo stamp-build stamp-configure stamp-image stamp-headers stamp-src stamp-diff stamp-doc stamp-manual stamp-patch stamp-buildpackage stamp-debian stamp-arch-conf stamp-indep-conf stamp-configure-arch stamp-configure-indep stamp-configure stamp-arch-build stamp-indep-build stamp-build-arch stamp-build-indep stamp-build stamp-arch-inst stamp-indep-inst stamp-install stamp-install-arch stamp-install-indep stamp-arch-bin stamp-indep-bin stamp-binary stamp-binary-arch stamp-binary-indep debian/stamp-kernel-conf debian/stamp-prepare stamp-patch debian/stamp-conf stamp-debian debian/stamp-build-kernel stamp-buildpackage stamp-kernel-source stamp-kernel-manual stamp-kernel-doc stamp-kernel-headers stamp-kernel-image
rm -rf /usr/src/linux/debian/tmp_man
make[1]: Leaving directory `/usr/src/linux-2.6.19.2'
====== making target CLN-indep [new prereqs: CLN-common]======
====== making target CLEAN/linux-source-2.6.19.2-rutest [new prereqs: CLN-indep]======
====== making target CLEAN/linux-doc-2.6.19.2-rutest [new prereqs: CLN-indep]======
====== making target CLEAN/linux-manual-2.6.19.2-rutest [new prereqs: CLN-indep]======
====== making target clean-indep [new prereqs: linux-source-2.6.19.2-rutest linux-doc-2.6.19.2-rutest linux-manual-2.6.19.2-rutest]======
====== making target CLN-arch [new prereqs: CLN-common]======
====== making target CLEAN/linux-headers-2.6.19.2-rutest [new prereqs: CLN-arch]======
====== making target CLEAN/linux-image-2.6.19.2-rutest [new prereqs: CLN-arch]======
====== making target CLEAN/linux-uml-2.6.19.2-rutest [new prereqs: CLN-arch]======
====== making target CLEAN/linux-image-xen0-2.6.19.2-rutest [new prereqs: CLN-arch]======
====== making target CLEAN/linux-image-xenu-2.6.19.2-rutest [new prereqs: CLN-arch]======
====== making target CLEAN/linux-image-kdump [new prereqs: CLN-arch]======
====== making target clean-arch [new prereqs: linux-headers-2.6.19.2-rutest linux-image-2.6.19.2-rutest linux-uml-2.6.19.2-rutest linux-image-xen0-2.6.19.2-rutest linux-image-xenu-2.6.19.2-rutest linux-image-kdump]======
====== making target stamp-clean [new prereqs: clean-indep clean-arch]======
rm -f modules/modversions.h modules/ksyms.ver debian/files conf.vars scripts/cramfs/cramfsck scripts/cramfs/mkcramfs applied_patches debian/buildinfo stamp-build stamp-configure stamp-image stamp-headers stamp-src stamp-diff stamp-doc stamp-manual stamp-patch stamp-buildpackage stamp-debian stamp-arch-conf stamp-indep-conf stamp-configure-arch stamp-configure-indep stamp-configure stamp-arch-build stamp-indep-build stamp-build-arch stamp-build-indep stamp-build stamp-arch-inst stamp-indep-inst stamp-install stamp-install-arch stamp-install-indep stamp-arch-bin stamp-indep-bin stamp-binary stamp-binary-arch stamp-binary-indep debian/stamp-kernel-conf debian/stamp-prepare stamp-patch debian/stamp-conf stamp-debian debian/stamp-build-kernel stamp-buildpackage stamp-kernel-source stamp-kernel-manual stamp-kernel-doc stamp-kernel-headers stamp-kernel-image
rm -rf /usr/src/linux/debian/tmp_man
rm -f core `find . \( -name '*.orig' -o -name '*.rej' -o -name '*~' \
-o -name '*.bak' -o -name '#*#' -o -name '.*.orig' \
-o -name '.*.rej' -o -name '.SUMS' -o -size 0 \) -print` TAGS
====== making target clean [new prereqs: stamp-clean]======
And I might as well give you the output from the final, failed recompile!
root@rupert-laptop:/usr/src/linux# fakeroot make-kpkg --initrd --append-to-version=-rutest
exec make -f /usr/share/kernel-package/ruleset/minimal.mk debian APPEND_TO_VERSION=-rutest INITRD=YES
====== making target minimal_debian [new prereqs: ]======
This is kernel package version .
test -d debian || mkdir debian
test ! -e stamp-building || rm -f stamp-building
test -f debian/control || sed -e 's/=V/2.6.19.2-rutest/g' \
-e 's/=D/2.6.19.2-rutest-10.00.Custom/g' -e 's/=A/i386/g' \
-e 's/=SA//g' -e 's/=L/ /g' \
-e 's/=I//g' \
-e 's/=CV/2.6/g' \
-e 's/=M/Unknown Kernel Package Maintainer <unknown@unconfigured.in.etc.kernel-pkg.conf>/g' \
-e 's/=ST/linux/g' -e 's/=B/i386/g' \
/usr/share/kernel-package/Control > debian/control
test -f debian/changelog || sed -e 's/=V/2.6.19.2-rutest/g' \
-e 's/=D/2.6.19.2-rutest-10.00.Custom/g' -e 's/=A/i386/g' \
-e 's/=ST/linux/g' -e 's/=B/i386/g' \
-e 's/=M/Unknown Kernel Package Maintainer <unknown@unconfigured.in.etc.kernel-pkg.conf>/g' \
/usr/share/kernel-package/changelog > debian/changelog
install -p -m 755 /usr/share/kernel-package/rules debian/rules
for file in ChangeLog Control Control.bin86 config templates.in rules; do \
cp -f /usr/share/kernel-package/$file ./debian/; \
done
for dir in Config docs examples ruleset scripts pkg po; do \
cp -af /usr/share/kernel-package/$dir ./debian/; \
done
test -d ./debian/stamps || mkdir debian/stamps
exec debian/rules APPEND_TO_VERSION=-rutest INITRD=YES
nothing to be done.
root@rupert-laptop:/usr/src/linux#
Any help much appreciated
Rupert
falko
24th January 2007, 12:42
Is it possible you tried to compile the kernel multiple times? Each time a compilation fails or is aborted by you and before you try another compilation, you must run
make clean && make mrproper in the /usr/src/linux/ directory.
rupertg
24th January 2007, 14:17
Thanks for that.
I ran that command line and repeated the process from stage 5 onwards, but it still ends up with "nothing to be done".
Rupert
falko
25th January 2007, 20:20
Then I suggest to delete the /usr/src/linux/ directory and start over.
rupertg
26th January 2007, 20:00
I deleted everything and started from scratch, and this time it worked (it's compiling as I write - although it has yet to complete, it didn't crash out as before).
The reason the original compile failed was, I now discover, my mistake. In the line
fakeroot make-kpkg --initrd --append-to-version=-custom kernel_image kernel_headers
I misread your instruction that "After --append-to-version= you can write any string that helps you identify the kernel, but it must begin with a minus (-) and must not contain whitespace.", and also removed the kernel_image and kernel_headers parameters when I edited the text of the append switch.
A little more care, and all is well!
Thanks for your help
Rupert
magic
18th August 2007, 16:26
I have having the same issues mentioned in this thread. I get the "Nothing to be done" error.
I think its because of this command and that I am entering it in the wrong way perhaps?:
fakeroot make-kpkg --initrd --append-to-version=-custom kernel_image kernel_headers
Can someone please examplify how this command should be entered. In the tutorial it says
"After --append-to-version= you can write any string that helps you identify the kernel, but it must begin with a minus (-) and must not contain whitespace."
Feel free to use whatever string you like for the sake of the example.
Thx,
/magic
falko
19th August 2007, 15:33
You must enter the command exactly as shown in the example. You can replace -custom with any string you like, but it must begin with a -, e.g.:
fakeroot make-kpkg --initrd --append-to-version=-example kernel_image kernel_headers
vBulletin® v3.8.4, Copyright ©2000-2009, Jelsoft Enterprises Ltd.