HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials

HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials (http://www.howtoforge.com/forums/index.php)
-   Kernel Questions (http://www.howtoforge.com/forums/forumdisplay.php?f=6)
-   -   Issue compiling kernel 2.6.19.1 in Ubuntu 6.10 (http://www.howtoforge.com/forums/showthread.php?t=9441)

sqrtof3 30th December 2006 09:30

Issue compiling kernel 2.6.19.1 in Ubuntu 6.10
 
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
Code:

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 20:01

Are you in the correct directory when you run the fakeroot command?

sqrtof3 31st December 2006 23: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 20:19

What's the output of
Code:

ls -la /usr/src/linux/
and
Code:

ls -la /usr/src/
?

sqrtof3 2nd January 2007 01:04

First off thanks for the replys and insight so far. Secondly here are the outputs:

Code:

ls -la /usr/src/linux/
Output:
Code:

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


Code:

ls -la /usr/src/
Output:
Code:

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 18:38

Quote:

Originally Posted by sqrtof3
Code:

ls -la /usr/src/linux/
Output:
Code:

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
Code:

cp /boot/config-`uname -r` ./.config
make menuconfig
make-kpkg clean

give back any errors?

rupertg 23rd January 2007 03:40

Hi there.

I'm getting exactly the same problem trying to compile 2.6.19.2 under Ubuntu 6.10.

Code:

ls -la /usr/src/linux/
gives

Code:

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

Code:

ls -la /usr/src/
gives

Code:

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...

Code:

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!

Code:

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 11: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
Code:

make clean && make mrproper
in the /usr/src/linux/ directory.

rupertg 24th January 2007 13: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 19:20

Then I suggest to delete the /usr/src/linux/ directory and start over.


All times are GMT +2. The time now is 14:04.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.