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

Newegg Daily Deals

Reply
 
Thread Tools
Old 03-18-08, 05:18 PM   #1
Christophe Lohr
Registered User
 
Join Date: Mar 2008
Posts: 9
Default Can't install 96.43.05 on Linux 2.6.22-3-k7

Hi,
I have an AMD Duron, a GeForce2 MX 400, a Linux 2.6.22-3-k7 (Debian testing).
I can't install NVIDIA-Linux-x86-96.43.05-pkg0.run

It seems that to compile the module I need some functions not provided by the kernel: remap_page_range(), vmap(), kmem_cache_create()

(see attached file for details)

Note that the patch proposed here does not solve my problem:
http://www.nvnews.net/vbulletin/showthread.php?t=110088

What should I do ?

Many thanks
Attached Files
File Type: gz nvidia-installer.log.gz (8.7 KB, 99 views)
Christophe Lohr is offline   Reply With Quote
Old 03-18-08, 06:33 PM   #2
zander
NVIDIA Corporation
 
zander's Avatar
 
Join Date: Aug 2002
Posts: 3,740
Default Re: Can't install 96.43.05 on Linux 2.6.22-3-k7

Judging from the nvidia-installer.log file, you're either building against an kernel source tree that's in an inconsistent state or against a kernel that doesn't build with gcc-4.1. The driver installation should succeed once this/these problem(s) are resolved.
zander is offline   Reply With Quote
Old 03-19-08, 05:31 AM   #3
Christophe Lohr
Registered User
 
Join Date: Mar 2008
Posts: 9
Default Re: Can't install 96.43.05 on Linux 2.6.22-3-k7

Quote:
Originally Posted by zander
you're either building against an kernel source tree that's in an inconsistent state
I use following debian packages:

linux-image-2.6.22-3-k7
linux-headers-2.6.22-3-k7
linux-headers-2.6.22-3
linux-kbuild-2.6.22

Usually it is good enough to build extra kernel modules such as gspca, ndiswrapper, hsfmodem, etc.

I also tried with the linux-source-2.6.22 package without success.

Note that the above mentioned functions (e.g. remap_page_range()) are not present in these source code, neither in the original code
linux-2.6.22.19.tar.bz2 from kernel.org. For instance, function ioremap_page_range() exists, but not remap_page_range(). Is it normal? Some users mention on forums that remap_page_range() is replaced by remap_pfn_range(). What's your opinion?


Quote:
Originally Posted by zander
... or against a kernel that doesn't build with gcc-4.1.
This is what I get:
Code:
# cat /proc/version 
Linux version 2.6.22-3-k7 (Debian 2.6.22-6.lenny1) (sf@debian.org) (gcc version 4.1.3 20071209 (prerelease) (Debian 4.1.2-18)) #1 SMP Sun Feb 10 21:04:14 UTC 2008
Christophe Lohr is offline   Reply With Quote
Old 03-19-08, 12:04 PM   #4
Wapush
Registered User
 
Join Date: Mar 2008
Posts: 1
Default Re: Can't install 96.43.05 on Linux 2.6.22-3-k7

Hi

Before intalling your driver, do:
Code:
export CC="/usr/bin/gcc-4.1"
Wapush is offline   Reply With Quote
Old 03-19-08, 12:55 PM   #5
zander
NVIDIA Corporation
 
zander's Avatar
 
Join Date: Aug 2002
Posts: 3,740
Default Re: Can't install 96.43.05 on Linux 2.6.22-3-k7

@Christophe Lohr: the installer performs compile tests designed to identify which interfaces to use (and/or which variants thereof) prior to making an attempt to build the kernel module proper; judging from the log file you attached, at least some of these compile tests are failing. If you look at the log file, you'll see a number of errors being picked up from kernel header files, which are the most likely reason for the compile test failures.
zander is offline   Reply With Quote
Old 03-19-08, 04:50 PM   #6
Christophe Lohr
Registered User
 
Join Date: Mar 2008
Posts: 9
Default Re: Can't install 96.43.05 on Linux 2.6.22-3-k7

Yes, first error is
Code:
   In file included from /tmp/selfgz23865/NVIDIA-Linux-x86-96.43.05-pkg0-custom
   /usr/src/nv/nv-linux.h:34,
                    from /tmp/selfgz23865/NVIDIA-Linux-x86-96.43.05-pkg0-custom
   /usr/src/nv/nv.c:14:
   /tmp/selfgz23865/NVIDIA-Linux-x86-96.43.05-pkg0-custom/usr/src/nv/conftest.h
   :1:2: error: #error remap_page_range() conftest failed!
conftest.h is generated by conftest.sh. It tries to compile a conftestXXX.c
Code:
#include <linux/autoconf.h>
#include <linux/mm.h>

void
conftest_remap_page_range (void)
{
  remap_page_range ();
}
with
Code:
gcc-4.1 -D__KERNEL__ -DKBUILD_BASENAME="#conftest5386" \
  -DKBUILD_MODNAME="#conftest5386" -nostdinc -isystem \
  /usr/lib/gcc/i486-linux-gnu/4.1.3/include -I/lib/modules/2.6.22-3-k7/build/include \
  -I/lib/modules/2.6.22-3-k7/build/include/asm/mach-default -c conftest5386.c
But you should already know all of that as you are one of the authors ;-)

This test fails on my system:
Code:
In file included from /lib/modules/2.6.22-3-k7/build/include/linux/bitmap.h:8,
                 (..)
                 from /lib/modules/2.6.22-3-k7/build/include/linux/gfp.h:4,
                 from /lib/modules/2.6.22-3-k7/build/include/linux/mm.h:9,
                 from conftest.c:3:
/lib/modules/2.6.22-3-k7/build/include/linux/string.h:107: error: expected declaration specifiers or '...' before 'gfp_t'
(..)
conftest.c: In function 'conftest_remap_page_range':
conftest.c:8: warning: implicit declaration of function 'remap_page_range'
Do you have any idea why the 'gfp_t' type is not defined?
And where is supposed to be the function 'remap_page_range'?

Many thanks,
Christophe.
Christophe Lohr is offline   Reply With Quote
Old 03-19-08, 06:27 PM   #7
zander
NVIDIA Corporation
 
zander's Avatar
 
Join Date: Aug 2002
Posts: 3,740
Default Re: Can't install 96.43.05 on Linux 2.6.22-3-k7

You should concentrate on fixing the kernel source tree, i.e. fixing the various NVIDIA driver unrelated problems like:
include/linux/string.h:107: error: expected declaration specifiers or '...' before 'gfp_t'
include/linux/string.h:108: error: expected declaration specifiers or '...' before 'gfp_t'
In file included from include/linux/cpumask.h:86,
from include/asm/paravirt.h:18,
from include/asm/msr.h:78,
from include/asm/processor.h:17,
from include/asm/thread_info.h:16,
from include/linux/thread_info.h:21,
from include/linux/preempt.h:9,
from include/linux/spinlock.h:49,
from include/linux/module.h:9,
,
include/linux/bitmap.h: In function 'bitmap_zero':
include/linux/bitmap.h:137: warning: implicit declaration of function 'BITS_TO_LONGS'
In file included from include/asm/paravirt.h:18,
from include/asm/msr.h:78,
from include/asm/processor.h:17,
from include/asm/thread_info.h:16,
from include/linux/thread_info.h:21,
from include/linux/preempt.h:9,
from include/linux/spinlock.h:49,
from include/linux/module.h:9,
and

include/linux/cpumask.h: At top level:
include/linux/cpumask.h:88: error: expected specifier-qualifier-list before 'DECLARE_BITMAP'
include/linux/cpumask.h: In function '__cpu_set':
include/linux/cpumask.h:94: error: 'cpumask_t' has no member named 'bits'
include/linux/cpumask.h: In function '__cpu_clear':
include/linux/cpumask.h:100: error: 'cpumask_t' has no member named 'bits'
(...)
. Make sure you have the necessary kernel header/development packages installed and that the kernel source tree is configured to match the running kernel. The driver installation should succeed at that point. You may be able to get more detailed help on Debian GNU/Linux forums (I assume you're using Debian GNU/Linux).
zander is offline   Reply With Quote
Old 03-20-08, 04:00 PM   #8
Christophe Lohr
Registered User
 
Join Date: Mar 2008
Posts: 9
Smile Re: Can't install 96.43.05 on Linux 2.6.22-3-k7

It seems that Debian Lenny package linux-headers-2.6.22-3-k7 is a little bit inconsistent... Fortunately package linux-headers-2.6.22-3-686 is a good replacement.
Now, the nvidia driver compiles on my system!
Many thanks.
Christophe Lohr 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
Mageia 2 Cannot Install 71.86.15 for Riva TNT/TNT2 kbulgrien NVIDIA Linux 3 06-29-12 08:27 AM
How to quickly Install NVIDIA R302.11 Drivers Under Linux Mint 13 News Archived News Items 0 06-12-12 06:40 AM
nForce + RedHat 7.3 Success Story rtz NVIDIA Linux 47 02-15-03 02:20 AM
Ti4200 and Linux Install Problem ultrajava NVIDIA Linux 5 09-28-02 08:13 AM
How to install Divx+player to SUSE linux guide... kaarelcool NVIDIA Linux 1 08-27-02 07:54 AM

All times are GMT -5. The time now is 04:27 PM.


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