LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (http://www.linuxquestions.org/questions/linux-software-2/)
-   -   Building nvidia-kernel-source error log (http://www.linuxquestions.org/questions/linux-software-2/building-nvidia-kernel-source-error-log-449410/)

jonasan 05-28-2006 04:55 PM

Building nvidia-kernel-source error log
 
hi all

Linux debian 2.6.15-1-k7 #2 Mon Mar 6 15:42:39 UTC 2006 i686 GNU/Linux

i am following the guide to install XGL http://sonique54.free.fr/xgl/xgl.htm and I need to install the lastest nvidia driver. To do this i am using the guide http://home.comcast.net/~andrex/Debi...tallation.html i really need an automated install as i am still quite noob/lazy ;-)

m-a auto-install nvidia

fails to compile and returns the following error

/usr/bin/make -f debian/rules clean
make[1]: Entering directory `/usr/src/modules/nvidia-kernel'
dh_testroot
rm -f build-stamp configure-stamp
/usr/bin/make clean SYSRC=/lib/modules/2.6.15-1-k7/build -C /usr/src/modules/nvidia-kernel/nv -f Makefile
make[2]: Entering directory `/usr/src/modules/nvidia-kernel/nv'
rm -f -f nv.o os-agp.o os-interface.o os-registry.o nv.o os-agp.o os-interface.o os-registry.o nvidia.mod.o
rm -f -f build-in.o nv-linux.o *.d .*.{cmd,flags}
rm -f -f nvidia.{o,ko,mod.{o,c}} nv_compiler.h *~
make[2]: Leaving directory `/usr/src/modules/nvidia-kernel/nv'
rm -f /usr/src/modules/nvidia-kernel/nv/Makefile || true;
rm /usr/src/modules/nvidia-kernel/nv/gcc-check
rm /usr/src/modules/nvidia-kernel/nv/cc-sanity-check
dh_clean
rm /usr/src/modules/nvidia-kernel/debian/control
rm /usr/src/modules/nvidia-kernel/debian/dirs
rm /usr/src/modules/nvidia-kernel/debian/override
make[1]: Leaving directory `/usr/src/modules/nvidia-kernel'
/usr/bin/make -f debian/rules binary_modules
make[1]: Entering directory `/usr/src/modules/nvidia-kernel'
if [ -f /usr/src/modules/nvidia-kernel/debian/control.template ]; then \
cp /usr/src/modules/nvidia-kernel/debian/control.template /usr/src/modules/nvidia-kernel/debian/control; \
fi
dh_testdir
dh_testroot
# select which makefile to use.
echo 0
0
rm -f /usr/src/modules/nvidia-kernel/nv/Makefile || true
if [ 6 = 6 ]; then \
cd /usr/src/modules/nvidia-kernel/nv ; \
ln -s Makefile.kbuild Makefile ; \
cd .. ; \
else \
cd /usr/src/modules/nvidia-kernel/nv ; \
ln -s Makefile.nvidia Makefile ; \
cd .. ; \
fi
touch configure-stamp
dh_testdir
dh_testroot
PATCHLEVEL = 6
Kernel compiler version : 4.0.2
Detected compiler version : 4.0.3

You appear to be compiling the NVIDIA kernel module with
a compiler different from the one that was used to compile
the running kernel. This may be perfectly alright and you
may be building this module for another kernel in which case
you may ignore this message.

The compiler that will be used to compile this module has been
determined from:
1) the CC environment variable
2) that specified in
/lib/modules/2.6.15-1-k7/build/include/linux/compile.h
3) gcc
Using compiler gcc-4.0 version 4.0.3
touch /usr/src/modules/nvidia-kernel/nv/gcc-check
touch /usr/src/modules/nvidia-kernel/nv/cc-sanity-check
## Main Make ##
IGNORE_CC_MISMATCH=1 CC="gcc-4.0" /usr/bin/make -C /usr/src/modules/nvidia-kernel/nv -f Makefile SYSSRC=/lib/modules/2.6.15-1-k7/build KBUILD_PARAMS="-C /lib/modules/2.6.15-1-k7/build SUBDIRS=/usr/src/modules/nvidia-kernel/nv" module;
make[2]: Entering directory `/usr/src/modules/nvidia-kernel/nv'
make[3]: Entering directory `/usr/src/linux-headers-2.6.15-1-k7'
echo \#define NV_COMPILER \"`gcc-4.0 -v 2>&1 | tail -n 1`\" > /usr/src/modules/nvidia-kernel/nv/nv_compiler.h
CC [M] /usr/src/modules/nvidia-kernel/nv/nv.o
In file included from include/linux/list.h:7,
from include/linux/wait.h:23,
from include/asm/semaphore.h:41,
from include/linux/sched.h:20,
from include/linux/module.h:10,
from /usr/src/modules/nvidia-kernel/nv/nv-linux.h:52,
from /usr/src/modules/nvidia-kernel/nv/nv.c:14:
include/linux/prefetch.h: In function ‘prefetch_range’:
include/linux/prefetch.h:62: warning: pointer of type ‘void *’ used in arithmetic
In file included from include/linux/dmapool.h:14,
from include/linux/pci.h:454,
from /usr/src/modules/nvidia-kernel/nv/nv-linux.h:74,
from /usr/src/modules/nvidia-kernel/nv/nv.c:14:
include/asm/io.h: In function ‘check_signature’:
include/asm/io.h:253: warning: wrong type argument to increment
In file included from /usr/src/modules/nvidia-kernel/nv/nv.c:14:
/usr/src/modules/nvidia-kernel/nv/nv-linux.h:137:5: warning: "NV_ENABLE_MEM_TRACKING" is not defined
/usr/src/modules/nvidia-kernel/nv/nv-linux.h:162:5: warning: "NV_ENABLE_MEM_TRACKING" is not defined
/usr/src/modules/nvidia-kernel/nv/nv.c:162:5: warning: "NV_ENABLE_MEM_TRACKING" is not defined
/usr/src/modules/nvidia-kernel/nv/nv.c: In function ‘nvos_probe_devices’:
/usr/src/modules/nvidia-kernel/nv/nv.c:241: warning: implicit declaration of function ‘pci_find_class’
/usr/src/modules/nvidia-kernel/nv/nv.c:241: warning: assignment makes pointer from integer without a cast
/usr/src/modules/nvidia-kernel/nv/nv.c:296: warning: assignment makes pointer from integer without a cast
/usr/src/modules/nvidia-kernel/nv/nv.c: In function ‘nvos_malloc_pages’:
/usr/src/modules/nvidia-kernel/nv/nv.c:385: error: invalid lvalue in assignment
/usr/src/modules/nvidia-kernel/nv/nv.c: In function ‘nvos_create_alloc’:
/usr/src/modules/nvidia-kernel/nv/nv.c:513: error: invalid lvalue in assignment
/usr/src/modules/nvidia-kernel/nv/nv.c:523: error: invalid lvalue in assignment
/usr/src/modules/nvidia-kernel/nv/nv.c: In function ‘nvos_find_agp_by_class’:
/usr/src/modules/nvidia-kernel/nv/nv.c:613: warning: assignment makes pointer from integer without a cast
/usr/src/modules/nvidia-kernel/nv/nv.c:624: warning: assignment makes pointer from integer without a cast
/usr/src/modules/nvidia-kernel/nv/nv.c: In function ‘nvidia_init_module’:
/usr/src/modules/nvidia-kernel/nv/nv.c:921: warning: implicit declaration of function ‘pm_register’
/usr/src/modules/nvidia-kernel/nv/nv.c:921: warning: assignment makes pointer from integer without a cast
/usr/src/modules/nvidia-kernel/nv/nv.c: In function ‘nvidia_exit_module’:
/usr/src/modules/nvidia-kernel/nv/nv.c:977: warning: implicit declaration of function ‘pm_unregister’
/usr/src/modules/nvidia-kernel/nv/nv.c:1023:5: warning: "NV_ENABLE_MEM_TRACKING" is not defined
/usr/src/modules/nvidia-kernel/nv/nv.c: At top level:
/usr/src/modules/nvidia-kernel/nv/nv.c:1185: warning: initialization from incompatible pointer type
/usr/src/modules/nvidia-kernel/nv/nv.c: In function ‘nv_alloc_file_private’:
/usr/src/modules/nvidia-kernel/nv/nv.c:1193: error: invalid lvalue in assignment
/usr/src/modules/nvidia-kernel/nv/nv.c:1204: error: invalid lvalue in assignment
/usr/src/modules/nvidia-kernel/nv/nv.c: In function ‘nv_kern_open’:
/usr/src/modules/nvidia-kernel/nv/nv.c:1265: error: invalid lvalue in assignment
/usr/src/modules/nvidia-kernel/nv/nv.c: In function ‘nv_kern_mmap’:
/usr/src/modules/nvidia-kernel/nv/nv.c:1442: warning: implicit declaration of function ‘remap_page_range’
/usr/src/modules/nvidia-kernel/nv/nv.c: In function ‘nv_kern_ctl_open’:
/usr/src/modules/nvidia-kernel/nv/nv.c:1914: error: invalid lvalue in assignment
/usr/src/modules/nvidia-kernel/nv/nv.c: In function ‘_get_phys_address’:
/usr/src/modules/nvidia-kernel/nv/nv.c:2319: warning: passing argument 1 of ‘pmd_offset’ from incompatible pointer type
/usr/src/modules/nvidia-kernel/nv/nv.c: In function ‘nv_alloc_pages’:
/usr/src/modules/nvidia-kernel/nv/nv.c:2498: error: invalid lvalue in assignment
/usr/src/modules/nvidia-kernel/nv/nv.c: In function ‘nv_agp_init’:
/usr/src/modules/nvidia-kernel/nv/nv.c:2870: warning: implicit declaration of function ‘inter_module_get’
/usr/src/modules/nvidia-kernel/nv/nv.c:2871: warning: ‘inter_module_put’ is deprecated (declared at include/linux/module.h:575)
make[4]: *** [/usr/src/modules/nvidia-kernel/nv/nv.o] Error 1
make[3]: *** [_module_/usr/src/modules/nvidia-kernel/nv] Error 2
make[3]: Leaving directory `/usr/src/linux-headers-2.6.15-1-k7'
nvidia.ko failed to build!
make[2]: *** [module] Error 1
make[2]: Leaving directory `/usr/src/modules/nvidia-kernel/nv'
make[1]: *** [build-stamp] Error 2
make[1]: Leaving directory `/usr/src/modules/nvidia-kernel'
make: *** [kdist_image] Error 2

any help please???

bigrigdriver 05-28-2006 09:52 PM

Did you read the troubleshooting tips here:http://home.comcast.net/~andrex/Debi...eshooting.html. The first paragraph says 'don't run make clean for kernel versions 2.6.5 and later', or words to that effect. It goes on the say why (nvidia module won't build), and what to do about it.


All times are GMT -5. The time now is 05:14 PM.