LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 05-28-2006, 05:55 PM   #1
jonasan
Member
 
Registered: Jan 2006
Distribution: Debian
Posts: 31

Rep: Reputation: 15
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???
 
Old 05-28-2006, 10:52 PM   #2
bigrigdriver
LQ Addict
 
Registered: Jul 2002
Location: East Centra Illinois, USA
Distribution: Debian Squeeze
Posts: 5,795

Rep: Reputation: 312Reputation: 312Reputation: 312Reputation: 312
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
error building nvidia kernel module beeblequix Debian 1 10-07-2005 06:21 PM
Error when building source codes... darkarcon2015 Linux - Software 4 12-22-2004 12:39 AM
Building kernel module from multiple source file in 2.6 kernel yogeshwar_s Programming 1 12-20-2004 10:31 AM
Error installing nVidia-driver-missing kernel-source? anemic Debian 6 12-17-2004 12:52 PM
help for building a kernel from source sh4d0w331 Slackware 5 09-28-2004 02:27 PM


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

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration