When you upgrade your linux kernel to 3.10.x, and try to install the latest Nvidia driver, say 319.17 for Linux-x86_64, it will fail in building the kernel driver with error message in the built log like this:

/tmp/selfgz8190/NVIDIA-Linux-x86_64-304.88/kernel/nv-i2c.c: In function ‘nv_i2c_del_adapter’:
/tmp/selfgz8190/NVIDIA-Linux-x86_64-304.88/kernel/nv-i2c.c:327:14: error: void value not ignored as it ought to be
make[4]: *** [/tmp/selfgz8190/NVIDIA-Linux-x86_64-304.88/kernel/nv-i2c.o] Error 1
make[3]: *** [_module_/tmp/selfgz8190/NVIDIA-Linux-x86_64-304.88/kernel] Error 2
make[2]: *** [sub-make] Error 2
nvidia.ko failed to build!
make[1]: *** [module] Error 1
make: *** [module] Error 2
-> Error.
ERROR: Unable to build the NVIDIA kernel module.
ERROR: Installation has failed. Please see the file ‘/var/log/nvidia-installer.log’ for details. You may find suggestions on fixing installation problems in the README available on the Linux driver download page at www.nvidia.com.

This is because the 3.10 kernels have some .h files changed and created some incompatibility. The work around is to replace two files in the /tmp/selfgz????/NVIDIA-Linux-x86_64-304.88/kernel with the following:

1. nv-procfs.c
2. nv-i2c.c

after started the installation process and before grant the installation to build kernel driver module.

These two files were created from a patch found on the internet but the patch was not easy to be applied to nvidia driver installation packages with different time stamps. Better to just copy these two files over.

This has been tested working on Fedora 19 with kernel 3.10.3-300.fc19.x86_64.

By leizhou, 2. August 2013, 10:04 hr

You may add your comment at any time with the help of the form at the page bottom.

Currently 2 Comments for this Article

  1. Comment by Can Kavaklıoğlu

    works with 3.10-3-amd64 and NVIDIA-Linux-x86_64-319.37 thanks!

  2. Comment by yepyepyep

    Thanks, this helped me out!

Add your own comment

You need to log in to post your own comments.

* Copy This Password *

* Type Or Paste Password Here *

Follow comments according to this article through a RSS 2.0-Feed


June 2018
« May