Error I've never seen when trying to compile the kernel
DebianThis forum is for the discussion of Debian Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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.
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.
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
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.
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?
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.
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.
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
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.