LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   compiling NVIDIA errors (https://www.linuxquestions.org/questions/linux-software-2/compiling-nvidia-errors-596866/)

terfy 11-03-2007 11:21 AM

compiling NVIDIA errors
 
I get this error every time I try
Code:

lin -c NVIDIA
(Lunar Linux)..

I usually know how to figure out what I missed.. but this one im lost..

can anyone help me ?? the compile log is as following:

Quote:

++ Mark Compile start : "NVIDIA" "100.14.23" "Sat Nov 3 16:01:30 UTC 2007"
sh ./conftest.sh "gcc" "gcc" /usr/src/linux /usr/src/linux cc_sanity_check full_output
sh ./conftest.sh "gcc" "gcc" /usr/src/linux /usr/src/linux select_makefile full_output
/usr/bin/make --no-print-directory -f Makefile module

NVIDIA: calling KBUILD...
make CC=gcc KBUILD_VERBOSE=0 -C /usr/src/linux SUBDIRS=/usr/src/NVIDIA-Linux-x86-100.14.23-pkg0/usr/src/nv modules

WARNING: Symbol version dump /usr/src/linux-2.6.20/Module.symvers
is missing; modules will have no dependencies and modversions.

echo \#define NV_COMPILER \"`gcc -v 2>&1 | tail -n 1`\" > /usr/src/NVIDIA-Linux-x86-100.14.23-pkg0/usr/src/nv/nv_compiler.h
CC [M] /usr/src/NVIDIA-Linux-x86-100.14.23-pkg0/usr/src/nv/nv.o
In file included from include/linux/list.h:9,
from include/linux/wait.h:23,
from include/asm/semaphore.h:42,
from include/linux/sched.h:60,
from include/linux/utsname.h:36,
from /usr/src/NVIDIA-Linux-x86-100.14.23-pkg0/usr/src/nv/nv-linux.h:20,
from /usr/src/NVIDIA-Linux-x86-100.14.23-pkg0/usr/src/nv/nv.c:15:
include/linux/prefetch.h: In function 'prefetch_range':
include/linux/prefetch.h:62: warning: pointer of type 'void *' used in arithmetic
CC [M] /usr/src/NVIDIA-Linux-x86-100.14.23-pkg0/usr/src/nv/nv-vm.o
In file included from include/linux/list.h:9,
from include/linux/wait.h:23,
from include/asm/semaphore.h:42,
from include/linux/sched.h:60,
from include/linux/utsname.h:36,
from /usr/src/NVIDIA-Linux-x86-100.14.23-pkg0/usr/src/nv/nv-linux.h:20,
from /usr/src/NVIDIA-Linux-x86-100.14.23-pkg0/usr/src/nv/nv-vm.c:15:
include/linux/prefetch.h: In function 'prefetch_range':
include/linux/prefetch.h:62: warning: pointer of type 'void *' used in arithmetic
CC [M] /usr/src/NVIDIA-Linux-x86-100.14.23-pkg0/usr/src/nv/os-agp.o
In file included from include/linux/list.h:9,
from include/linux/wait.h:23,
from include/asm/semaphore.h:42,
from include/linux/sched.h:60,
from include/linux/utsname.h:36,
from /usr/src/NVIDIA-Linux-x86-100.14.23-pkg0/usr/src/nv/nv-linux.h:20,
from /usr/src/NVIDIA-Linux-x86-100.14.23-pkg0/usr/src/nv/os-agp.c:25:
include/linux/prefetch.h: In function 'prefetch_range':
include/linux/prefetch.h:62: warning: pointer of type 'void *' used in arithmetic
CC [M] /usr/src/NVIDIA-Linux-x86-100.14.23-pkg0/usr/src/nv/os-interface.o
In file included from include/linux/list.h:9,
from include/linux/wait.h:23,
from include/asm/semaphore.h:42,
from include/linux/sched.h:60,
from include/linux/utsname.h:36,
from /usr/src/NVIDIA-Linux-x86-100.14.23-pkg0/usr/src/nv/nv-linux.h:20,
from /usr/src/NVIDIA-Linux-x86-100.14.23-pkg0/usr/src/nv/os-interface.c:27:
include/linux/prefetch.h: In function 'prefetch_range':
include/linux/prefetch.h:62: warning: pointer of type 'void *' used in arithmetic
CC [M] /usr/src/NVIDIA-Linux-x86-100.14.23-pkg0/usr/src/nv/os-registry.o
In file included from include/linux/list.h:9,
from include/linux/wait.h:23,
from include/asm/semaphore.h:42,
from include/linux/sched.h:60,
from include/linux/utsname.h:36,
from /usr/src/NVIDIA-Linux-x86-100.14.23-pkg0/usr/src/nv/nv-linux.h:20,
from /usr/src/NVIDIA-Linux-x86-100.14.23-pkg0/usr/src/nv/os-registry.c:15:
include/linux/prefetch.h: In function 'prefetch_range':
include/linux/prefetch.h:62: warning: pointer of type 'void *' used in arithmetic
CC [M] /usr/src/NVIDIA-Linux-x86-100.14.23-pkg0/usr/src/nv/nv-i2c.o
In file included from include/linux/list.h:9,
from include/linux/wait.h:23,
from include/asm/semaphore.h:42,
from include/linux/sched.h:60,
from include/linux/utsname.h:36,
from /usr/src/NVIDIA-Linux-x86-100.14.23-pkg0/usr/src/nv/nv-linux.h:20,
from /usr/src/NVIDIA-Linux-x86-100.14.23-pkg0/usr/src/nv/nv-i2c.c:9:
include/linux/prefetch.h: In function 'prefetch_range':
include/linux/prefetch.h:62: warning: pointer of type 'void *' used in arithmetic
CC [M] /usr/src/NVIDIA-Linux-x86-100.14.23-pkg0/usr/src/nv/nvacpi.o
In file included from include/linux/list.h:9,
from include/linux/wait.h:23,
from include/asm/semaphore.h:42,
from include/linux/sched.h:60,
from include/linux/utsname.h:36,
from /usr/src/NVIDIA-Linux-x86-100.14.23-pkg0/usr/src/nv/nv-linux.h:20,
from /usr/src/NVIDIA-Linux-x86-100.14.23-pkg0/usr/src/nv/nvacpi.c:16:
include/linux/prefetch.h: In function 'prefetch_range':
include/linux/prefetch.h:62: warning: pointer of type 'void *' used in arithmetic
LD [M] /usr/src/NVIDIA-Linux-x86-100.14.23-pkg0/usr/src/nv/nvidia.o
Building modules, stage 2.
MODPOST 1 modules
/bin/sh: scripts/mod/modpost: No such file or directory
make[3]: *** [__modpost] Error 127
make[2]: *** [modules] Error 2
NVIDIA: left KBUILD.
nvidia.ko failed to build!
make[1]: *** [module] Error 1
make: *** [module] Error 2
++ Mark Compile stop : "NVIDIA" "100.14.23" "Sat Nov 3 16:02:02 UTC 2007"
thanks

terfy 11-03-2007 04:38 PM

I solved the problem by compiling a new linux kernel and tried again...

but now I get another error..

Quote:

1. NVIDIA: calling KBUILD...
2. make CC=gcc KBUILD_VERBOSE=0 -C /usr/src/linux SUBDIRS=/usr/src/NVIDIA-Linux-x86-100.14.23-pkg0/usr/src/nv modules
3. Building modules, stage 2.
4. MODPOST 1 modules
5. NVIDIA: left KBUILD.
6. PATH="/var/lib/lunar/compilers:/var/lib/lunar/compilers/:/sbin:/bin:/usr/sbin:/usr/bin:/usr/X11/bin:/bin:/sbin" modprobe nvidia && \
7. echo "nvidia.ko installed successfully.";
8. FATAL: Module nvidia not found.
9. make[1]: *** [package-install] Error 1
10. make: *** [install] Error 2
11. ++ Mark Compile stop : "NVIDIA" "100.14.23" "Sat Nov 3 21:19:36 UTC 2007"

hope anyone can tell me what to do now. ;)

javaSwing 11-04-2007 01:08 AM

Download and install the program at the following link:

http://albertomilone.com/nvidia_scripts1.html

"sudo apt-get install envy" w/o quotes in the terminal might also work too.

Anyway, after installing the software, pick the option to uninstall your nVidia driver. Then pick the option to install it. The most up-to-date drivers for your card should be automatically identified, downloaded, compiled, and installed. Then reboot and the drivers will hopefully work.

terfy 11-05-2007 03:34 AM

I solved the problem myself..

I forgot to reboot linux into the new compiled kernel..

It worked after rebooting into the new one. :)


All times are GMT -5. The time now is 08:10 AM.