LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel
User Name
Password
Linux - Kernel This forum is for all discussion relating to the Linux kernel.

Notices

Reply
 
Search this Thread
Old 05-27-2009, 10:17 PM   #1
dougallinux
LQ Newbie
 
Registered: May 2009
Distribution: debian/ubuntu
Posts: 4

Rep: Reputation: 0
kernel 2.6.30rc7 make and compile errors on debian squeeze


I'm running on a P3 500MHz 380MB RAM. I have compiled one kernel(2.6.30-rc5) sucesfully before on a different computer(P4 2.66GHz 512MB RAM) using this guide that time and this time. I know it is for ubuntu but it worked the first time. I've used a couple debian specific ones but they had similar errors. Am i making a noob mistake? below is the terminal output.
The "make-kpkg clean" command returns this


"debian:/usr/src/linux# make-kpkg clean
exec make kpkg_version=12.014 -f /usr/share/kernel-package/ruleset/minimal.mk clean
tail: cannot open `debian/changelog' for reading: No such file or directory
dpkg-parsechangelog: failure: tail of debian/changelog gave error exit status 1
tail: cannot open `debian/changelog' for reading: No such file or directory
dpkg-parsechangelog: failure: tail of debian/changelog gave error exit status 1
egrep: debian/control: No such file or directory
tail: cannot open `debian/changelog' for reading: No such file or directory
dpkg-parsechangelog: failure: tail of debian/changelog gave error exit status 1
tail: cannot open `debian/changelog' for reading: No such file or directory
dpkg-parsechangelog: failure: tail of debian/changelog gave error exit status 1
tail: cannot open `debian/changelog' for reading: No such file or directory
dpkg-parsechangelog: failure: tail of debian/changelog gave error exit status 1
Can't open debian/control: No such file or directory at -e line 1.
Can't open debian/control: No such file or directory at -e line 1.
Can't open debian/control: No such file or directory at -e line 1.
====== making target minimal_clean [new prereqs: ]======
This is kernel package version 12.014.
test ! -f .config || cp -pf .config config.precious
test ! -e stamp-building || rm -f stamp-building
test ! -f Makefile || \
make ARCH=i386 distclean
make[1]: Entering directory `/usr/src/linux-2.6.30-rc7'
CLEAN scripts/basic
CLEAN scripts/kconfig
CLEAN include/config
CLEAN .config .config.old include/linux/autoconf.h
make[1]: Leaving directory `/usr/src/linux-2.6.30-rc7'
test ! -f config.precious || mv -f config.precious .config
rm -f modules/modversions.h modules/ksyms.ver conf.vars scripts/cramfs/cramfsck scripts/cramfs/mkcramfs
debian:/usr/src/linux# CONCURRENCY_LEVEL=3 make-kpkg --initrd --revision=386 kernel_image
exec make kpkg_version=12.014 -f /usr/share/kernel-package/ruleset/minimal.mk debian DEBIAN_REVISION=386 INITRD=YES
^CFailed to create a ./debian directory: No such file or directory at /usr/bin/make-kpkg line 970."

and "CONCURRENCY_LEVEL=1 make-kpkg --initrd --revision=p3-5800mhz kernel_image" returns this along with the full compile

"debian:/usr/src/linux# CONCURRENCY_LEVEL=1 make-kpkg --initrd --revision=p3-5800mhz kernel_image
I note you are using a hyphen in the revision number.
Please ensure that the upstream and debian revision
numbers are policy compliant enough that dpkg and
shall not choke on them at the end of the compile
exec make kpkg_version=12.014 -f /usr/share/kernel-package/ruleset/minimal.mk debian DEBIAN_REVISION=p3-5800mhz INITRD=YES
tail: cannot open `debian/changelog' for reading: No such file or directory
dpkg-parsechangelog: failure: tail of debian/changelog gave error exit status 1
tail: cannot open `debian/changelog' for reading: No such file or directory
dpkg-parsechangelog: failure: tail of debian/changelog gave error exit status 1
egrep: debian/control: No such file or directory
tail: cannot open `debian/changelog' for reading: No such file or directory
dpkg-parsechangelog: failure: tail of debian/changelog gave error exit status 1
tail: cannot open `debian/changelog' for reading: No such file or directory
dpkg-parsechangelog: failure: tail of debian/changelog gave error exit status 1
tail: cannot open `debian/changelog' for reading: No such file or directory
dpkg-parsechangelog: failure: tail of debian/changelog gave error exit status 1
Can't open debian/control: No such file or directory at -e line 1.
Can't open debian/control: No such file or directory at -e line 1.
Can't open debian/control: No such file or directory at -e line 1.
====== making target debian/stamp/conf/minimal_debian [new prereqs: ]======
This is kernel package version 12.014.
test -d debian || mkdir debian
test ! -e stamp-building || rm -f stamp-building
install -p -m 755 /usr/share/kernel-package/rules debian/rules
for file in ChangeLog Control Control.bin86 config templates.in rules; do"

and then the compiling of the kernel too much to list unless it is important.
 
Old 05-28-2009, 12:53 AM   #2
norobro
Member
 
Registered: Feb 2006
Distribution: Debian Sid
Posts: 252

Rep: Reputation: 53
Since make-kpkg can't find "debian/changelog" or "debian/control", did you forget the link to linux-2.6.30-rc7.
 
Old 05-28-2009, 03:06 AM   #3
dougallinux
LQ Newbie
 
Registered: May 2009
Distribution: debian/ubuntu
Posts: 4

Original Poster
Rep: Reputation: 0
reply

I did this. Is that what i was supposed to do?
"rm -rf linux && ln -s /usr/src/linux-2.6.30-rc7 linux"
 
Old 05-28-2009, 10:15 AM   #4
norobro
Member
 
Registered: Feb 2006
Distribution: Debian Sid
Posts: 252

Rep: Reputation: 53
Quote:
Originally Posted by dougallinux View Post
I did this. Is that what i was supposed to do?
"rm -rf linux && ln -s /usr/src/linux-2.6.30-rc7 linux"
Yes, but "ln" does not report an error if the target directory does not exist.

Please post the output of the following:
Code:
/usr/src# ls -l
to see if the link is broken and
Code:
/usr/src/linux# ls -l
to see if your kernel source is in that location. Other than that, I got nothing!
 
Old 05-28-2009, 11:18 AM   #5
dougallinux
LQ Newbie
 
Registered: May 2009
Distribution: debian/ubuntu
Posts: 4

Original Poster
Rep: Reputation: 0
debian:/usr/src# ls -l
total 79440
lrwxrwxrwx 1 root src 25 2009-05-27 18:09 linux -> /usr/src/linux-2.6.30-rc7
drwxr-xr-x 24 root root 4096 2009-05-28 07:33 linux-2.6.30-rc7
-rw-r--r-- 1 root src 59409166 2009-05-23 17:02 linux-2.6.30-rc7.tar.bz2
-rw-r--r-- 1 root src 5918528 2009-05-28 07:37 linux-headers-2.6.30-rc7_p3-500mhz_i386.deb
-rw-r--r-- 1 root src 15905574 2009-05-28 07:30 linux-image-2.6.30-rc7_p3-500mhz_i386.deb
drwxr-xr-x 7 root root 4096 2009-05-26 21:53 rpm
debian:/usr/src#


debian:/usr/src# cd /usr/src/linux
debian:/usr/src/linux# ls -l
total 11404
drwxr-xr-x 25 root root 4096 2009-05-28 03:02 arch
drwxr-xr-x 2 root root 4096 2009-05-28 03:49 block
-rw-r--r-- 1 root root 202 2009-05-28 02:05 conf.vars
-rw-r--r-- 1 root root 18693 2009-05-23 16:47 COPYING
-rw-r--r-- 1 root root 93847 2009-05-23 16:47 CREDITS
drwxr-xr-x 3 root root 20480 2009-05-28 06:50 crypto
drwxr-xr-x 12 root root 4096 2009-05-28 07:37 debian
drwxr-xr-x 83 root root 12288 2009-05-23 16:47 Documentation
drwxr-xr-x 84 root root 4096 2009-05-28 05:45 drivers
drwxr-xr-x 33 root root 4096 2009-05-28 07:24 firmware
drwxr-xr-x 70 root root 12288 2009-05-28 07:13 fs
drwxr-xr-x 22 root root 4096 2009-05-28 03:02 include
drwxr-xr-x 2 root root 4096 2009-05-28 03:03 init
drwxr-xr-x 2 root root 4096 2009-05-28 03:47 ipc
-rw-r--r-- 1 root root 2430 2009-05-23 16:47 Kbuild
drwxr-xr-x 6 root root 12288 2009-05-28 03:03 kernel
drwxr-xr-x 6 root root 12288 2009-05-28 07:14 lib
lrwxrwxrwx 1 root root 25 2009-05-28 02:00 linux-2.6.30-rc7 -> /usr/src/linux-2.6.30-rc7
-rw-r--r-- 1 root root 148173 2009-05-23 16:47 MAINTAINERS
-rw-r--r-- 1 root root 55128 2009-05-23 16:47 Makefile
drwxr-xr-x 2 root root 4096 2009-05-28 03:03 mm
-rw-r--r-- 1 root root 56807 2009-05-28 06:48 modules.order
-rw-r--r-- 1 root root 451952 2009-05-28 06:49 Module.symvers
drwxr-xr-x 47 root root 4096 2009-05-28 06:47 net
-rw-r--r-- 1 root root 17080 2009-05-23 16:47 README
-rw-r--r-- 1 root root 3172 2009-05-23 16:47 REPORTING-BUGS
drwxr-xr-x 7 root root 4096 2009-05-23 16:47 samples
drwxr-xr-x 12 root root 4096 2009-05-28 03:03 scripts
drwxr-xr-x 7 root root 4096 2009-05-28 03:47 security
drwxr-xr-x 21 root root 4096 2009-05-28 07:23 sound
-rw-r--r-- 1 root root 997320 2009-05-28 03:02 System.map
drwxr-xr-x 2 root root 4096 2009-05-28 03:03 usr
drwxr-xr-x 3 root root 4096 2009-05-23 16:47 virt
-rwxr-xr-x 1 root root 4454233 2009-05-28 03:02 vmlinux
-rw-r--r-- 1 root root 5168552 2009-05-28 03:01 vmlinux.o
debian:/usr/src/linux#
 
Old 05-28-2009, 02:06 PM   #6
norobro
Member
 
Registered: Feb 2006
Distribution: Debian Sid
Posts: 252

Rep: Reputation: 53
I don't see anything wrong. Maybe there was a problem unzipping the source file. You might try deleting the directory and the link and then unzipping the compressed source file again:

First copy your .config file out of the directory that you are going to delete:
Code:
/usr/src# cp /linux/.config .
delete the directory and the link:
Code:
/usr/src# rm linux-2.6.30-rc7
/usr/src# rm linux
unzip the compressed source file, recreate the link and copy the .config file back:
Code:
/usr/src# tar -xvjf linux-2.6.30-rc7.tar.bz2
/usr/src# ln -s linux-2.6.30-rc7 linux
/usr/src# mv .config linux/
and then run:
Code:
/usr/src# make-kpkg clean
Looks like you already have a kernel image: "linux-image-2.6.30-rc7_p3-500mhz_i386.deb" Are you recompiling?

Last edited by norobro; 05-28-2009 at 02:59 PM.
 
Old 05-28-2009, 06:08 PM   #7
dougallinux
LQ Newbie
 
Registered: May 2009
Distribution: debian/ubuntu
Posts: 4

Original Poster
Rep: Reputation: 0
The "linux-image-2.6.30-rc7_p3-500mhz_i386.deb" compiled over night but initrd was missing. I took a "-" off the compile command and it is going right now(closing in on 6 hrs).
if the currently compiling kernel does not work i will try what you suggested.

Thanks for the help.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
kernel compile - make errors hnad Slackware 5 09-18-2004 07:54 AM
make compile errors -- python problems??? p_motch Linux - Newbie 2 07-11-2004 08:37 PM
Fedora2 kernel 2.6 compile. cant even make config (fixdep.c full of errors) qwijibow Linux - Software 4 06-20-2004 02:20 PM
make install errors during kernel compile tharris Slackware 1 02-16-2004 11:11 AM
make and gcc compile errors sedandawk Linux - General 1 12-18-2002 03:56 AM


All times are GMT -5. The time now is 03:41 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration