LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Kernel (http://www.linuxquestions.org/questions/linux-kernel-70/)
-   -   kernel 2.6.30rc7 make and compile errors on debian squeeze (http://www.linuxquestions.org/questions/linux-kernel-70/kernel-2-6-30rc7-make-and-compile-errors-on-debian-squeeze-728977/)

dougallinux 05-27-2009 09:17 PM

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.

norobro 05-27-2009 11:53 PM

Since make-kpkg can't find "debian/changelog" or "debian/control", did you forget the link to linux-2.6.30-rc7.

dougallinux 05-28-2009 02:06 AM

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"

norobro 05-28-2009 09:15 AM

Quote:

Originally Posted by dougallinux (Post 3555133)
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!

dougallinux 05-28-2009 10:18 AM

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#

norobro 05-28-2009 01:06 PM

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?

dougallinux 05-28-2009 05:08 PM

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.


All times are GMT -5. The time now is 10:09 PM.