nV News Forums

 
 

nV News Forums (http://www.nvnews.net/vbulletin/index.php)
-   NVIDIA Linux (http://www.nvnews.net/vbulletin/forumdisplay.php?f=14)
-   -   gcc 4.1 problem building module (http://www.nvnews.net/vbulletin/showthread.php?t=61874)

_tf_ 12-19-05 06:26 PM

gcc 4.1 problem building module
 
(snowman) hi

i'm using gcc 4.1 (gcc-4.1.0-0.9) from fedora rawhide
and can't build the driver module.

nvidia-installer-log tells:
Code:

-> Kernel module load error: insmod: error inserting './usr/src/nv/nvidia.ko':
  -1 Unknown symbol in module
...
nvidia: Unknown symbol remap_page_range
  nvidia: Unknown symbol pci_find_class
  nvidia: Unknown symbol remap_page_range
  nvidia: Unknown symbol pci_find_class
  nvidia: Unknown symbol remap_page_range
  nvidia: Unknown symbol pci_find_class

this is with kernel 2.6.15-rc6 and 8174 x86 driver.

maybe there is a fix for this?


thanks
lars

ghostwalker 12-20-05 01:01 AM

Re: gcc 4.1 problem building module
 
This is specific to 2.6.15-R6. Either you have to find the patch and revert or wait for a patch for the nvidia driver.

_tf_ 12-20-05 03:48 AM

Re: gcc 4.1 problem building module
 
thanks & (xmassign)

zander 12-20-05 08:51 AM

Re: gcc 4.1 problem building module
 
1 Attachment(s)
This problem is caused by additional warnings generated by gcc 4.1 for certain Linux kernel header files, it should go away if/when these kernel header files are fixed. Meanwhile, you can try the attached patch to work around this problem (the steps needed to patch the Linux/x86 driver are analogous to those below):

# sh /path/to/NVIDIA-Linux-x86_64-1.0-8174-pkg2.run --extract-only
# cd NVIDIA-Linux-x86_64-1.0-8174-pkg2
# patch -p0 < /path/to/NVIDIA_kernel-1.0-8174-1438624.diff.txt
# ./nvidia-installer -n

_tf_ 12-20-05 03:30 PM

Re: gcc 4.1 problem building module
 
(rudolf) (rudolf) (rudolf) & (xmassign)

:-)
lars


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

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