LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
Search this Thread
Old 06-01-2010, 06:13 AM   #1
robertkey
LQ Newbie
 
Registered: Jan 2008
Location: Somerset West, South Africa
Distribution: Debian testing amd64
Posts: 24

Rep: Reputation: 15
Angry make-kpkg fails on amd64 dual core but works on single cpu


Hi when I use make-kpkg to make a custom kernel on single processor system there are no problems. Kernel image and headers packages build successfully.

On an amd64 dual core this is what happens
invocation:
cd /usr/src/linux-source-2.6.32
make mrproper
make-kpkg clean (not necessary just in case)
rm -rf debian (not necessary)
make menuconfig

CONCURRENCY_LEVEL=3 make-kpkg --arch=amd64 --append-to-version='custom12' --initrd kernel_image kernel_headers > ~/out 2>~/out-error

normal output:
make[2]: Leaving directory `/usr/src/linux-source-2.6.32'
make[1]: Leaving directory `/usr/src/linux-source-2.6.32'
error code 0
( compile and link were successful)

error output:
[: 9: -f: unexpected operator
WARNING: Couldn't open directory /usr/src/linux-source-2.6.32/debian/linux-image-/lib/modules/2.6.32-22-generic: No such file or directory
FATAL: Could not open /usr/src/linux-source-2.6.32/debian/linux-image-/lib/modules/2.6.32-22-generic/modules.dep.temp for writing: No such file or directory
make[2]: *** [_modinst_post] Error 1
make[1]: *** [debian/stamp/install/linux-image-] Error 2
make: *** [kernel_image] Error 2
( the building of the deb packages has failed)

Notice appendage is 'custom12' but why is there /lib/modules/2.6.32-22-generic there on the FATAL line?
make-kpkg must be doing a `uname -r` because my boot kernel is vmlinuz-2.6.32-22-generic?

Thanks any help would be appreciated?
Rob Key
robkey is online now Report Post Edit/Delete Message

Last edited by robertkey; 06-01-2010 at 06:15 AM. Reason: added tags
 
Old 01-03-2012, 07:07 AM   #2
joar
LQ Newbie
 
Registered: Feb 2011
Posts: 2

Rep: Reputation: 0
Quote:
Originally Posted by robertkey View Post
Hi when I use make-kpkg to make a custom kernel on single processor system there are no problems. Kernel image and headers packages build successfully.

On an amd64 dual core this is what happens
invocation:
cd /usr/src/linux-source-2.6.32
make mrproper
make-kpkg clean (not necessary just in case)
rm -rf debian (not necessary)
make menuconfig

CONCURRENCY_LEVEL=3 make-kpkg --arch=amd64 --append-to-version='custom12' --initrd kernel_image kernel_headers > ~/out 2>~/out-error

normal output:
make[2]: Leaving directory `/usr/src/linux-source-2.6.32'
make[1]: Leaving directory `/usr/src/linux-source-2.6.32'
error code 0
( compile and link were successful)

error output:
[: 9: -f: unexpected operator
WARNING: Couldn't open directory /usr/src/linux-source-2.6.32/debian/linux-image-/lib/modules/2.6.32-22-generic: No such file or directory
FATAL: Could not open /usr/src/linux-source-2.6.32/debian/linux-image-/lib/modules/2.6.32-22-generic/modules.dep.temp for writing: No such file or directory
make[2]: *** [_modinst_post] Error 1
make[1]: *** [debian/stamp/install/linux-image-] Error 2
make: *** [kernel_image] Error 2
( the building of the deb packages has failed)

Notice appendage is 'custom12' but why is there /lib/modules/2.6.32-22-generic there on the FATAL line?
make-kpkg must be doing a `uname -r` because my boot kernel is vmlinuz-2.6.32-22-generic?

Thanks any help would be appreciated?
Rob Key
robkey is online now Report Post Edit/Delete Message
thought you would have to do a
make-kpkg clean before make-kpkg (?)
And I isn't it a rule of thumb to have CONCURRENCY_LEVEL= to reflect the number of cores on the machine building the kernel ?
And use fakeroot (2 core example):
fakeroot make-kpkg -j 2 --arch=amd64 --append-to-version='custom12' --initrd kernel_image kernel_headers > ~/out 2>~/out-error
 
  


Reply

Tags
debian, kernel, makekpkg


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 On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
cpu frequency scaling with Pentium(R) Dual-Core CPU E5200 @ 2.50GHz tramni1980 Slackware 5 08-16-2009 08:29 AM
migrate an old kernel module (working in single core) to dual core - repost senthil100 Programming 0 07-28-2009 03:39 PM
kernel build using make-kpkg fails GhostCow Ubuntu 2 01-07-2008 01:18 PM
Kernel compile fails with make-kpkg, not with make cspos Debian 37 11-09-2005 09:11 AM
make-kpkg fails. Royle Debian 1 01-13-2005 03:07 AM


All times are GMT -5. The time now is 02:22 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