LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 09-18-2006, 01:03 PM   #1
BigVig
Member
 
Registered: Feb 2006
Location: Chicago
Distribution: Linux Mint 21.2 (xfce)
Posts: 143

Rep: Reputation: 16
Error I've never seen when trying to compile the kernel


I am trying to recompile my kernel in order to install the nvidia drivers
properly on my amd64 system, and I am getting the following error message:

Code:
/usr/src/linux# make menuconfig
make: Warning: File ‘/usr/src/linux-headers-2.6.16-2-amd64-k8/arch/x86_64/
Makefile’ has modification time 3.4e+07 s in the future
make [1]: Warning: File ‘scripts/Makefile.host’ has modification time 
3.4e+07 s in the future
make [1]:***No rule to make target ‘scripts/basic/fixdep.c’, needed by 
‘scripts/basic/fixdep’. Stop.
make: ***[script_basic] Error 2
And, then, I'm back at the command prompt. Like I said, I was doing this with
the goal of installing the nvidia drivers, but I'm thinking this points to a
serious problem that will need to be fixed before I can getthe drivers running.

I still consider myself an inexperienced user when it comes to compiling stuff,
but I've never heard of this type of error before.

I'm running Debian Etch with the 2.6.16-2-amd64-k8 kernel.

Can anyone point out what might be causing this error? Thank you in advance.

Last edited by BigVig; 09-21-2006 at 11:17 AM.
 
Old 09-18-2006, 02:18 PM   #2
weibullguy
ReliaFree Maintainer
 
Registered: Aug 2004
Location: Kalamazoo, Michigan
Distribution: Slackware 14.2
Posts: 2,815
Blog Entries: 1

Rep: Reputation: 261Reputation: 261Reputation: 261
The future time means your clock is wrong, or you corrupted the timestamps on your filesystem. Check to be sure that your system time and date are set correctly? Alternatively you may download a fresh file, wait a year or so for your time to catch up, temporarily set your clock forward, or use a utility such as touch to change the timestamp of the files.

The other error means make is looking for a file fixdep.c and can't find it.

Since you are using Debian, I assume that you are following Debian directions for compiling a kernel. If not, you may want to browse this thread before you continue. Its been active for about two years, so there's alot to read, but the topic is Debian kernel compiliation.
 
Old 09-19-2006, 12:02 PM   #3
BigVig
Member
 
Registered: Feb 2006
Location: Chicago
Distribution: Linux Mint 21.2 (xfce)
Posts: 143

Original Poster
Rep: Reputation: 16
Thanks for the tip

Thank you very much for the assistance.

I apt-get installed ntpd and fixed the clock issue.

Now, I need to figure out what is causing the dependency problem.

Code:
make [1]: Warning: File ‘scripts/Makefile.host’ has
modification time 3.4e+07 s in the future
make [1]:***No rule to make target ‘scripts/basic/fixdep.c’,
 needed by ‘scripts/basic/fixdep’. Stop.
make: ***[script_basic] Error 2
Does anyone have a suggestion as to how to resolve this dependency
error? Thanks in advance.

Last edited by BigVig; 09-21-2006 at 11:18 AM. Reason: Fix width
 
Old 09-19-2006, 01:37 PM   #4
weibullguy
ReliaFree Maintainer
 
Registered: Aug 2004
Location: Kalamazoo, Michigan
Distribution: Slackware 14.2
Posts: 2,815
Blog Entries: 1

Rep: Reputation: 261Reputation: 261Reputation: 261
fixdep is part of the package 'linux-headers-2.6.16-2-amd64-k8'. You should have it. If it were me, I would remove and reinstall the headers.
 
Old 09-21-2006, 11:15 AM   #5
BigVig
Member
 
Registered: Feb 2006
Location: Chicago
Distribution: Linux Mint 21.2 (xfce)
Posts: 143

Original Poster
Rep: Reputation: 16
Same compile error

Thanks for the helping hand, Arow.

I 'apt-get removed' linux-headers-2.6.16-2-amd64-k8 and
linux-headers-2.6.16-2.

I re-installed them with 'apt-get install' and attempted
'make menuconfig' from /usr/src/linux.

Unfortunately, I received the same error message.
Code:
make [1]:***No rule to make target ‘scripts/basic/fixdep.c’,
needed by ‘scripts/basic/fixdep’. Stop.
make: ***[script_basic] Error 2
Okay, I'm stuck. The reason I was doing the re-compile was to change some settings in order to make installing the debian packages of the Nvidia drivers for my GeForce 7600 GT less painful. Now, I cannot use 'make' to re-compile the kernel, which I see as a much graver issue.

I'm going to install pine so that I can email any log files, etc., to my work PC to post here. Arow, or any other kind soul, what log files would help in figuring out my next step forward? A dumb idea just occurred to me that maybe ncurses isn't installed? Anyway, thank you in advance.

Last edited by BigVig; 09-21-2006 at 11:21 AM.
 
Old 09-21-2006, 12:26 PM   #6
kriton12
Member
 
Registered: Oct 2002
Posts: 81

Rep: Reputation: 16
Why don't you download the kernel files directly from kernel.org? Maybe when somebody built the debian package they missed something? Are you sure you have all of the kernel build tools as well?
 
Old 09-21-2006, 04:16 PM   #7
BigVig
Member
 
Registered: Feb 2006
Location: Chicago
Distribution: Linux Mint 21.2 (xfce)
Posts: 143

Original Poster
Rep: Reputation: 16
Nope, I'm not sure at all that I've got all the tools I need installed.

That's why I mentioned I wasn't even sure if ncurses was installed.

I'll google the info to try to make sure I've got what I need in order to compile, but if you have a list that you believe is useful, please include it here. Thank you for your reply.
 
Old 09-21-2006, 04:44 PM   #8
HappyTux
Senior Member
 
Registered: Mar 2003
Location: Nova Scotia, Canada
Distribution: Debian AMD64
Posts: 4,170

Rep: Reputation: 244Reputation: 244Reputation: 244
Quote:
Originally Posted by BigVig
Nope, I'm not sure at all that I've got all the tools I need installed.

That's why I mentioned I wasn't even sure if ncurses was installed.

I'll google the info to try to make sure I've got what I need in order to compile, but if you have a list that you believe is useful, please include it here. Thank you for your reply.
http://newbiedoc.sourceforge.net/system/kernel-pkg.html
 
Old 09-22-2006, 06:59 AM   #9
basileus
Member
 
Registered: Nov 2004
Location: Turku, Finland
Distribution: Debian, Ubuntu, Gentoo
Posts: 388

Rep: Reputation: 30
With Debian you should definitely use the "Debian way" of compiling the kernel. You can use it whether you use Debian kernel sources or sources from kernel.org. It goes like this:

aptitude install kernel-package
cd /usr/src/linux
make-kpkg clean
make menuconfig
make-kpkg --append-to-version "whateveryouwant" kernel_image

Then, if you have some downloaded modules in /usr/src/modules, do a

make-kpkg --append-to-version "thesameasabove" modules_image

Then do

cd /usr/src
dpkg -i your_kernel_image.deb your_modules_image.deb

I use this on _all_ my Debian/Ubuntu computers and it saves lots of trouble especially with packages that have dependencies on some specific kernel versions.
 
  


Reply

Tags
amd64, compile, debian, kernel, set, time



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 error rael_kid Linux - Newbie 14 04-25-2005 11:41 AM
Compile kernel 2.6.11-2 error subaruwrx Debian 2 03-10-2005 01:10 AM
error 2 trying to compile 2.4 kernel TonyJ Fedora 2 09-15-2004 07:51 PM
KERNEL COMPILE ERROR!!! Need Help... Nukem Linux - General 10 02-05-2004 06:26 PM
kernel 2.4.24 compile error german Linux - Software 6 01-30-2004 06:31 PM

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

All times are GMT -5. The time now is 09:12 AM.

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