Mailinglist Archive: opensuse-factory (761 mails)

< Previous Next >
Re: [opensuse-factory] Re: proprietary NVIDIA-Linux-x86_64-295.40.run patch
On 04/18/2012 05:25 PM, Patrick Shanahan wrote:
* Larry Finger<Larry.Finger@xxxxxxxxxxxx> [04-18-12 18:13]:
On 04/18/2012 04:54 PM, Patrick Shanahan wrote:
When using your supplied patch:
patch_nvidia_295_40.run_for_3.3+
for NVIDIA-Linux-x86_64-295.40.run

"sh ./NVIDIA-Linux-x86_64-295.40.run --apply-patch
./patch_nvidia_295_40.run_for_3.3+"

I get: NVIDIA-Linux-x86_64-295.40-custom.run

and: sh ./NVIDIA-Linux-x86_64-295.40-custom.run -a

yields:

ERROR: Unable to build the NVIDIA kernel module.

nvidia-installer.log
is available: http://wahoo.no-ip.org/~pat/nvidia-installer.log

What does the log say?

nvidia-installer log file '/var/log/nvidia-installer.log'
creation time: Wed Apr 18 17:27:54 2012
installer version: 295.40

PATH:
/sbin:/usr/sbin:/usr/local/sbin:/root/bin:/usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin:/bin:/sbin:/usr/bin/X11:/usr/X11R6/bin:/usr/games:/opt/kde3/bin:/usr/lib64/jvm/jre/bin:/usr/lib/mit/bin

nvidia-installer command line:
./nvidia-installer
-a

Using: nvidia-installer ncurses user interface
-> License accepted by command line option.
-> Installing NVIDIA driver version 295.40.
-> There appears to already be a driver installed on your system (version:
295.33). As part of installing this driver (version: 295.40), the existing driver
will be uninstalled. Are you sure you want to continue? ('no' will abort
installation) (Answer: Yes)
-> Running distribution scripts
executing: '/usr/lib/nvidia/pre-install'...
-> done.
-> Performing CC sanity check with CC="cc".
-> Performing CC version check with CC="cc".
-> Kernel source path: '/lib/modules/3.3.2-20-desktop/source'
-> Kernel output path: '/lib/modules/3.3.2-20-desktop/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.3.2-20-desktop/source
SYSOUT=/lib/modules/3.3.2-20-desktop/build'...
NVIDIA: calling KBUILD...
make -C /lib/modules/3.3.2-20-desktop/build \
KBUILD_SRC=/usr/src/linux-3.3.2-20 \
KBUILD_EXTMOD="/tmp/selfgz4859/NVIDIA-Linux-x86_64-295.40-custom/kernel" -f
/usr/src/linux-3.3.2-20/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/selfgz4859/NVIDIA-Linux-x86_64-295.40-custom/kernel/.tmp_versions ; rm -f
/tmp/selfgz4859/NVIDIA-Linux-x86_64-295.40-custom/kernel/.tmp_versions/*
make -f /usr/src/linux-3.3.2-20/scripts/Makefile.build
obj=/tmp/selfgz4859/NVIDIA-Linux-x86_64-295.40-custom/kernel
conftest5330.c:6:32: fatal error: asm/switch_to.h: No such file or directory
compilation terminated.
cc
-Wp,-MD,/tmp/selfgz4859/NVIDIA-Linux-x86_64-295.40-custom/kernel/.nv.o.d
-nostdinc -isystem /usr/lib64/gcc/x86_64-suse-linux/4.6/include
-I/usr/src/linux-3.3.2-20/arch/x86/include -Iarch/x86/include/generated
-Iinclude -I/usr/src/linux-3.3.2-20/include -include
/usr/src/linux-3.3.2-20/include/linux/kconfig.h
-I/tmp/selfgz4859/NVIDIA-Linux-x86_64-295.40-custom/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 -DCONFIG_AS_CFI=1
-DCONFIG_AS_CFI_SIGNAL_FRAME=1 -DCONFIG_AS_CFI_SECTIONS=1 -DCONFIG_AS_FXSAVEQ=1
-pipe -Wno-sign-compare -mno-sse -mno-mmx -mno-sse2 -mno-3dnow
-Wframe-larger-than=2048 -fno-stack-protector -Wno-unused-but-set-variable
-fomit-frame-pointer -fasynchronous-unwind-tables -g
-fno-inline-functions-called-once
-Wdeclar
ation-after-statement -Wno-pointer-sign -fno-strict-overflow -fconserve-stack
-DCC_HAVE_ASM_GOTO -I/tmp/se
lfgz4859/NVIDIA-Linux-x86_64-295.40-custom/kernel -Wall -MD -Wsign-compare -Wno-cast-qual -Wno-error -D__KERNEL__
-DMODULE -DNVRM -DNV_VERSION_STRING=\"295.40\" -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/selfgz4859/NVIDIA-Linux-x86_64-295.40-custom/kernel/.tmp_nv.o
/tmp/selfgz4859/NVIDIA-Linux-x86_64-295.40-custom/kernel/nv.c
In file included from /usr/src/linux-3.3.2-20/include/linux/kernel.h:17:0,
from /usr/src/linux-3.3.2-20/include/linux/sched.h:55,
from /usr/src/linux-3.3.2-20/include/linux/utsname.h:35,
from
/tmp/selfgz4859/NVIDIA-Linux-x86_64-295.40-custom/kernel/nv-linux.h:38,
from
/tmp/selfgz4859/NVIDIA-Linux-x86_64-295.40-custom/kernel/nv.c:13:
/usr/src/linux-3.3.2-20/include/linux/bitops.h: In function ‘hweight_long’:
/usr/src/linux-3.3.2-20/include/linux/bitops.h:55:41: warning: signed and
unsigned type in conditional expression [-Wsign-compare]
In file included from
/usr/src/linux-3.3.2-20/arch/x86/include/asm/uaccess.h:575:0,
from /usr/src/linux-3.3.2-20/include/linux/poll.h:14,
from
/tmp/selfgz4859/NVIDIA-Linux-x86_64-295.40-custom/kernel/nv-linux.h:97,
from
/tmp/selfgz4859/NVIDIA-Linux-x86_64-295.40-custom/kernel/nv.c:13:
/usr/src/linux-3.3.2-20/arch/x86/include/asm/uaccess_64.h: In function
‘copy_from_user’:
/usr/src/linux-3.3.2-20/arch/x86/include/asm/uaccess_64.h:53:6: warning:
comparison between signed and unsigned integer expressions [-Wsign-compare]
In file included from
/tmp/selfgz4859/NVIDIA-Linux-x86_64-295.40-custom/kernel/nv.c:13:0:
/tmp/selfgz4859/NVIDIA-Linux-x86_64-295.40-custom/kernel/nv-linux.h: At top
level:
/tmp/selfgz4859/NVIDIA-Linux-x86_64-295.40-custom/kernel/nv-linux.h:115:27:
fatal error: asm/switch_to.h: No such file or directory
compilation terminated.
make[4]: ***
[/tmp/selfgz4859/NVIDIA-Linux-x86_64-295.40-custom/kernel/nv.o] Error 1
make[3]: ***
[_module_/tmp/selfgz4859/NVIDIA-Linux-x86_64-295.40-custom/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.

It appears the you can build 295.40 under 3.3 without any patch. Did you try
that?

The patch is definitely needed for builds under 3.4. I will change the name on my FTP site.

Larry

--
To unsubscribe, e-mail: opensuse-factory+unsubscribe@xxxxxxxxxxxx
To contact the owner, e-mail: opensuse-factory+owner@xxxxxxxxxxxx

< Previous Next >
Follow Ups