nV News Forums

 
 

nV News Forums (http://www.nvnews.net/vbulletin/index.php)
-   NVIDIA Linux (http://www.nvnews.net/vbulletin/forumdisplay.php?f=14)
-   -   NVIDIA Driver Installation (http://www.nvnews.net/vbulletin/showthread.php?t=184982)

flores.facundo 06-24-12 12:52 AM

NVIDIA Driver Installation
 
Hello!
I tried to install the Nvidia beta driver 302.07 and 302.06 on my Fedora, but both give me an error: "Unable to build the Nvidia Kernel Module".

So This is my nvidia-log:

Code:

nvidia-installer command line:
    ./nvidia-installer

Using: nvidia-installer ncurses user interface
-> Tagging shared libraries with chcon -t textrel_shlib_t.
-> License accepted.
-> Installing NVIDIA driver version 302.07.
-> Performing CC sanity check with CC="cc".
-> Performing CC version check with CC="cc".
-> Kernel source path: '/lib/modules/3.4.2-1.fc16.x86_64/source'
-> Kernel output path: '/lib/modules/3.4.2-1.fc16.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.4.2-1.fc16.x86_64/source SYSOUT=/lib/modules/3.4.2-1.fc16.x86_64/build'...
  NVIDIA: calling KBUILD...
  make -C /lib/modules/3.4.2-1.fc16.x86_64/build \
  KBUILD_SRC=/usr/src/kernels/3.4.2-1.fc16.x86_64 \
  KBUILD_EXTMOD="/tmp/selfgz19994/NVIDIA-Linux-x86_64-302.07/kernel" -f /usr/src/kernels/3.4.2-1.fc16.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/selfgz19994/NVIDIA-Linux-x86_64-302.07/kernel/.tmp_versions ; rm -f /tmp/selfgz19994/NVIDIA-Linux-x86_64-302.07/kernel/.tmp_versions/*
  make -f /usr/src/kernels/3.4.2-1.fc16.x86_64/scripts/Makefile.build obj=/tmp/selfgz19994/NVIDIA-Linux-x86_64-302.07/kernel
    cc -Wp,-MD,/tmp/selfgz19994/NVIDIA-Linux-x86_64-302.07/kernel/.nv.o.d  -nostdinc -isystem /usr/lib/gcc/x86_64-redhat-linux/4.6.3/include -I/usr/src/kernels/3.4.2-1.fc16.x86_64/arch/x86/include -Iarch/x86/include/generated -Iinclude  -I/usr/src/kernels/3.4.2-1.fc16.x86_64/include -include /usr/src/kernels/3.4.2-1.fc16.x86_64/include/linux/kconfig.h  -I/tmp/selfgz19994/NVIDIA-Linux-x86_64-302.07/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 -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/selfgz19994/NVIDIA-Linux-x86_64-302.07/kernel
  -Wall -MD -Wsign-compare -Wno-cast-qual -Wno-error -D__KERNEL__ -DMODULE -DNVRM -DNV_VERSION_STRING=\"302.07\" -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/selfgz19994/NVIDIA-Linux-x86_64-302.07/kernel/nv.o /tmp/selfgz19994/NVIDIA-Linux-x86_64-302.07/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/selfgz19994/NVIDIA-Linux-x86_64-302.07/kernel/nv-linux.h:38,
                    from /tmp/selfgz19994/NVIDIA-Linux-x86_64-302.07/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.4.2-1.fc16.x86_64/arch/x86/include/asm/uaccess.h:577:0,
                    from include/linux/poll.h:14,
                    from /tmp/selfgz19994/NVIDIA-Linux-x86_64-302.07/kernel/nv-linux.h:97,
                    from /tmp/selfgz19994/NVIDIA-Linux-x86_64-302.07/kernel/nv.c:13:
  /usr/src/kernels/3.4.2-1.fc16.x86_64/arch/x86/include/asm/uaccess_64.h: In function ‘copy_from_user’:
  /usr/src/kernels/3.4.2-1.fc16.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/selfgz19994/NVIDIA-Linux-x86_64-302.07/kernel/nv.c:13:0:
  /tmp/selfgz19994/NVIDIA-Linux-x86_64-302.07/kernel/nv-linux.h: At top level:
  /tmp/selfgz19994/NVIDIA-Linux-x86_64-302.07/kernel/nv-linux.h:114:75: fatal error: asm/system.h: No such file or directory
  compilation terminated.
  make[4]: *** [/tmp/selfgz19994/NVIDIA-Linux-x86_64-302.07/kernel/nv.o] Error 1
  make[3]: *** [_module_/tmp/selfgz19994/NVIDIA-Linux-x86_64-302.07/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.

So, how to fix it?...
I saw it: http://www.nvnews.net/vbulletin/showthread.php?t=177474, but I don't know how to change that line: ""#include <asm/system.h>""... I newbie, so I'll appreciate your help...
Thank you!

leigh123linux 06-24-12 01:26 AM

Re: NVIDIA Driver Installation
 
I have built 302.17 for F18, the packages will also work with F16

Code:

su
yum --nogpgcheck install http://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-stable.noarch.rpm http://download1.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-stable.noarch.rpm
yum install nvidia-settings nvidia-xconfig
yum --enablerepo rpmfusion-nonfree-rawhide install akmod-nvidia xorg-x11-drv-nvidia-libs.i686 -x nvidia-settings,nvidia-xconfig
mv /boot/initramfs-$(uname -r).img /boot/initramfs-$(uname -r)-nouveau.img
dracut /boot/initramfs-$(uname -r).img $(uname -r)


P.S I didn't need to patch for the 3.4 or 3.5rc kernels


http://buildsys.rpmfusion.org/logs/f...6_64/build.log

flores.facundo 06-24-12 09:37 AM

Re: NVIDIA Driver Installation
 
Hello! It works for me too!
Thank you so much!


All times are GMT -5. The time now is 01:15 AM.

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