nVidia install problems

John Gay johngay at eircom.net
Fri Mar 10 20:07:39 PST 2006

Well, I managed to get my x86_64 Pure64 build finished, built dhcp and X.org! 
Now, trying to install nVidia's x86_64 driver, I'm getting some strange 
problems which I can't figure out.

Just running the install script, as it's meant to be ran gives me:

root:/blfs# sh NVIDIA-Linux-x86_64-1.0-8178-pkg2.run
Verifying archive integrity... OK
Uncompressing NVIDIA Accelerated Graphics Driver for Linux-x86_64 
NVIDIA-Linux-x86_64-1.0-8178-pkg2.run: line 705: ./nvidia-installer: No such 
e or directory

So, I extracted the archive and tested the nvidia-installer program, with this 

root:/blfs/NVIDIA-Linux-x86_64-1.0-8178-pkg2# file nvidia-installer
nvidia-installer: ELF 64-bit LSB executable, AMD x86-64, version 1 (SYSV), for 
NU/Linux 2.4.1, dynamically linked (uses shared libs), for GNU/Linux 2.4.1, 
root:/blfs/NVIDIA-Linux-x86_64-1.0-8178-pkg2# ./nvidia-installer
-bash: ./nvidia-installer: No such file or directory

As you can see, file identifies nvidia-installer as a 64-bit binary, though 
I'm not sure what it means by GNU/Linux 2.4.1? I'm guessing kernel version? 
But when I try to execute it, I get "No such file or directory"? How can it 
be there and not be there?

So, going a bit further, I tried running make install, as suggested in the 
doc's, and I get this:
root:/blfs/NVIDIA-Linux-x86_64-1.0-8178-pkg2# make install

In file included 
from /blfs/NVIDIA-Linux-x86_64-1.0-8178-pkg2/usr/src/nv/nv.c:14:
/blfs/NVIDIA-Linux-x86_64-1.0-8178-pkg2/usr/src/nv/nv-linux.h:535:2: error: 
#error "vmap() appears to be unavailable in this kernel!"
/blfs/NVIDIA-Linux-x86_64-1.0-8178-pkg2/usr/src/nv/nv-linux.h:677:2: warning: 
#warning "conftest.sh failed, assuming remap_page_range(4)!"
/blfs/NVIDIA-Linux-x86_64-1.0-8178-pkg2/usr/src/nv/nv.c: At top level:
/blfs/NVIDIA-Linux-x86_64-1.0-8178-pkg2/usr/src/nv/nv.c:296: warning: 
initialization from incompatible pointer type
/blfs/NVIDIA-Linux-x86_64-1.0-8178-pkg2/usr/src/nv/nv.c: In function 
/blfs/NVIDIA-Linux-x86_64-1.0-8178-pkg2/usr/src/nv/nv.c:502: warning: implicit 
declaration of function 'pci_find_class'
/blfs/NVIDIA-Linux-x86_64-1.0-8178-pkg2/usr/src/nv/nv.c:502: warning: 
assignment makes pointer from integer without a cast
/blfs/NVIDIA-Linux-x86_64-1.0-8178-pkg2/usr/src/nv/nv.c:516: warning: 
assignment makes pointer from integer without a cast
/blfs/NVIDIA-Linux-x86_64-1.0-8178-pkg2/usr/src/nv/nv.c: In function 
/blfs/NVIDIA-Linux-x86_64-1.0-8178-pkg2/usr/src/nv/nv.c:1636: error: 'mem_map' 
undeclared (first use in this function)
/blfs/NVIDIA-Linux-x86_64-1.0-8178-pkg2/usr/src/nv/nv.c:1636: error: (Each 
undeclared identifier is reported only once
/blfs/NVIDIA-Linux-x86_64-1.0-8178-pkg2/usr/src/nv/nv.c:1636: error: for each 
function it appears in.)
/blfs/NVIDIA-Linux-x86_64-1.0-8178-pkg2/usr/src/nv/nv.c: In function 
/blfs/NVIDIA-Linux-x86_64-1.0-8178-pkg2/usr/src/nv/nv.c:1979: warning: 
declaration of function 'remap_page_range'
/blfs/NVIDIA-Linux-x86_64-1.0-8178-pkg2/usr/src/nv/nv.c: In function 
/blfs/NVIDIA-Linux-x86_64-1.0-8178-pkg2/usr/src/nv/nv.c:3641: warning: 
assignment makes pointer from integer without a cast
/blfs/NVIDIA-Linux-x86_64-1.0-8178-pkg2/usr/src/nv/nv.c:3647: warning: 
assignment makes pointer from integer without a cast
make[5]: *** [/blfs/NVIDIA-Linux-x86_64-1.0-8178-pkg2/usr/src/nv/nv.o] Error 1
make[4]: *** [_module_/blfs/NVIDIA-Linux-x86_64-1.0-8178-pkg2/usr/src/nv] 
make[3]: *** [modules] Error 2
nvidia.ko failed to build!
make[2]: *** [mdl] Error 1
make[1]: *** [install] Error 2
make[1]: Leaving directory 
make: *** [kernel_module_install] Error 2

So, not it seems that it can't compile the kernel driver because my kernel 
seems to be missing vmap()? This is way over my head.

The base system is built from CLFS-SVN-20060223, with kernel-2.6.16-rc4 and 
udev-085 for a working hot/coldplug system. I followed the x86_64 Pure64 
branch, with only the kernel, udev and cross-bootscripts changed. My box is a 
Dual Opteron 248 with 2G RAM and an nVidia graphics card.

I realise the compiling issue should probably be raised with nVidia, but I was 
hoping someone could explain why the system tells me that nvidia-installer is 
not a file or directory when file identifies it?

On a side note, or two (-;

Installing jim's cross-bootscripts for working hotplug didn't 
replace /etc/rc.d/init.d/udev, I had to copy them over by hand.

Installing dhcp-client from BLFS-6.1 compiled with one small change, 
but /sbin/dhclient-script doesn't create /etc/resolv.conf. However, this also 
doesn't work on my regular desktop either, and several people on blfs-support 
also report issues with this. It's not a big thing, since the dhcp server is 
in a small switch in my house and the dns server doesn't change, so I just 
added /etc/resolv.conf by hand instead.

Thanks for the great work and all the help so far! It's nice to be running a 
64-bit OS that's not BETA software from Redmond (-;


	John Gay

More information about the cross-lfs mailing list