Using the nvidia 259.49 driver and during installation it says unable to build kernel module
checked var log and got this output
nvidia-installer log file '/var/log/nvidia-installer.log'
creation time: Fri Aug 3 15:16:04 2012
installer version: 295.49
PATH: /sbin:/bin:/usr/sbin:/usr/bin
nvidia-installer command line:
./nvidia-installer
Using: nvidia-installer ncurses user interface
-> License accepted.
-> Installing NVIDIA driver version 295.49.
-> Performing CC sanity check with CC="cc".
-> Performing CC version check with CC="cc".
-> Kernel source path: '/lib/modules/3.5.0-2.fc17.x86_64/source'
-> Kernel output path: '/lib/modules/3.5.0-2.fc17.x86_64/build'
-> Performing rivafb check.
-> Performing nvidiafb check.
-> Performing Xen check.
-> Cleaning kernel module build directory.
executing: 'cd ./kernel; make clean'...
-> Building kernel module:
executing: 'cd ./kernel; make module SYSSRC=/lib/modules/3.5.0-2.fc17.x86_64/source SYSOUT=/lib/modules/3.5.0-2.fc17.x86_64/build'...
NVIDIA: calling KBUILD...
make -C /lib/modules/3.5.0-2.fc17.x86_64/build \
KBUILD_SRC=/usr/src/kernels/3.5.0-2.fc17.x86_64 \
KBUILD_EXTMOD="/tmp/selfgz1901/NVIDIA-Linux-x86_64-295.49/kernel" -f /usr/src/kernels/3.5.0-2.fc17.x86_64/Makefile \
modules
test -e include/generated/autoconf.h -a -e include/config/auto.conf || ( \
echo; \
echo " ERROR: Kernel configuration is invalid."; \
echo " include/generated/autoconf.h or include/config/auto.conf are missing.";\
echo " Run 'make oldconfig && make prepare' on kernel src to fix it."; \
echo; \
/bin/false)
mkdir -p /tmp/selfgz1901/NVIDIA-Linux-x86_64-295.49/kernel/.tmp_versions ; rm -f /tmp/selfgz1901/NVIDIA-Linux-x86_64-295.49/kernel/.tmp_versions/*
make -f /usr/src/kernels/3.5.0-2.fc17.x86_64/scripts/Makefile.build obj=/tmp/selfgz1901/NVIDIA-Linux-x86_64-295.49/kernel
cc -Wp,-MD,/tmp/selfgz1901/NVIDIA-Linux-x86_64-295.49/kernel/.nv.o.d -nostdinc -isystem /usr/lib/gcc/x86_64-redhat-linux/4.7.0/include -I/usr/src/kernels/3.5.0-2.fc17.x86_64/arch/x86/include -Iarch/x86/include/generated -Iinclude -I/usr/src/kernels/3.5.0-2.fc17.x86_64/include -include /usr/src/kernels/3.5.0-2.fc17.x86_64/include/linux/kconfig.h -I/tmp/selfgz1901/NVIDIA-Linux-x86_64-295.49/kernel -D__KERNEL__ -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -Werror-implicit-function-declaration -Wno-format-security -fno-delete-null-pointer-checks -O2 -m64 -mtune=generic -mno-red-zone -mcmodel=kernel -funit-at-a-time -maccumulate-outgoing-args -fstack-protector -DCONFIG_AS_CFI=1 -DCONFIG_AS_CFI_SIGNAL_FRAME=1 -DCONFIG_AS_CFI_SECTIONS=1 -DCONFIG_AS_FXSAVEQ=1 -DCONFIG_AS_AVX=1 -pipe -Wno-sign-compare -fno-asynchronous-unwind-tables -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -mno-avx -Wframe-larger-than=2048 -Wno-unused-but-set-variable -fno-omit-frame-pointer -fno-optimize-sibling-calls -g -pg -Wdeclaration-after-statement -Wno-pointer-sign -fno-strict-overflow -fconserve-stack -DCC_HAVE_ASM_GOTO -I/tmp/selfgz1901/NVIDIA-Linux-x86_64-295
.49/kernel -Wall -MD -Wsign-compare -Wno-cast-qual -Wno-error -D__KERNEL__ -DMODULE -DNVRM -DNV_VERSION_STRING=\"295.49\" -Wno-unused-function -Wuninitialized -mno-red-zone -mcmodel=kernel -UDEBUG -U_DEBUG -DNDEBUG -DMODULE -D"KBUILD_STR(s)=#s" -D"KBUILD_BASENAME=KBUILD_STR(nv)" -D"KBUILD_MODNAME=KBUILD_STR(nvidia)" -c -o /tmp/selfgz1901/NVIDIA-Linux-x86_64-295.49/kernel/nv.o /tmp/selfgz1901/NVIDIA-Linux-x86_64-295.49/kernel/nv.c
In file included from include/linux/kernel.h:19:0,
from include/linux/sched.h:55,
from include/linux/utsname.h:35,
from /tmp/selfgz1901/NVIDIA-Linux-x86_64-295.49/kernel/nv-linux.h:38,
from /tmp/selfgz1901/NVIDIA-Linux-x86_64-295.49/kernel/nv.c:13:
include/linux/bitops.h: In function ‘hweight_long’:
include/linux/bitops.h:66:41: warning: signed and unsigned type in conditional expression [-Wsign-compare]
In file included from /usr/src/kernels/3.5.0-2.fc17.x86_64/arch/x86/include/asm/uaccess.h:586:0,
from include/linux/poll.h:14,
from /tmp/selfgz1901/NVIDIA-Linux-x86_64-295.49/kernel/nv-linux.h:97,
from /tmp/selfgz1901/NVIDIA-Linux-x86_64-295.49/kernel/nv.c:13:
/usr/src/kernels/3.5.0-2.fc17.x86_64/arch/x86/include/asm/uaccess_64.h: In function ‘copy_from_user’:
/usr/src/kernels/3.5.0-2.fc17.x86_64/arch/x86/include/asm/uaccess_64.h:53:6: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
In file included from /tmp/selfgz1901/NVIDIA-Linux-x86_64-295.49/kernel/nv.c:13:0:
/tmp/selfgz1901/NVIDIA-Linux-x86_64-295.49/kernel/nv-linux.h: At top level:
/tmp/selfgz1901/NVIDIA-Linux-x86_64-295.49/kernel/nv-linux.h:114:75: fatal error: asm/system.h: No such file or directory
compilation terminated.
make[4]: *** [/tmp/selfgz1901/NVIDIA-Linux-x86_64-295.49/kernel/nv.o] Error 1
make[3]: *** [_module_/tmp/selfgz1901/NVIDIA-Linux-x86_64-295.49/kernel] Error 2
make[2]: *** [sub-make] Error 2
NVIDIA: left KBUILD.
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.