nV News Forums

 
 

nV News Forums (http://www.nvnews.net/vbulletin/index.php)
-   NVIDIA Legacy Graphics Cards (http://www.nvnews.net/vbulletin/forumdisplay.php?f=37)
-   -   OpenSuse 11.2 - unable to compile NVIDIA driver (http://www.nvnews.net/vbulletin/showthread.php?t=148960)

mhunt 03-16-10 01:22 AM

OpenSuse 11.2 - unable to compile NVIDIA driver
 
Hello

Updated to Opensuse 11.2, last part was the installation of the legacy NVIDIA driver for a Quadrop 2 Pro.


Hardware/Software:
NVIDIA Quadrop2 Pro

VERSION: Linux 2.6.31.12-0.1-default i686
KDE: 4.3.5 (KDE 4.3.5) "release 0"

Driver: NVIDIA-Linux-x86-1.0-7184-pkg1.run

******************************
I followed the steps I used before for 10.2:


install (using Yast):

gcc
make
kernel-source
kernel syms
kernel-desktop-devel

Searched for update with the updater tablet: none found

Prepared the source files: (as root)

cd /usr/src/linux
make cloneconfig
make prepare


No error reported.

so I tried to compile the driver:

init 3

sh NVIDIA-Linux-x86-1.0-7184-pkg1.run -q


At the end of the compilations it reports that there was an error: so here's the complete LOG:

************************************************** ***

nvidia-installer log file '/var/log/nvidia-installer.log'
creation time: Sat Mar 13 18:36:42 2010

option status:
license pre-accepted : false
update : false
force update : false
expert : false
uninstall : false
driver info : false
precompiled interfaces : true
no ncurses color : false
query latest version : false
OpenGL header files : true
no questions : true
silent : false
no recursion : false
no backup : false
kernel module only : false
sanity : false
add this kernel : false
no runlevel check : false
no network : false
no ABI note : false
no RPMs : false
no kernel module : false
force SELinux : default
no X server check : false
force tls : (not specified)
X install prefix : (not specified)
X library install path : (not specified)
X module install path : (not specified)
OpenGL install prefix : (not specified)
OpenGL install libdir : (not specified)
utility install prefix : (not specified)
utility install libdir : (not specified)
doc install prefix : (not specified)
kernel name : (not specified)
kernel include path : (not specified)
kernel source path : (not specified)
kernel output path : (not specified)
kernel install path : (not specified)
proc mount point : /proc
ui : (not specified)
tmpdir : /tmp
ftp mirror : ftp://download.nvidia.com
RPM file list : (not specified)

Using: nvidia-installer ncurses user interface
-> License accepted.
-> No precompiled kernel interface was found to match your kernel; would you li
ke the installer to attempt to download a kernel interface for your kernel f
rom the NVIDIA ftp site (ftp://download.nvidia.com)? (Answer: Yes)
-> No matching precompiled kernel interface was found on the NVIDIA ftp site;
this means that the installer will need to compile a kernel interface for
your kernel.
-> Performing CC sanity check with CC="cc".
-> Performing CC version check with CC="cc".
-> Kernel source path: '/lib/modules/2.6.31.12-0.1-default/source'
-> Kernel output path: '/lib/modules/2.6.31.12-0.1-default/build'
-> Performing rivafb check.
-> Performing nvidiafb check.
-> Cleaning kernel module build directory.
executing: 'cd ./usr/src/nv; make clean'...
rm -f -f nv.o nv-vm.o os-agp.o os-interface.o os-registry.o nv.o nv-vm.o os-
agp.o os-interface.o os-registry.o nvidia.mod.o
rm -f -f build-in.o nv-linux.o *.d .*.{cmd,flags}
rm -f -f nvidia.{o,ko,mod.{o,c}} nv_compiler.h *~
rm -f -rf .tmp_versions
-> Building kernel module:
executing: 'cd ./usr/src/nv; make module SYSSRC=/lib/modules/2.6.31.12-0.1-d
efault/source SYSOUT=/lib/modules/2.6.31.12-0.1-default/build'...

NVIDIA: calling KBUILD...
make CC=cc KBUILD_OUTPUT=/lib/modules/2.6.31.12-0.1-default/build KBUILD_VER
BOSE=1 -C /lib/modules/2.6.31.12-0.1-default/source SUBDIRS=/tmp/selfgz3558/
NVIDIA-Linux-x86-1.0-7184-pkg1/usr/src/nv modules
make -C /lib/modules/2.6.31.12-0.1-default/build \
KBUILD_SRC=/usr/src/linux-2.6.31.12-0.1 \
KBUILD_EXTMOD="/tmp/selfgz3558/NVIDIA-Linux-x86-1.0-7184-pkg1/usr/src/nv" -
f /usr/src/linux-2.6.31.12-0.1/Makefile \
modules
test -e include/linux/autoconf.h -a -e include/config/auto.conf || ( \
echo; \
echo " ERROR: Kernel configuration is invalid."; \
echo " include/linux/autoconf.h or include/config/auto.conf are mis
sing."; \
echo " Run 'make oldconfig && make prepare' on kernel src to fix it
."; \
echo; \
/bin/false)
mkdir -p /tmp/selfgz3558/NVIDIA-Linux-x86-1.0-7184-pkg1/usr/src/nv/.tmp_vers
ions ; rm -f /tmp/selfgz3558/NVIDIA-Linux-x86-1.0-7184-pkg1/usr/src/nv/.tmp_
versions/*
make -f /usr/src/linux-2.6.31.12-0.1/scripts/Makefile.build obj=/tmp/selfgz3
558/NVIDIA-Linux-x86-1.0-7184-pkg1/usr/src/nv
(cat /dev/null; ) > /tmp/selfgz3558/NVIDIA-Linux-x86-1.0-7184-pkg1/usr/src/n
v/modules.order
make -f /usr/src/linux-2.6.31.12-0.1/scripts/Makefile.modpost
scripts/mod/modpost -m -a -i /usr/src/linux-2.6.31.12-0.1-obj/i386/default
/Module.symvers -I /tmp/selfgz3558/NVIDIA-Linux-x86-1.0-7184-pkg1/usr/src/nv
/Module.symvers -o /tmp/selfgz3558/NVIDIA-Linux-x86-1.0-7184-pkg1/usr/src/n
v/Module.symvers -S -K /usr/src/linux-2.6.31.12-0.1-obj/i386/default/Module.
markers -M /tmp/selfgz3558/NVIDIA-Linux-x86-1.0-7184-pkg1/usr/src/nv/Module.
markers -w -s
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.

************************************************** ***


The driver that I'm trying to install is the same I used with 10.2.


Any sugestions ?


Thank you

krokodil 03-22-10 02:58 AM

Re: OpenSuse 11.2 - unable to compile NVIDIA driver
 
test -e include/linux/autoconf.h -a -e include/config/auto.conf || ( \ echo; \
echo " ERROR: Kernel configuration is invalid."; \
echo " include/linux/autoconf.h or include/config/auto.conf are missing."; \
echo " Run 'make oldconfig && make prepare' on kernel src to fix it."; \

Have you done that? Don't know if it helps because I'm still at 11.0 with my legacy machine :)

mhunt 03-24-10 11:31 AM

Re: OpenSuse 11.2 - unable to compile NVIDIA driver
 
Quote:

Originally Posted by krokodil (Post 2214672)
test -e include/linux/autoconf.h -a -e include/config/auto.conf || ( \ echo; \
echo " ERROR: Kernel configuration is invalid."; \
echo " include/linux/autoconf.h or include/config/auto.conf are missing."; \
echo " Run 'make oldconfig && make prepare' on kernel src to fix it."; \

Have you done that? Don't know if it helps because I'm still at 11.0 with my legacy machine :)




Yes I did:

cd /usr/src/linux
make cloneconfig
make prepare

I also did tried with 'make oldconfig'. Those commands did not returned any error. If I tried to compile the driver without running those 3 commands then the error returned is that the source files are not compiled.

That's why I'm not sure what's wrong or what's missing.

krokodil 03-26-10 05:43 AM

Re: OpenSuse 11.2 - unable to compile NVIDIA driver
 
...from my log:
make -f /usr/src/linux-2.6.25.20-0.7/scripts/Makefile.build obj=/tmp/selfgz3
368/NVIDIA-Linux-x86-173.14.18-pkg1/usr/src/nv
cc -Wp,-MD,/tmp/selfgz3368/NVIDIA-Linux-x86-173.14.18-pkg1/usr/src/nv/.nv.
o.d -nostdinc -isystem /usr/lib/gcc/i586-suse-linux/4.3/include -D__KERNEL_
_ -Iinclude -Iinclude2 -I/usr/src/linux-2.6.25.20-0.7/include -include inclu
de/linux/autoconf.h -I/tmp/selfgz3368/NVIDIA-Linux-x86-173.14.18-pkg1/usr/s
rc/nv -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing

...from yours:
make -f /usr/src/linux-2.6.31.12-0.1/scripts/Makefile.build obj=/tmp/selfgz3
558/NVIDIA-Linux-x86-1.0-7184-pkg1/usr/src/nv
(cat /dev/null; ) > /tmp/selfgz3558/NVIDIA-Linux-x86-1.0-7184-pkg1/usr/src/n
v/modules.order
make -f /usr/src/linux-2.6.31.12-0.1/scripts/Makefile.modpost
scripts/mod/modpost -m -a -i /usr/src/linux-2.6.31.12-0.1-obj/i386/default
/Module.symvers -I /tmp/selfgz3558/NVIDIA-Linux-x86-1.0-7184-pkg1/usr/src/nv
/Module.symvers -o /tmp/selfgz3558/NVIDIA-Linux-x86-1.0-7184-pkg1/usr/src/n
v/Module.symvers -S -K /usr/src/linux-2.6.31.12-0.1-obj/i386/default/Module.
markers -M /tmp/selfgz3558/NVIDIA-Linux-x86-1.0-7184-pkg1/usr/src/nv/Module.
[ ... ]
There is that cat zeroing out that file modules.order and some module postprocessing done that does not happen here. Maybe it has to do with that very old driver you are trying to install, maybe it is 11.2 specific. I am sorry but I can not reproduce it here.


All times are GMT -5. The time now is 11:01 PM.

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