LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 02-11-2005, 09:41 PM   #1
AJones
Member
 
Registered: Feb 2005
Posts: 95

Rep: Reputation: 16
Trouble compiling Kernel 2.6.10


Hi:

I have trouble compiling 2.6.10 kernel on Mepis. I at the stage for make make-kpkg and I get this error

"cannot find /usr/share/kernel-package/rules" exiting.

What should I do to proceed further?

Thanks
AJ
 
Old 02-12-2005, 01:35 AM   #2
short101
Member
 
Registered: May 2004
Location: Aust.
Distribution: Debian
Posts: 424

Rep: Reputation: 30
Never seen that one. You do have the "kernel-package" app installed?
 
Old 02-12-2005, 03:46 AM   #3
CloudyWizzard
Member
 
Registered: Jul 2004
Location: Belgium
Distribution: Debian Squeeze
Posts: 194

Rep: Reputation: 31
Can this be a bug in the Kernel-Packaga tool ??

I have build kernel 2.6.11-rc3 yesterday, but I needed to make some changes to my soundcard modules but today when I run make-kpkg to make the kernel pacakge I get :

Quote:
test ! -f debian/rules && \
install -p -m 755 /usr/share/kernel-package/rules debian/rules
echo done > stamp-debian
make: *** No rule to make target `conf.vars', needed by `stamp-configure'. Stop.
I did do apt-get upgrade this morning so I guess it upgraded to a new version of a certain package and that's the cause of the problem ?

I did find some information on a similar problem with Google but that was about Kernel-Package version 8.075 but that bug was fix (current version on kernel-package in apt and on my system is 8.120).

Anyone who know here/if I can see the release date of this package ? (if it was released yesterday or today we might know that this is the cause of the problem ??)
 
Old 02-12-2005, 07:34 AM   #4
short101
Member
 
Registered: May 2004
Location: Aust.
Distribution: Debian
Posts: 424

Rep: Reputation: 30
Also maybe try doing apt-get dist-upgrade. Sometimes you can get conflicts with some old and new packages that depend on each other. Apt-get upgrade doesnt always work whereas apt-get dist-upgrade may solve it. Read the apt howto about the differences about the two commands. (cant remember exactly myself at the moment) Sounds like it could well be a bug though.
 
Old 02-12-2005, 09:02 AM   #5
CloudyWizzard
Member
 
Registered: Jul 2004
Location: Belgium
Distribution: Debian Squeeze
Posts: 194

Rep: Reputation: 31
I already tried apt-get dist-upgrade but that didn't fix it.
I think the main difference between apt-get upgrade and apt-get dist-upgrade is that the dist-upgrade option is more a "smart" option. (at least that's how Synaptic explains it). But apt-get explains it like this :
upgrade : Package upgrade
dist-upgrade : Distribution upgrade

I know you'll need to use dist-upgrade if you want to switch from Woody to Sarge or Sid.
 
Old 02-12-2005, 10:00 AM   #6
newinlinux
Member
 
Registered: Dec 2003
Location: Next to Equator
Distribution: GNU/Linux 2.6.14
Posts: 382

Rep: Reputation: 30
I have the similar problem as CloudyWizzard:

debox:/usr/src/linux# make-kpkg --append-to-version=-120205 kernel_image
# work around idiocy in recent kernel versions
test ! -e scripts/package/builddeb || \
mv -f scripts/package/builddeb scripts/package/builddeb.dist
test ! -e scripts/package/Makefile || \
(mv -f scripts/package/Makefile scripts/package/Makefile.dist && \
echo "# Dummy file " > scripts/package/Makefile)
test ! -f stamp-debian && test ! -f debian/official && \
rm -rf ./debian && mkdir ./debian
test ! -f stamp-debian && \
( test ! -f debian/official || test ! -f debian/control) && \
sed -e 's/=V/2.6.10-120205/g' -e 's/=D/10.00.Custom/g' \
-e 's/=A/i386/g' -e 's/=SA//g' \
-e 's/=L/lilo (>= 19.1) | grub, /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/kernel/g' \
/usr/share/kernel-package/Control> debian/control
test ! -f stamp-debian && test ! -f debian/official && \
sed -e 's/=V/2.6.10-120205/g' -e 's/=D/10.00.Custom/g' \
-e 's/=A/i386/g' -e 's/=M/Unknown Kernel Package Maintainer <unknown@unconfigured.in.etc.kernel-pkg.conf>/g' \
-e 's/=ST/kernel/g' \
/usr/share/kernel-package/changelog > debian/changelog
test ! -f debian/rules && \
install -p -m 755 /usr/share/kernel-package/rules debian/rules
echo done > stamp-debian
make: *** No rule to make target `conf.vars', needed by `stamp-configure'. Stop.

Really at a lost right now, my first "debian-way" kernel building.
 
Old 02-12-2005, 06:28 PM   #7
short101
Member
 
Registered: May 2004
Location: Aust.
Distribution: Debian
Posts: 424

Rep: Reputation: 30
Just for your info from the apt-howto

The process is very simple. Note that in the first few lines, apt-get says that some packages were kept back. This means that there are new versions of these packages which will not be installed for some reason. Possible reasons are broken dependencies (a package on which it depends doesn't have a version available for download) or new dependencies (the package has come to depend on new packages since the last version).

There's no clean solution for this first case. For the second case, it's sufficient to run apt-get install for the specific package in question, as this will download the dependencies. An even cleaner solution is to use dist-upgrade. See section Upgrading to a new release, Section 3.5.
 
Old 02-12-2005, 10:31 PM   #8
fatman
Member
 
Registered: Mar 2003
Location: PA
Distribution: Ubuntu (x2)
Posts: 158

Rep: Reputation: 30
I just had the same problem as you guys are talking about. (Debian Sid on AMD64 - Alioth)

I ran:
"apt-get update"
"apt-get dist-upgrade"
rebooted and re-ran the compile
and it was solved.
 
Old 02-13-2005, 03:28 AM   #9
CloudyWizzard
Member
 
Registered: Jul 2004
Location: Belgium
Distribution: Debian Squeeze
Posts: 194

Rep: Reputation: 31
I noticed a new version of Kernel-Package (8.121) has been released.
Just installed it with APT and it works again !

So I guess it was a little bug in version 8.120
 
  


Reply



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
Trouble Compiling Kernel Module... Elric of Grans Linux - General 2 05-31-2006 12:57 AM
trouble compiling i686 kernel? mma8x Linux - General 1 11-07-2005 06:11 AM
having trouble while compiling kernel.. The_eXXe Mandriva 12 09-02-2004 01:53 PM
Having trouble compiling 2.6.3 kernel s1lv1a9999 Linux - Software 2 03-03-2004 01:14 AM
Trouble when compiling the 2.6.2 kernel Menestrel Linux - Software 1 02-14-2004 07:11 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 07:31 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration