Go Back   nV News Forums > Linux Support Forums > NVIDIA Linux

Newegg Daily Deals

Thread Tools
Old 02-10-13, 01:13 AM   #1
Registered User
Join Date: Nov 2011
Posts: 4
Default kernel module doesn't compile with kernel 3.7.6 (Solved)

When compiling nvidia kernel module with latest linux kernel 3.7.6, I got this error message:
If you are using a Linux 2.4 kernel, please make sure
you either have configured kernel sources matching your
kernel or the correct set of kernel headers installed
on your system.

If you are using a Linux 2.6 kernel, please make sure
you have configured kernel sources matching your kernel
installed on your system. If you specified a separate
output directory using either the "KBUILD_OUTPUT" or
the "O" KBUILD parameter, make sure to specify this
directory with the SYSOUT environment variable or with
the equivalent nvidia-installer command line option.
Fortunately, I found a solution on the WWW (http://forums.gentoo.org/viewtopic-t-950330.html), pointing out a missing symlink which makes conftest.sh (subroutine select_makefile) run into a branch designed for V2.6 kernels (http://forum.chip.de/linux/kernel-3-7-6-nvidia-treiber-1710085.html):
if [ -n "$PATCHLEVEL" -a $PATCHLEVEL -ge 6 \
                        -a -n "$SUBLEVEL" -a $SUBLEVEL -le 5 ]; then
While kernel 3.7.5 still passed this check, 3.7.6 triggers an error
IMO, a check for kernel V2 vs. V3 should be added here ...

 ln -s /usr/src/linux/include/generated/uapi/linux/version.h /usr/src/linux/include/linux/version.h
fixes the issue (or patching conftest.sh).
rkbwde is offline   Reply With Quote

Thread Tools

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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Unable to compile kernel module on 3.7 kernel giaur NVIDIA Linux 3 01-03-13 11:11 AM
[BUG] nvidia crashes kernel with 'Xid 13' and attempted to yield the CPU while atomic rockob NVIDIA Linux 36 09-26-12 07:48 AM
upgrade to xorg server 1.13 damaged Geforce 7300 GT KDE NVIDIA Linux 2 09-07-12 08:04 AM
Fatal upgrade: from bad (8800 GTS) to worse 9GTX 560 Ti) ssnyder NVIDIA Linux 1 07-01-12 08:14 PM
xorg locks-up with newest nvidia drivers w/ vdpau. theroot NVIDIA Linux 1 06-24-12 11:04 AM

All times are GMT -5. The time now is 09:37 PM.

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