Go Back   nV News Forums > Linux Support Forums > NVIDIA Linux

Newegg Daily Deals

Reply
 
Thread Tools
Old 06-10-03, 09:39 PM   #1
adz
Registered User
 
Join Date: Jun 2003
Posts: 5
Default Help with make config/oldconfig/dep etc under Debian

OK. I've seen using Linux for a few months now so I know some things but I'm by no means an expert. I'm using Debian v3 r1, kernel version 2.2.20. I've downloaded driver version 1.0-4363 for my GeForce 2 MX 400. I encounter problems when trying to compile the kernel source to generate a modversions.h file. "make oldconfig" works fine but "make dep" fails. "make modules" and "make modules_install" also fail. I'm not sure how to log the output so that's why it's not included. Any help would be greatly appreciated.
adz is offline   Reply With Quote
Old 06-11-03, 01:25 AM   #2
Thunderbird
 
Join Date: Jul 2002
Location: Netherlands, Europe
Posts: 2,105
Default

You don't need to build an actual kernel. Just install the kernel-headers package:
apt-get install kernel-headers-2.2.20 (or something like that)

After that you likely need to make a symlink to /usr/src/linux and the kernel module should compile.

Something else I would upgrade to some 2.4.x kernel (debian ships with one too but default is 2.2x...) since it can be a big improvement.
Thunderbird is offline   Reply With Quote
Old 06-12-03, 07:00 AM   #3
adz
Registered User
 
Join Date: Jun 2003
Posts: 5
Default

Hmmm... I just installed kernel 2.4.20-1-686. The command iname -r has stopped working and so has my cd... Also I still have problems compiling the Nvidia driver. It says that I need to set the CC environment variable to the version that was used to compile my source. I know how to set an enviro variable but I don;t know what to set it to. Also it says that my kernel doesn't match my source (I got the kernel-headers as you suggested). My .log file is attached. Stumped.
Attached Files
File Type: log nvidia-installer.log (3.0 KB, 110 views)
adz is offline   Reply With Quote
Old 06-12-03, 05:29 PM   #4
bwkaz
Registered User
 
Join Date: Sep 2002
Posts: 2,262
Default

Debian used an extremely old compiler on their default 2.2.20 kernel (gcc 2.7.X). They then shipped their distro with a newer, but still almost ancient compiler (2.95.3). These compilers, AFAIK, are not compatible.

The solution would be to recompile Debian's kernel sources with your gcc 2.95.3 (but change the top-level Makefile's EXTRAVERSION string to be something, like -custom or whatever, so that you don't overwrite your old modules directory).

Well... you probably want to double check that first -- do a cat /proc/version and a cc -version to get the version of gcc used to compile the kernel, then the version of gcc currently installed. If the first is 2.7.X and the second is 2.95.3, then this is your problem.
__________________
Registered Linux User #219692
bwkaz is offline   Reply With Quote
Old 06-12-03, 07:47 PM   #5
adz
Registered User
 
Join Date: Jun 2003
Posts: 5
Default

So I just type: "export CC=2.95.4"?
adz is offline   Reply With Quote
Old 06-13-03, 05:22 PM   #6
bwkaz
Registered User
 
Join Date: Sep 2002
Posts: 2,262
Default

No. If you set the CC variable, you would have to set it to the full path and filename of the 2.95.3 (or .4) compiler, not just the version.

The nVidia package has no idea how to invoke a specific version of gcc, in other words.

Also, you have to set CC to the compiler that was used on the kernel, and that is a compiler that you don't have installed.

What all this boils down to is, you should just recompile the kernel with a still old, but slightly less so, compiler (the default one on your system, 2.95.3 or .4).
__________________
Registered Linux User #219692
bwkaz is offline   Reply With Quote
Old 06-14-03, 12:29 AM   #7
adz
Registered User
 
Join Date: Jun 2003
Posts: 5
Default

I've installed gcc 3.3. So it's an even newer one. Also, if you look at the top of the thread I've never been able to compile it. It always errors out...
adz is offline   Reply With Quote
Old 06-14-03, 08:14 AM   #8
bwkaz
Registered User
 
Join Date: Sep 2002
Posts: 2,262
Default

Old kernels (like before 2.4.21 or so) have major issues with gcc 3.3. Stuff that used to compile no longer does (like multi-line string literals), so the kernel fails.

If you must use gcc 3.3, then get kernel 2.4.21. If you don't want kernel 2.4.21, then try gcc 3.2.

To capture the output of make, errors and all, you can make >log.txt 2&>1. When you get a prompt back, the full output will be stored in log.txt.
__________________
Registered Linux User #219692
bwkaz is offline   Reply With Quote

Reply


Thread Tools

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
Forum Jump


Similar Threads
Thread Thread Starter Forum Replies Last Post
Getting the proprietary nvidia driver to run with Debian 3.0 r0 (woody) Katchina404 NVIDIA Linux 9 01-12-03 08:49 AM
Compiling Errors In Debian Scorched NVIDIA Linux 14 09-26-02 11:02 AM
Debian Woody 3.0r0 and Problems with Geforce drivers vogt NVIDIA Linux 3 09-09-02 02:07 PM

All times are GMT -5. The time now is 08:40 PM.


Powered by vBulletin® Version 3.7.1
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Copyright 1998 - 2014, nV News.