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

Newegg Daily Deals

Reply
 
Thread Tools
Old 09-03-04, 02:41 AM   #1
fudd
Registered User
 
Join Date: Aug 2004
Posts: 9
Default Compile problem with 2.6.9-rc1-mm2

Maybe I shouldn't expect things to compile cleanly on unstable release clients with bleeding edge patches. Still, it doesn't work. Haven't had any troubbe with compiling for the 2.8.x kernels.
Seems like I have to head back 2.7.x anyway so that I can uses dvd+rw-tools again. Those bugs will get fixed, and I will be moving to 2.6.9 sometime in the future.

Anyway, here's my installer log file. Any suggestion to what might be wrong?
Kernel source is in place. No config change made except for uppgrading th kernel.

lars@nikomma8:~$ cat /var/log/nvidia-installer.log
nvidia-installer log file '/var/log/nvidia-installer.log'
creation time: Fri Sep 3 09:19:10 2004

option status:
license pre-accepted : true
update : false
force update : false
expert : false
uninstall : false
driver info : false
no precompiled interface: false
no ncurses color : false
query latest driver ver : false
OpenGL header files : false
no questions : false
silent : false
X install prefix : /usr/X11R6
OpenGL install prefix : /usr
Installer install prefix: /usr
kernel source path : (not specified)
kernel install path : (not specified)
proc mount point : /proc
ui : (not specified)
tmpdir : /tmp
ftp site : ftp://download.nvidia.com

Using: nvidia-installer ncurses user interface
-> License accepted by command line option.
-> 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.
-> Kernel source path: '/lib/modules/2.6.9-rc1-mm2/build'
-> Performing cc_version_check with CC="cc".
-> Performing rivafb check.
-> Performing rivafb module check.
-> Cleaning kernel module build directory.
executing: 'cd ./usr/src/nv; make clean'...
rm -f -f nv.o os-agp.o os-interface.o os-registry.o nv.o os-agp.o os-interfa
ce.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 *~
-> Building kernel module:
executing: 'cd ./usr/src/nv; make module SYSSRC=/lib/modules/2.6.9-rc1-mm2/b
uild SYSOUT=/lib/modules/2.6.9-rc1-mm2/build'...

NVIDIA: calling KBUILD...
make -C /lib/modules/2.6.9-rc1-mm2/build \
KBUILD_SRC=/usr/src/linux-2.6.9-rc1-mm2 KBUILD_VERBOSE=1 \
KBUILD_CHECK= KBUILD_EXTMOD="/tmp/selfgz7665/NVIDIA-Linux-x86-1.0-6111-pkg1/
usr/src/nv" \
-f /usr/src/linux-2.6.9-rc1-mm2/Makefile modules
mkdir -p /tmp/selfgz7665/NVIDIA-Linux-x86-1.0-6111-pkg1/usr/src/nv/.tmp_vers
ions
make -f /usr/src/linux-2.6.9-rc1-mm2/scripts/Makefile.build obj=/tmp/selfgz7
665/NVIDIA-Linux-x86-1.0-6111-pkg1/usr/src/nv
echo \#define NV_COMPILER \"`cc -v 2>&1 | tail -n 1`\" > /tmp/selfgz7665/NVI
DIA-Linux-x86-1.0-6111-pkg1/usr/src/nv/nv_compiler.h
cc -Wp,-MD,/tmp/selfgz7665/NVIDIA-Linux-x86-1.0-6111-pkg1/usr/src/nv/.nv.o
.d -nostdinc -iwithprefix include -D__KERNEL__ -Iinclude -Iinclude2 -I/usr/s
rc/linux-2.6.9-rc1-mm2/include -I/tmp/selfgz7665/NVIDIA-Linux-x86-1.0-6111-
pkg1/usr/src/nv -Wall -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasin
g -fno-common -pipe -msoft-float -mpreferred-stack-boundary=2 -march=athlon
-I/usr/src/linux-2.6.9-rc1-mm
2/include/asm-i386/mach-default -Iinclude/asm-i386/mach-default -O2 -fomit-f
rame-pointer -I/tmp/selfgz7665/NVIDIA-Linux-x86-1.0-6111-pkg1/usr/src/nv -W
all -Wimplicit -Wreturn-type -Wswitch -Wformat -Wchar-subscripts -Wparenthes
es -Wpointer-arith -Wno-multichar -Werror -O -fno-common -MD -Wno-cast-qual
-Wno-error -D_LOOSE_KERNEL_NAMES -D__KERNEL__ -DMODULE -DNTRM -D_GNU_SOURCE
-D_LOOSE_KERNEL_NAMES -D__KERNEL__ -DMODULE -DNV_MAJOR_VERSION=1 -DNV_MINOR_
VERSION=0 -DNV_PATCHLEVEL=6111 -DNV_UNIX -DNV_LINUX -DNV_INT64_OK -DNVCPU_X8
6 -UDEBUG -U_DEBUG -DNDEBUG -DNV_CHANGE_PAGE_ATTR_PRESENT -DNV_CLASS_SIMPLE_
PRESENT -DMODULE -DKBUILD_BASENAME=nv -DKBUILD_MODNAME=nvidia -c -o /tmp/sel
fgz7665/NVIDIA-Linux-x86-1.0-6111-pkg1/usr/src/nv/.tmp_nv.o /tmp/selfgz7665/
NVIDIA-Linux-x86-1.0-6111-pkg1/usr/src/nv/nv.c
In file included from include/linux/list.h:7,
from include/linux/wait.h:23,
from include/asm/semaphore.h:41,
from include/linux/sched.h:19,
from include/linux/module.h:10,
from /tmp/selfgz7665/NVIDIA-Linux-x86-1.0-6111-pkg1/usr/src
/nv/nv-linux.h:52,
from /tmp/selfgz7665/NVIDIA-Linux-x86-1.0-6111-pkg1/usr/src
/nv/nv.c:14:
include/linux/prefetch.h: In function `prefetch_range':
include/linux/prefetch.h:62: warning: pointer of type `void *' used in arith
metic
/tmp/selfgz7665/NVIDIA-Linux-x86-1.0-6111-pkg1/usr/src/nv/nv.c: In function
`nvos_find_agp_by_class':
/tmp/selfgz7665/NVIDIA-Linux-x86-1.0-6111-pkg1/usr/src/nv/nv.c:642: warning:
implicit declaration of function `pci_find_class'
/tmp/selfgz7665/NVIDIA-Linux-x86-1.0-6111-pkg1/usr/src/nv/nv.c:642: warning:
assignment makes pointer from integer without a cast
/tmp/selfgz7665/NVIDIA-Linux-x86-1.0-6111-pkg1/usr/src/nv/nv.c:653: warning:
assignment makes pointer from integer without a cast
/tmp/selfgz7665/NVIDIA-Linux-x86-1.0-6111-pkg1/usr/src/nv/nv.c: In function
`nvos_count_devices':
/tmp/selfgz7665/NVIDIA-Linux-x86-1.0-6111-pkg1/usr/src/nv/nv.c:3486: warning
: assignment makes pointer from integer without a cast
/tmp/selfgz7665/NVIDIA-Linux-x86-1.0-6111-pkg1/usr/src/nv/nv.c:3491: warning
: assignment makes pointer from integer without a cast
/tmp/selfgz7665/NVIDIA-Linux-x86-1.0-6111-pkg1/usr/src/nv/nv.c: In function
`nv_acpi_event':
/tmp/selfgz7665/NVIDIA-Linux-x86-1.0-6111-pkg1/usr/src/nv/nv.c:3697: error:
`PM_SAVE_STATE' undeclared (first use in this function)
/tmp/selfgz7665/NVIDIA-Linux-x86-1.0-6111-pkg1/usr/src/nv/nv.c:3697: error:
(Each undeclared identifier is reported only once
/tmp/selfgz7665/NVIDIA-Linux-x86-1.0-6111-pkg1/usr/src/nv/nv.c:3697: error:
for each function it appears in.)
make[4]: *** [/tmp/selfgz7665/NVIDIA-Linux-x86-1.0-6111-pkg1/usr/src/nv/nv.o
] Error 1
make[3]: *** [_module_/tmp/selfgz7665/NVIDIA-Linux-x86-1.0-6111-pkg1/usr/src
/nv] Error 2
make[2]: *** [modules] 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.
fudd is offline   Reply With Quote
Old 09-03-04, 06:58 AM   #2
devast
Registered User
 
Join Date: Aug 2004
Posts: 18
Default Re: Compile problem with 2.6.9-rc1-mm2

Here's two patches :

# Fix up the removal of PM_SAVE_STATE in kernels > 2.6.8
http://gentoo.kems.net/gentoo-x86-po...-changes.patch

# Update pci stuff to work with irqroutes being changed in kernels
http://gentoo.kems.net/gentoo-x86-po...able_pci.patch

I think you need the second one ! Good luck !
devast is offline   Reply With Quote
Old 09-03-04, 07:09 AM   #3
zander
NVIDIA Corporation
 
zander's Avatar
 
Join Date: Aug 2002
Posts: 3,740
Default Re: Compile problem with 2.6.9-rc1-mm2

The correct solution for the PM_SAVE_STATE problem is to replace PM_SAVE_STATE with PM_SUSPEND_MEM in nv_acpi_event; a preliminary workaround for the pci_find_class problem is to replace the calls with calls to pci_get_class.
zander is offline   Reply With Quote
Old 09-09-04, 04:17 PM   #4
fudd
Registered User
 
Join Date: Aug 2004
Posts: 9
Default Re: Compile problem with 2.6.9-rc1-mm2

The patches works for linux-2.6.9-rc1. I had to drop the mm patch.
When trying to compile with the mm patch compiled I get
"nvidia: Unknown symbol pci_find_class"
when trying to load the module.

Anyway, I don't need the mm patch so all is good. :-)
fudd is offline   Reply With Quote
Reply


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


All times are GMT -5. The time now is 05:45 AM.


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