Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
'modprobe nvidia' fails
View unanswered posts
View posts from last 24 hours

Goto page 1, 2  Next  
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
jtgd
Tux's lil' helper
Tux's lil' helper


Joined: 03 Apr 2005
Posts: 80
Location: Las Vegas

PostPosted: Sun Apr 17, 2005 3:39 am    Post subject: 'modprobe nvidia' fails Reply with quote

Could there be a connection between 'modprobe nvidia' failing and the xserver saying 'Failed to initialize the NVIDIA kernel module'?
Can something be done about it?

Code:
root # modprobe nvidia
FATAL: Error inserting nvidia (/lib/modules/2.6.11-gentoo-r3/video/nvidia.ko): Invalid module format

root # startx

X Window System Version 6.8.2
Release Date: 9 February 2005
X Protocol Version 11, Revision 0, Release 6.8.2
Build Operating System: Linux 2.6.11-gentoo-r3 x86_64 [ELF]
Current Operating System: Linux tux 2.6.11-gentoo-r3 #2 SMP Sun Apr 10 13:42:26 PDT 2005 x86_64
Build Date: 14 April 2005
   Before reporting problems, check http://wiki.X.Org
   to make sure that you have the latest version.
Module Loader present
Markers: (--) probed, (**) from config file, (==) default setting,
   (++) from command line, (!!) notice, (II) informational,
   (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
(==) Log file: "/var/log/Xorg.0.log", Time: Sat Apr 16 21:01:55 2005
(==) Using config file: "/etc/X11/xorg.conf"
Using vt 7
(EE) NVIDIA(0): Failed to initialize the NVIDIA kernel module!
(EE) NVIDIA(0):  *** Aborting ***
(EE) Screen(s) found, but none have a usable configuration.

Fatal server error:
no screens found

Please consult the The X.Org Foundation support
    at http://wiki.X.Org
 for help.
Please also check the log file at "/var/log/Xorg.0.log" for additional information.

XIO:  fatal IO error 104 (Connection reset by peer) on X server ":0.0"
      after 0 requests (0 known processed) with 0 events remaining.
root #
Back to top
View user's profile Send private message
CyD
Tux's lil' helper
Tux's lil' helper


Joined: 23 Jul 2004
Posts: 117

PostPosted: Sun Apr 17, 2005 4:10 am    Post subject: Reply with quote

yes, the modprobe failure is why x won't work. try remerging the driver, if you haven't already:

Code:
emerge -av nvidia-kernel nvidia-glx


note: nvidia-kernel is a dependency of nvidia-glx, but if nvidia-kernel has already been installed once, nvidia-glx won't ask it to recompile. also, we are remerging nvidia-glx just in case. it is not necessary.

this will ensure your nvidia-kernel is properly built for the currently running kernel. now try to run 'modprobe nvidia'.

you're running amd64? if the above doesn't work, perhaps you could try newest, ~amd64 drivers?

Code:
echo media-video/nvidia-kernel ~amd64 >> /etc/portage/package.keywords
echo media-video/nvidia-glx ~amd64 >> /etc/portage/package.keywords
emerge -av nvidia-glx
Back to top
View user's profile Send private message
jtgd
Tux's lil' helper
Tux's lil' helper


Joined: 03 Apr 2005
Posts: 80
Location: Las Vegas

PostPosted: Sun Apr 17, 2005 4:40 am    Post subject: Reply with quote

CyD wrote:
yes, the modprobe failure is why x won't work. try remerging the driver, if you haven't already:

Code:
emerge -av nvidia-kernel nvidia-glx


note: nvidia-kernel is a dependency of nvidia-glx, but if nvidia-kernel has already been installed once, nvidia-glx won't ask it to recompile. also, we are remerging nvidia-glx just in case. it is not necessary.

this will ensure your nvidia-kernel is properly built for the currently running kernel. now try to run 'modprobe nvidia'.

It recompiled a bunch but did not fix. Same error message.

CyD wrote:

you're running amd64? if the above doesn't work, perhaps you could try newest, ~amd64 drivers?
Code:
echo media-video/nvidia-kernel ~amd64 >> /etc/portage/package.keywords
echo media-video/nvidia-glx ~amd64 >> /etc/portage/package.keywords
emerge -av nvidia-glx

Yes, I have amd64 (dual Opteron). I didn't really want anything but stable, but I tried this anyway. Did not fix. Same error message.

FATAL: Error inserting nvidia (/lib/modules/2.6.11-gentoo-r3/video/nvidia.ko): Invalid module format

What's going on here? :(
Back to top
View user's profile Send private message
CyD
Tux's lil' helper
Tux's lil' helper


Joined: 23 Jul 2004
Posts: 117

PostPosted: Sun Apr 17, 2005 4:53 am    Post subject: Reply with quote

so, you don't get any errors when compiling? and 2.6.11-gentoo-r3 is your current kernel? i mean, it's basically tellin you that the module you have isn't built for your kernel. when emerging nvidia-kernel, does it say it's compiling for the same kernel? 'uname -r' will give you the currently running kernel. doing a 'ls -l /usr/src' will show you if usr/src/linux is properly linked.
Back to top
View user's profile Send private message
jtgd
Tux's lil' helper
Tux's lil' helper


Joined: 03 Apr 2005
Posts: 80
Location: Las Vegas

PostPosted: Sun Apr 17, 2005 6:00 am    Post subject: Reply with quote

CyD wrote:
so, you don't get any errors when compiling?

Not really. Plenty of warnings as always, but it completes without an error at the end.

Says something about needing to update a config file in /etc, but I don't know what. I moved /etc/X11/xorg.conf out of the way and recompiled, but it didn't create it and gave same error.
CyD wrote:
and 2.6.11-gentoo-r3 is your current kernel? i mean, it's basically tellin you that the module you have isn't built for your kernel. when emerging nvidia-kernel, does it say it's compiling for the same kernel? 'uname -r' will give you the currently running kernel.

It says "Found sources for kernel version 2.6.11-gentoo-r3..."
uname gives same version.
CyD wrote:
doing a 'ls -l /usr/src' will show you if usr/src/linux is properly linked.

It is. This is a virgin install, there's only ever been this version.
Back to top
View user's profile Send private message
jtgd
Tux's lil' helper
Tux's lil' helper


Joined: 03 Apr 2005
Posts: 80
Location: Las Vegas

PostPosted: Sun Apr 17, 2005 6:28 am    Post subject: Reply with quote

Maybe this will help...
Code:
# emerge nvidia-kernel
Calculating dependencies   - ...done!
>>> emerge (1 of 1) media-video/nvidia-kernel-1.0.7174 to /
>>> md5 src_uri ;-) NVIDIA-Linux-x86_64-1.0-7174-pkg2.run
 * Determining the location of the kernel source code
 * Found kernel source directory:
 *     /usr/src/linux
 * Found sources for kernel version:
 *     2.6.11-gentoo-r3
 * Checking for MTRR support... ok
>>> Unpacking source...
Creating directory NVIDIA-Linux-x86_64-1.0-7174-pkg2
Verifying archive integrity... OK
Uncompressing NVIDIA Accelerated Graphics Driver for Linux-x86_64 1.0-7174..........................................................................
 * Applying NVIDIA_kernel-1.0-7167-amd64-shutup-warnings.patch ... ok
 * Applying 2.6 kernel patches
 * Applying NVIDIA_kernel-1.0-7167-conftest-koutput-includes.patch ... ok
 * Applying NVIDIA_kernel-1.0-7167-disable-preempt-on-smp_processor_id.patch ... ok
 * Converting Makefile.kbuild to use M= instead of SUBDIRS=... ok
>>> Source unpacked.
 * Preparing nvidia module

NVIDIA: calling KBUILD...
make CC=cc  KBUILD_VERBOSE=1 -C /usr/src/linux M=/var/tmp/portage/nvidia-kernel-1.0.7174/work/NVIDIA-Linux-x86_64-1.0-7174-pkg2/usr/src/nv modules
make[2]: warning: jobserver unavailable: using -j1.  Add `+' to parent make rule.
mkdir -p /var/tmp/portage/nvidia-kernel-1.0.7174/work/NVIDIA-Linux-x86_64-1.0-7174-pkg2/usr/src/nv/.tmp_versions
make -f scripts/Makefile.build obj=/var/tmp/portage/nvidia-kernel-1.0.7174/work/NVIDIA-Linux-x86_64-1.0-7174-pkg2/usr/src/nv
echo \#define NV_COMPILER \"`cc -v 2>&1 | tail -n 1`\" > /var/tmp/portage/nvidia-kernel-1.0.7174/work/NVIDIA-Linux-x86_64-1.0-7174-pkg2/usr/src/nv/nv_compiler.h
  cc -Wp,-MD,/var/tmp/portage/nvidia-kernel-1.0.7174/work/NVIDIA-Linux-x86_64-1.0-7174-pkg2/usr/src/nv/.nv.o.d -nostdinc -isystem /usr/lib/gcc/x86_64-pc-linux-gnu/3.4.3/include -D__KERNEL__ -Iinclude  -Wall -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -ffreestanding -O2     -fomit-frame-pointer  -mno-red-zone -mcmodel=kernel -pipe -fno-reorder-blocks    -Wno-sign-compare -fno-asynchronous-unwind-tables -funit-at-a-time -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -Wdeclaration-after-statement  -I/var/tmp/portage/nvidia-kernel-1.0.7174/work/NVIDIA-Linux-x86_64-1.0-7174-pkg2/usr/src/nv -Wall -Wimplicit -Wreturn-type -Wswitch -Wformat -Wchar-subscripts -Wparentheses -Wno-multichar  -Werror -O -fno-common -mno-red-zone -MD   -Wsign-compare -Wno-cast-qual -Wno-error -D_LOOSE_KERNEL_NAMES -D__KERNEL__ -DMODULE  -mcmodel=kernel -DNTRM -D_GNU_SOURCE -D_LOOSE_KERNEL_NAMES -D__KERNEL__ -DMODULE  -DNV_MAJOR_VERSION=1 -DNV_MINOR_VERSION=0 -DNV_PATCHLEVEL=7174  -DNV_UNIX  -DNV_LINUX  -DNV_INT64_OK  -DNVCPU_X86_64  -DNV_64_BITS    -UDEBUG -U_DEBUG -DNDEBUG -DNV_SIGNAL_STRUCT_RLIM -DNV_REMAP_PFN_RANGE_PRESENT -DNV_CHANGE_PAGE_ATTR_PRESENT -DNV_PCI_DISABLE_DEVICE_PRESENT -DNV_CLASS_SIMPLE_CREATE_PRESENT -DNV_PCI_GET_CLASS_PRESENT -DNV_VMAP_4_PRESENT  -DMODULE -DKBUILD_BASENAME=nv -DKBUILD_MODNAME=nvidia -c -o /var/tmp/portage/nvidia-kernel-1.0.7174/work/NVIDIA-Linux-x86_64-1.0-7174-pkg2/usr/src/nv/nv.o /var/tmp/portage/nvidia-kernel-1.0.7174/work/NVIDIA-Linux-x86_64-1.0-7174-pkg2/usr/src/nv/nv.c
In file included from include/linux/sched.h:15,
                 from include/linux/module.h:10,
                 from /var/tmp/portage/nvidia-kernel-1.0.7174/work/NVIDIA-Linux-x86_64-1.0-7174-pkg2/usr/src/nv/nv-linux.h:46,
                 from /var/tmp/portage/nvidia-kernel-1.0.7174/work/NVIDIA-Linux-x86_64-1.0-7174-pkg2/usr/src/nv/nv.c:14:
include/linux/cpumask.h: In function `__first_cpu':
include/linux/cpumask.h:211: warning: signed and unsigned type in conditional expression
include/linux/cpumask.h: In function `__next_cpu':
include/linux/cpumask.h:217: warning: signed and unsigned type in conditional expression
  cc -Wp,-MD,/var/tmp/portage/nvidia-kernel-1.0.7174/work/NVIDIA-Linux-x86_64-1.0-7174-pkg2/usr/src/nv/.nv-vm.o.d -nostdinc -isystem /usr/lib/gcc/x86_64-pc-linux-gnu/3.4.3/include -D__KERNEL__ -Iinclude  -Wall -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -ffreestanding -O2     -fomit-frame-pointer  -mno-red-zone -mcmodel=kernel -pipe -fno-reorder-blocks    -Wno-sign-compare -fno-asynchronous-unwind-tables -funit-at-a-time -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -Wdeclaration-after-statement  -I/var/tmp/portage/nvidia-kernel-1.0.7174/work/NVIDIA-Linux-x86_64-1.0-7174-pkg2/usr/src/nv -Wall -Wimplicit -Wreturn-type -Wswitch -Wformat -Wchar-subscripts -Wparentheses -Wno-multichar  -Werror -O -fno-common -mno-red-zone -MD   -Wsign-compare -Wno-cast-qual -Wno-error -D_LOOSE_KERNEL_NAMES -D__KERNEL__ -DMODULE  -mcmodel=kernel -DNTRM -D_GNU_SOURCE -D_LOOSE_KERNEL_NAMES -D__KERNEL__ -DMODULE  -DNV_MAJOR_VERSION=1 -DNV_MINOR_VERSION=0 -DNV_PATCHLEVEL=7174  -DNV_UNIX  -DNV_LINUX  -DNV_INT64_OK  -DNVCPU_X86_64  -DNV_64_BITS    -UDEBUG -U_DEBUG -DNDEBUG -DNV_SIGNAL_STRUCT_RLIM -DNV_REMAP_PFN_RANGE_PRESENT -DNV_CHANGE_PAGE_ATTR_PRESENT -DNV_PCI_DISABLE_DEVICE_PRESENT -DNV_CLASS_SIMPLE_CREATE_PRESENT -DNV_PCI_GET_CLASS_PRESENT -DNV_VMAP_4_PRESENT  -DMODULE -DKBUILD_BASENAME=nv_vm -DKBUILD_MODNAME=nvidia -c -o /var/tmp/portage/nvidia-kernel-1.0.7174/work/NVIDIA-Linux-x86_64-1.0-7174-pkg2/usr/src/nv/nv-vm.o /var/tmp/portage/nvidia-kernel-1.0.7174/work/NVIDIA-Linux-x86_64-1.0-7174-pkg2/usr/src/nv/nv-vm.c
In file included from include/linux/sched.h:15,
                 from include/linux/module.h:10,
                 from /var/tmp/portage/nvidia-kernel-1.0.7174/work/NVIDIA-Linux-x86_64-1.0-7174-pkg2/usr/src/nv/nv-linux.h:46,
                 from /var/tmp/portage/nvidia-kernel-1.0.7174/work/NVIDIA-Linux-x86_64-1.0-7174-pkg2/usr/src/nv/nv-vm.c:14:
include/linux/cpumask.h: In function `__first_cpu':
include/linux/cpumask.h:211: warning: signed and unsigned type in conditional expression
include/linux/cpumask.h: In function `__next_cpu':
include/linux/cpumask.h:217: warning: signed and unsigned type in conditional expression
  cc -Wp,-MD,/var/tmp/portage/nvidia-kernel-1.0.7174/work/NVIDIA-Linux-x86_64-1.0-7174-pkg2/usr/src/nv/.os-agp.o.d -nostdinc -isystem /usr/lib/gcc/x86_64-pc-linux-gnu/3.4.3/include -D__KERNEL__ -Iinclude  -Wall -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -ffreestanding -O2     -fomit-frame-pointer  -mno-red-zone -mcmodel=kernel -pipe -fno-reorder-blocks    -Wno-sign-compare -fno-asynchronous-unwind-tables -funit-at-a-time -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -Wdeclaration-after-statement  -I/var/tmp/portage/nvidia-kernel-1.0.7174/work/NVIDIA-Linux-x86_64-1.0-7174-pkg2/usr/src/nv -Wall -Wimplicit -Wreturn-type -Wswitch -Wformat -Wchar-subscripts -Wparentheses -Wno-multichar  -Werror -O -fno-common -mno-red-zone -MD   -Wsign-compare -Wno-cast-qual -Wno-error -D_LOOSE_KERNEL_NAMES -D__KERNEL__ -DMODULE  -mcmodel=kernel -DNTRM -D_GNU_SOURCE -D_LOOSE_KERNEL_NAMES -D__KERNEL__ -DMODULE  -DNV_MAJOR_VERSION=1 -DNV_MINOR_VERSION=0 -DNV_PATCHLEVEL=7174  -DNV_UNIX  -DNV_LINUX  -DNV_INT64_OK  -DNVCPU_X86_64  -DNV_64_BITS    -UDEBUG -U_DEBUG -DNDEBUG -DNV_SIGNAL_STRUCT_RLIM -DNV_REMAP_PFN_RANGE_PRESENT -DNV_CHANGE_PAGE_ATTR_PRESENT -DNV_PCI_DISABLE_DEVICE_PRESENT -DNV_CLASS_SIMPLE_CREATE_PRESENT -DNV_PCI_GET_CLASS_PRESENT -DNV_VMAP_4_PRESENT  -DMODULE -DKBUILD_BASENAME=os_agp -DKBUILD_MODNAME=nvidia -c -o /var/tmp/portage/nvidia-kernel-1.0.7174/work/NVIDIA-Linux-x86_64-1.0-7174-pkg2/usr/src/nv/os-agp.o /var/tmp/portage/nvidia-kernel-1.0.7174/work/NVIDIA-Linux-x86_64-1.0-7174-pkg2/usr/src/nv/os-agp.c
In file included from include/linux/sched.h:15,
                 from include/linux/module.h:10,
                 from /var/tmp/portage/nvidia-kernel-1.0.7174/work/NVIDIA-Linux-x86_64-1.0-7174-pkg2/usr/src/nv/nv-linux.h:46,
                 from /var/tmp/portage/nvidia-kernel-1.0.7174/work/NVIDIA-Linux-x86_64-1.0-7174-pkg2/usr/src/nv/os-agp.c:24:
include/linux/cpumask.h: In function `__first_cpu':
include/linux/cpumask.h:211: warning: signed and unsigned type in conditional expression
include/linux/cpumask.h: In function `__next_cpu':
include/linux/cpumask.h:217: warning: signed and unsigned type in conditional expression
  cc -Wp,-MD,/var/tmp/portage/nvidia-kernel-1.0.7174/work/NVIDIA-Linux-x86_64-1.0-7174-pkg2/usr/src/nv/.os-interface.o.d -nostdinc -isystem /usr/lib/gcc/x86_64-pc-linux-gnu/3.4.3/include -D__KERNEL__ -Iinclude  -Wall -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -ffreestanding -O2     -fomit-frame-pointer  -mno-red-zone -mcmodel=kernel -pipe -fno-reorder-blocks    -Wno-sign-compare -fno-asynchronous-unwind-tables -funit-at-a-time -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -Wdeclaration-after-statement  -I/var/tmp/portage/nvidia-kernel-1.0.7174/work/NVIDIA-Linux-x86_64-1.0-7174-pkg2/usr/src/nv -Wall -Wimplicit -Wreturn-type -Wswitch -Wformat -Wchar-subscripts -Wparentheses -Wno-multichar  -Werror -O -fno-common -mno-red-zone -MD   -Wsign-compare -Wno-cast-qual -Wno-error -D_LOOSE_KERNEL_NAMES -D__KERNEL__ -DMODULE  -mcmodel=kernel -DNTRM -D_GNU_SOURCE -D_LOOSE_KERNEL_NAMES -D__KERNEL__ -DMODULE  -DNV_MAJOR_VERSION=1 -DNV_MINOR_VERSION=0 -DNV_PATCHLEVEL=7174  -DNV_UNIX  -DNV_LINUX  -DNV_INT64_OK  -DNVCPU_X86_64  -DNV_64_BITS    -UDEBUG -U_DEBUG -DNDEBUG -DNV_SIGNAL_STRUCT_RLIM -DNV_REMAP_PFN_RANGE_PRESENT -DNV_CHANGE_PAGE_ATTR_PRESENT -DNV_PCI_DISABLE_DEVICE_PRESENT -DNV_CLASS_SIMPLE_CREATE_PRESENT -DNV_PCI_GET_CLASS_PRESENT -DNV_VMAP_4_PRESENT  -DMODULE -DKBUILD_BASENAME=os_interface -DKBUILD_MODNAME=nvidia -c -o /var/tmp/portage/nvidia-kernel-1.0.7174/work/NVIDIA-Linux-x86_64-1.0-7174-pkg2/usr/src/nv/os-interface.o /var/tmp/portage/nvidia-kernel-1.0.7174/work/NVIDIA-Linux-x86_64-1.0-7174-pkg2/usr/src/nv/os-interface.c
In file included from include/linux/sched.h:15,
                 from include/linux/module.h:10,
                 from /var/tmp/portage/nvidia-kernel-1.0.7174/work/NVIDIA-Linux-x86_64-1.0-7174-pkg2/usr/src/nv/nv-linux.h:46,
                 from /var/tmp/portage/nvidia-kernel-1.0.7174/work/NVIDIA-Linux-x86_64-1.0-7174-pkg2/usr/src/nv/os-interface.c:26:
include/linux/cpumask.h: In function `__first_cpu':
include/linux/cpumask.h:211: warning: signed and unsigned type in conditional expression
include/linux/cpumask.h: In function `__next_cpu':
include/linux/cpumask.h:217: warning: signed and unsigned type in conditional expression
  cc -Wp,-MD,/var/tmp/portage/nvidia-kernel-1.0.7174/work/NVIDIA-Linux-x86_64-1.0-7174-pkg2/usr/src/nv/.os-registry.o.d -nostdinc -isystem /usr/lib/gcc/x86_64-pc-linux-gnu/3.4.3/include -D__KERNEL__ -Iinclude  -Wall -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -ffreestanding -O2     -fomit-frame-pointer  -mno-red-zone -mcmodel=kernel -pipe -fno-reorder-blocks    -Wno-sign-compare -fno-asynchronous-unwind-tables -funit-at-a-time -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -Wdeclaration-after-statement  -I/var/tmp/portage/nvidia-kernel-1.0.7174/work/NVIDIA-Linux-x86_64-1.0-7174-pkg2/usr/src/nv -Wall -Wimplicit -Wreturn-type -Wswitch -Wformat -Wchar-subscripts -Wparentheses -Wno-multichar  -Werror -O -fno-common -mno-red-zone -MD   -Wsign-compare -Wno-cast-qual -Wno-error -D_LOOSE_KERNEL_NAMES -D__KERNEL__ -DMODULE  -mcmodel=kernel -DNTRM -D_GNU_SOURCE -D_LOOSE_KERNEL_NAMES -D__KERNEL__ -DMODULE  -DNV_MAJOR_VERSION=1 -DNV_MINOR_VERSION=0 -DNV_PATCHLEVEL=7174  -DNV_UNIX  -DNV_LINUX  -DNV_INT64_OK  -DNVCPU_X86_64  -DNV_64_BITS    -UDEBUG -U_DEBUG -DNDEBUG -DNV_SIGNAL_STRUCT_RLIM -DNV_REMAP_PFN_RANGE_PRESENT -DNV_CHANGE_PAGE_ATTR_PRESENT -DNV_PCI_DISABLE_DEVICE_PRESENT -DNV_CLASS_SIMPLE_CREATE_PRESENT -DNV_PCI_GET_CLASS_PRESENT -DNV_VMAP_4_PRESENT  -DMODULE -DKBUILD_BASENAME=os_registry -DKBUILD_MODNAME=nvidia -c -o /var/tmp/portage/nvidia-kernel-1.0.7174/work/NVIDIA-Linux-x86_64-1.0-7174-pkg2/usr/src/nv/os-registry.o /var/tmp/portage/nvidia-kernel-1.0.7174/work/NVIDIA-Linux-x86_64-1.0-7174-pkg2/usr/src/nv/os-registry.c
In file included from include/linux/sched.h:15,
                 from include/linux/module.h:10,
                 from /var/tmp/portage/nvidia-kernel-1.0.7174/work/NVIDIA-Linux-x86_64-1.0-7174-pkg2/usr/src/nv/nv-linux.h:46,
                 from /var/tmp/portage/nvidia-kernel-1.0.7174/work/NVIDIA-Linux-x86_64-1.0-7174-pkg2/usr/src/nv/os-registry.c:14:
include/linux/cpumask.h: In function `__first_cpu':
include/linux/cpumask.h:211: warning: signed and unsigned type in conditional expression
include/linux/cpumask.h: In function `__next_cpu':
include/linux/cpumask.h:217: warning: signed and unsigned type in conditional expression
  ld -m elf_x86_64  -r -o /var/tmp/portage/nvidia-kernel-1.0.7174/work/NVIDIA-Linux-x86_64-1.0-7174-pkg2/usr/src/nv/nvidia.o /var/tmp/portage/nvidia-kernel-1.0.7174/work/NVIDIA-Linux-x86_64-1.0-7174-pkg2/usr/src/nv/nv-kernel.o /var/tmp/portage/nvidia-kernel-1.0.7174/work/NVIDIA-Linux-x86_64-1.0-7174-pkg2/usr/src/nv/nv.o /var/tmp/portage/nvidia-kernel-1.0.7174/work/NVIDIA-Linux-x86_64-1.0-7174-pkg2/usr/src/nv/nv-vm.o /var/tmp/portage/nvidia-kernel-1.0.7174/work/NVIDIA-Linux-x86_64-1.0-7174-pkg2/usr/src/nv/os-agp.o /var/tmp/portage/nvidia-kernel-1.0.7174/work/NVIDIA-Linux-x86_64-1.0-7174-pkg2/usr/src/nv/os-interface.o /var/tmp/portage/nvidia-kernel-1.0.7174/work/NVIDIA-Linux-x86_64-1.0-7174-pkg2/usr/src/nv/os-registry.o
  Building modules, stage 2.
make -rR -f /usr/src/linux-2.6.11-gentoo-r3/scripts/Makefile.modpost
  scripts/mod/modpost   -i /usr/src/linux-2.6.11-gentoo-r3/Module.symvers vmlinux /var/tmp/portage/nvidia-kernel-1.0.7174/work/NVIDIA-Linux-x86_64-1.0-7174-pkg2/usr/src/nv/nvidia.o
*** Warning: "smp_processor_id" [/var/tmp/portage/nvidia-kernel-1.0.7174/work/NVIDIA-Linux-x86_64-1.0-7174-pkg2/usr/src/nv/nvidia.ko] undefined!
*** Warning: "sub_preempt_count" [/var/tmp/portage/nvidia-kernel-1.0.7174/work/NVIDIA-Linux-x86_64-1.0-7174-pkg2/usr/src/nv/nvidia.ko] undefined!
*** Warning: "add_preempt_count" [/var/tmp/portage/nvidia-kernel-1.0.7174/work/NVIDIA-Linux-x86_64-1.0-7174-pkg2/usr/src/nv/nvidia.ko] undefined!
*** Warning: "preempt_schedule" [/var/tmp/portage/nvidia-kernel-1.0.7174/work/NVIDIA-Linux-x86_64-1.0-7174-pkg2/usr/src/nv/nvidia.ko] undefined!
  cc -Wp,-MD,/var/tmp/portage/nvidia-kernel-1.0.7174/work/NVIDIA-Linux-x86_64-1.0-7174-pkg2/usr/src/nv/.nvidia.mod.o.d -nostdinc -isystem /usr/lib/gcc/x86_64-pc-linux-gnu/3.4.3/include -D__KERNEL__ -Iinclude  -Wall -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -ffreestanding -O2     -fomit-frame-pointer  -mno-red-zone -mcmodel=kernel -pipe -fno-reorder-blocks    -Wno-sign-compare -fno-asynchronous-unwind-tables -funit-at-a-time -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -Wdeclaration-after-statement     -DKBUILD_BASENAME=nvidia -DKBUILD_MODNAME=nvidia -DMODULE -c -o /var/tmp/portage/nvidia-kernel-1.0.7174/work/NVIDIA-Linux-x86_64-1.0-7174-pkg2/usr/src/nv/nvidia.mod.o /var/tmp/portage/nvidia-kernel-1.0.7174/work/NVIDIA-Linux-x86_64-1.0-7174-pkg2/usr/src/nv/nvidia.mod.c
  ld -m elf_x86_64 -r -o /var/tmp/portage/nvidia-kernel-1.0.7174/work/NVIDIA-Linux-x86_64-1.0-7174-pkg2/usr/src/nv/nvidia.ko /var/tmp/portage/nvidia-kernel-1.0.7174/work/NVIDIA-Linux-x86_64-1.0-7174-pkg2/usr/src/nv/nvidia.o /var/tmp/portage/nvidia-kernel-1.0.7174/work/NVIDIA-Linux-x86_64-1.0-7174-pkg2/usr/src/nv/nvidia.mod.o
NVIDIA: left KBUILD.
>>> Test phase [not enabled]: media-video/nvidia-kernel-1.0.7174

>>> Install nvidia-kernel-1.0.7174 into /var/tmp/portage/nvidia-kernel-1.0.7174/image/ category media-video
 * Installing nvidia module
man:
>>> Completed installing nvidia-kernel-1.0.7174 into /var/tmp/portage/nvidia-kernel-1.0.7174/image/

>>> Merging media-video/nvidia-kernel-1.0.7174 to /
--- /etc/
--- /etc/modules.d/
>>> /etc/modules.d/nvidia
--- /lib/
--- /lib/modules/
--- /lib/modules/2.6.11-gentoo-r3/
--- /lib/modules/2.6.11-gentoo-r3/video/
>>> /lib/modules/2.6.11-gentoo-r3/video/nvidia.ko
--- /usr/
--- /usr/share/
--- /usr/share/doc/
--- /usr/share/doc/nvidia-kernel-1.0.7174/
>>> /usr/share/doc/nvidia-kernel-1.0.7174/README.gz
--- /sbin/
>>> /sbin/NVmakedevices.sh
>>> Safely unmerging already-installed instance...
--- !mtime obj /usr/share/doc/nvidia-kernel-1.0.7174/README.gz
--- !mtime obj /sbin/NVmakedevices.sh
--- cfgpro obj /lib/modules/2.6.11-gentoo-r3/video/nvidia.ko
--- cfgpro dir /lib/modules/2.6.11-gentoo-r3/video
--- cfgpro dir /lib/modules/2.6.11-gentoo-r3
--- cfgpro obj /etc/modules.d/nvidia
--- cfgpro dir /etc/modules.d
--- !empty dir /usr/share/doc/nvidia-kernel-1.0.7174
--- !empty dir /usr/share/doc
--- !empty dir /usr/share
--- !empty dir /usr
--- !empty dir /sbin
--- !empty dir /lib/modules
--- !empty dir /lib
--- !empty dir /etc
>>> original instance of package unmerged safely.
 * Updating module dependencies for 2.6.11-gentoo-r3...
WARNING: //lib/modules/2.6.11-gentoo-r3/video/nvidia.ko needs unknown symbol preempt_schedule
WARNING: //lib/modules/2.6.11-gentoo-r3/video/nvidia.ko needs unknown symbol add_preempt_count
WARNING: //lib/modules/2.6.11-gentoo-r3/video/nvidia.ko needs unknown symbol sub_preempt_count
WARNING: //lib/modules/2.6.11-gentoo-r3/video/nvidia.ko needs unknown symbol smp_processor_id ok
 * Updating modules.conf... ok
 * If you would like to load this module automatically upon boot
 * please type the following as root:
 *     # echo "nvidia" >> /etc/modules.autoload.d/kernel-2.6
 *
>>> Regenerating /etc/ld.so.cache...
 * Caching service dependencies...
>>> media-video/nvidia-kernel-1.0.7174 merged.

>>> clean: No packages selected for removal.

>>> Auto-cleaning packages ...

>>> No outdated packages were found on your system.


 * GNU info directory index is up-to-date.
 * IMPORTANT: 1 config files in /etc need updating.
 * Type emerge --help config to learn how to update config files.

#
Back to top
View user's profile Send private message
Riftwing
Apprentice
Apprentice


Joined: 06 Oct 2002
Posts: 293

PostPosted: Sun Apr 17, 2005 7:37 am    Post subject: Reply with quote

The kernel and nvidia-kernel have to compiled with the SAME version of gcc. I'm guessing you updated gcc, re-emerged nvidia-kernel but didn't recompile your kernel.
_________________
Good, bad, I'm the guy with the gun. - Ash, Army of Darkness
Back to top
View user's profile Send private message
i92guboj
Bodhisattva
Bodhisattva


Joined: 30 Nov 2004
Posts: 10306
Location: Córdoba (Spain)

PostPosted: Sun Apr 17, 2005 11:56 am    Post subject: Reply with quote

Riftwing wrote:
The kernel and nvidia-kernel have to compiled with the SAME version of gcc. I'm guessing you updated gcc, re-emerged nvidia-kernel but didn't recompile your kernel.

Yes, true. Recompile your kernel and then nvidia-kernel.

Also make sure that the /usr/src/linux symlink is pointing to you current kernel source tree.
_________________
Gentoo Handbook | My website
Back to top
View user's profile Send private message
xevz
n00b
n00b


Joined: 24 Aug 2004
Posts: 37
Location: Stockholm, Sweden

PostPosted: Sun Apr 17, 2005 1:09 pm    Post subject: Reply with quote

I got the same problem before, with any module...

The problem was that I compiled my kernel with SMP support (which I don't have) by mistake. After I discovered this, removed it and tried again it worked! :)
Back to top
View user's profile Send private message
gerard27
Advocate
Advocate


Joined: 04 Jan 2004
Posts: 2377
Location: Netherlands

PostPosted: Sun Apr 17, 2005 1:46 pm    Post subject: Reply with quote

Look in 'bugs' and search for nvidia.
You'll see that there are unresolved bugs for amd64
Back to top
View user's profile Send private message
CyD
Tux's lil' helper
Tux's lil' helper


Joined: 23 Jul 2004
Posts: 117

PostPosted: Sun Apr 17, 2005 3:45 pm    Post subject: Reply with quote

as everyone said, recompiling your kernel and booting to the new one will fix those unresolved symbols. do you use genkernel? it can be helpful for first timers. following the gentoo install docs will help as well.

Code:
cd /usr/src/linux
genkernel --menuconfig --udev all


basically, you're runnin into problems, cause nvidia driver thinks you should have smp and preemp modules running, which you don't. the kernel recompile will solve this. of course followed by an 'emerge nvidia-kernel nvidia-glx'

as the gentoo docs suggest, use coldplug at boot, and hotplug i default run level, which will help udev create all needed device nodes :)

unless you're not usin udev... but this is a 2005 install, right?
Back to top
View user's profile Send private message
jtgd
Tux's lil' helper
Tux's lil' helper


Joined: 03 Apr 2005
Posts: 80
Location: Las Vegas

PostPosted: Sun Apr 17, 2005 4:50 pm    Post subject: Reply with quote

Thanks to everyone for the advice.

Riftwing: This is a fresh install of 2005.0. If the install process changes the gcc version then OK, but I did nothing to change it.

6thpink: I will try recompiling the kernel.

xevz: I have dual Opteron so I must have SMP in there. I'm sure it was there for the kernel compile and nvidia.

Gerard: When you say "look in bugs", what do you mean? If there are bugs for nvidia this sounds rather ominous. You mean I can't run a Linux/amd64/nvidia combination?

CyD: I went by the install docs and I used 'make menuconfig'. Is it too late to run genkernel now? Will it see all the settings that I generated with menuconfig?
Quote:
as the gentoo docs suggest, use coldplug at boot, and hotplug i default run level, which will help udev create all needed device nodes

Um, I didn't quite get what you mean. I've never heard of coldplug. What does it do and where can I read more about it?

This is a 2005.0 install, but how does udev enter into it?
Back to top
View user's profile Send private message
CyD
Tux's lil' helper
Tux's lil' helper


Joined: 23 Jul 2004
Posts: 117

PostPosted: Sun Apr 17, 2005 5:31 pm    Post subject: Reply with quote

from the install docs:

Quote:
Now, let's perform one more step to get our system to be more like the Installation CD -- let's emerge coldplug. While the initrd autodetects hardware that is needed to boot your system, coldplug autodetects everything else. To emerge and enable coldplug, type the following:

Code Listing 22: Emerging and enabling coldplug

# emerge coldplug
# rc-update add coldplug boot


and then...

Code:
# emerge hotplug
# rc-update add hotplug default


sorry, didn't mean to confuse you.. you don't have to use genkernel, but it could make things easier for you... refer to the install docs..

udev is the default in 2005.0. but yeah, it doesn't really apply to this prob...

anyways, the kernel recompile should fix you up.. genkernel is an option if you still get unresolved symbols, and it should use your old config. it will also add many modules to the compile, you can unselect them if you don't want it to take so long
Back to top
View user's profile Send private message
jtgd
Tux's lil' helper
Tux's lil' helper


Joined: 03 Apr 2005
Posts: 80
Location: Las Vegas

PostPosted: Sun Apr 17, 2005 7:06 pm    Post subject: Reply with quote

I don't know what the coldplug/hotplug thing has to do with my issue, but I did it anyway.

I recomplied the kernel, setting SMP and everything else in menuconfig (it seems to have forgotten everything from my original build), then emerged nvidia-kernel nvidia-glx.

It made no difference. Same modprobe error, same startx error.

Here is the emerge output:
Code:

tux root # emerge nvidia-kernel
Calculating dependencies   - ...done!
>>> emerge (1 of 1) media-video/nvidia-kernel-1.0.7174 to /
>>> md5 src_uri ;-) NVIDIA-Linux-x86_64-1.0-7174-pkg2.run
 * Determining the location of the kernel source code
 * Found kernel source directory:
 *     /usr/src/linux
 * Found sources for kernel version:
 *     2.6.11-gentoo-r3
 * Checking for MTRR support... ok
>>> Unpacking source...
Creating directory NVIDIA-Linux-x86_64-1.0-7174-pkg2
Verifying archive integrity... OK
Uncompressing NVIDIA Accelerated Graphics Driver for Linux-x86_64 1.0-7174..........................................................................
 * Applying NVIDIA_kernel-1.0-7167-amd64-shutup-warnings.patch ... ok
 * Applying 2.6 kernel patches
 * Applying NVIDIA_kernel-1.0-7167-conftest-koutput-includes.patch ... ok
 * Applying NVIDIA_kernel-1.0-7167-disable-preempt-on-smp_processor_id.patch ... ok
 * Converting Makefile.kbuild to use M= instead of SUBDIRS=... ok
>>> Source unpacked.
 * Preparing nvidia module

NVIDIA: calling KBUILD...
make CC=cc  KBUILD_VERBOSE=1 -C /usr/src/linux M=/var/tmp/portage/nvidia-kernel-1.0.7174/work/NVIDIA-Linux-x86_64-1.0-7174-pkg2/usr/src/nv modules
make[2]: warning: jobserver unavailable: using -j1.  Add `+' to parent make rule.
mkdir -p /var/tmp/portage/nvidia-kernel-1.0.7174/work/NVIDIA-Linux-x86_64-1.0-7174-pkg2/usr/src/nv/.tmp_versions
make -f scripts/Makefile.build obj=/var/tmp/portage/nvidia-kernel-1.0.7174/work/NVIDIA-Linux-x86_64-1.0-7174-pkg2/usr/src/nv
echo \#define NV_COMPILER \"`cc -v 2>&1 | tail -n 1`\" > /var/tmp/portage/nvidia-kernel-1.0.7174/work/NVIDIA-Linux-x86_64-1.0-7174-pkg2/usr/src/nv/nv_compiler.h
  cc -Wp,-MD,/var/tmp/portage/nvidia-kernel-1.0.7174/work/NVIDIA-Linux-x86_64-1.0-7174-pkg2/usr/src/nv/.nv.o.d -nostdinc -isystem /usr/lib/gcc/x86_64-pc-linux-gnu/3.4.3/include -D__KERNEL__ -Iinclude  -Wall -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -ffreestanding -O2     -fomit-frame-pointer -march=k8 -mno-red-zone -mcmodel=kernel -pipe -fno-reorder-blocks    -Wno-sign-compare -fno-asynchronous-unwind-tables -funit-at-a-time -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -Wdeclaration-after-statement  -I/var/tmp/portage/nvidia-kernel-1.0.7174/work/NVIDIA-Linux-x86_64-1.0-7174-pkg2/usr/src/nv -Wall -Wimplicit -Wreturn-type -Wswitch -Wformat -Wchar-subscripts -Wparentheses -Wno-multichar  -Werror -O -fno-common -mno-red-zone -MD   -Wsign-compare -Wno-cast-qual -Wno-error -D_LOOSE_KERNEL_NAMES -D__KERNEL__ -DMODULE  -mcmodel=kernel -DNTRM -D_GNU_SOURCE -D_LOOSE_KERNEL_NAMES -D__KERNEL__ -DMODULE  -DNV_MAJOR_VERSION=1 -DNV_MINOR_VERSION=0 -DNV_PATCHLEVEL=7174  -DNV_UNIX  -DNV_LINUX  -DNV_INT64_OK  -DNVCPU_X86_64  -DNV_64_BITS    -UDEBUG -U_DEBUG -DNDEBUG -DNV_SIGNAL_STRUCT_RLIM -DNV_REMAP_PFN_RANGE_PRESENT -DNV_CHANGE_PAGE_ATTR_PRESENT -DNV_PCI_DISABLE_DEVICE_PRESENT -DNV_CLASS_SIMPLE_CREATE_PRESENT -DNV_PCI_GET_CLASS_PRESENT -DNV_VMAP_4_PRESENT  -DMODULE -DKBUILD_BASENAME=nv -DKBUILD_MODNAME=nvidia -c -o /var/tmp/portage/nvidia-kernel-1.0.7174/work/NVIDIA-Linux-x86_64-1.0-7174-pkg2/usr/src/nv/.tmp_nv.o /var/tmp/portage/nvidia-kernel-1.0.7174/work/NVIDIA-Linux-x86_64-1.0-7174-pkg2/usr/src/nv/nv.c
In file included from include/linux/sched.h:15,
                 from include/linux/module.h:10,
                 from /var/tmp/portage/nvidia-kernel-1.0.7174/work/NVIDIA-Linux-x86_64-1.0-7174-pkg2/usr/src/nv/nv-linux.h:46,
                 from /var/tmp/portage/nvidia-kernel-1.0.7174/work/NVIDIA-Linux-x86_64-1.0-7174-pkg2/usr/src/nv/nv.c:14:
include/linux/cpumask.h: In function `__first_cpu':
include/linux/cpumask.h:211: warning: signed and unsigned type in conditional expression
include/linux/cpumask.h: In function `__next_cpu':
include/linux/cpumask.h:217: warning: signed and unsigned type in conditional expression
  cc -Wp,-MD,/var/tmp/portage/nvidia-kernel-1.0.7174/work/NVIDIA-Linux-x86_64-1.0-7174-pkg2/usr/src/nv/.nv-vm.o.d -nostdinc -isystem /usr/lib/gcc/x86_64-pc-linux-gnu/3.4.3/include -D__KERNEL__ -Iinclude  -Wall -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -ffreestanding -O2     -fomit-frame-pointer -march=k8 -mno-red-zone -mcmodel=kernel -pipe -fno-reorder-blocks    -Wno-sign-compare -fno-asynchronous-unwind-tables -funit-at-a-time -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -Wdeclaration-after-statement  -I/var/tmp/portage/nvidia-kernel-1.0.7174/work/NVIDIA-Linux-x86_64-1.0-7174-pkg2/usr/src/nv -Wall -Wimplicit -Wreturn-type -Wswitch -Wformat -Wchar-subscripts -Wparentheses -Wno-multichar  -Werror -O -fno-common -mno-red-zone -MD   -Wsign-compare -Wno-cast-qual -Wno-error -D_LOOSE_KERNEL_NAMES -D__KERNEL__ -DMODULE  -mcmodel=kernel -DNTRM -D_GNU_SOURCE -D_LOOSE_KERNEL_NAMES -D__KERNEL__ -DMODULE  -DNV_MAJOR_VERSION=1 -DNV_MINOR_VERSION=0 -DNV_PATCHLEVEL=7174  -DNV_UNIX  -DNV_LINUX  -DNV_INT64_OK  -DNVCPU_X86_64  -DNV_64_BITS    -UDEBUG -U_DEBUG -DNDEBUG -DNV_SIGNAL_STRUCT_RLIM -DNV_REMAP_PFN_RANGE_PRESENT -DNV_CHANGE_PAGE_ATTR_PRESENT -DNV_PCI_DISABLE_DEVICE_PRESENT -DNV_CLASS_SIMPLE_CREATE_PRESENT -DNV_PCI_GET_CLASS_PRESENT -DNV_VMAP_4_PRESENT  -DMODULE -DKBUILD_BASENAME=nv_vm -DKBUILD_MODNAME=nvidia -c -o /var/tmp/portage/nvidia-kernel-1.0.7174/work/NVIDIA-Linux-x86_64-1.0-7174-pkg2/usr/src/nv/.tmp_nv-vm.o /var/tmp/portage/nvidia-kernel-1.0.7174/work/NVIDIA-Linux-x86_64-1.0-7174-pkg2/usr/src/nv/nv-vm.c
In file included from include/linux/sched.h:15,
                 from include/linux/module.h:10,
                 from /var/tmp/portage/nvidia-kernel-1.0.7174/work/NVIDIA-Linux-x86_64-1.0-7174-pkg2/usr/src/nv/nv-linux.h:46,
                 from /var/tmp/portage/nvidia-kernel-1.0.7174/work/NVIDIA-Linux-x86_64-1.0-7174-pkg2/usr/src/nv/nv-vm.c:14:
include/linux/cpumask.h: In function `__first_cpu':
include/linux/cpumask.h:211: warning: signed and unsigned type in conditional expression
include/linux/cpumask.h: In function `__next_cpu':
include/linux/cpumask.h:217: warning: signed and unsigned type in conditional expression
  cc -Wp,-MD,/var/tmp/portage/nvidia-kernel-1.0.7174/work/NVIDIA-Linux-x86_64-1.0-7174-pkg2/usr/src/nv/.os-agp.o.d -nostdinc -isystem /usr/lib/gcc/x86_64-pc-linux-gnu/3.4.3/include -D__KERNEL__ -Iinclude  -Wall -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -ffreestanding -O2     -fomit-frame-pointer -march=k8 -mno-red-zone -mcmodel=kernel -pipe -fno-reorder-blocks    -Wno-sign-compare -fno-asynchronous-unwind-tables -funit-at-a-time -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -Wdeclaration-after-statement  -I/var/tmp/portage/nvidia-kernel-1.0.7174/work/NVIDIA-Linux-x86_64-1.0-7174-pkg2/usr/src/nv -Wall -Wimplicit -Wreturn-type -Wswitch -Wformat -Wchar-subscripts -Wparentheses -Wno-multichar  -Werror -O -fno-common -mno-red-zone -MD   -Wsign-compare -Wno-cast-qual -Wno-error -D_LOOSE_KERNEL_NAMES -D__KERNEL__ -DMODULE  -mcmodel=kernel -DNTRM -D_GNU_SOURCE -D_LOOSE_KERNEL_NAMES -D__KERNEL__ -DMODULE  -DNV_MAJOR_VERSION=1 -DNV_MINOR_VERSION=0 -DNV_PATCHLEVEL=7174  -DNV_UNIX  -DNV_LINUX  -DNV_INT64_OK  -DNVCPU_X86_64  -DNV_64_BITS    -UDEBUG -U_DEBUG -DNDEBUG -DNV_SIGNAL_STRUCT_RLIM -DNV_REMAP_PFN_RANGE_PRESENT -DNV_CHANGE_PAGE_ATTR_PRESENT -DNV_PCI_DISABLE_DEVICE_PRESENT -DNV_CLASS_SIMPLE_CREATE_PRESENT -DNV_PCI_GET_CLASS_PRESENT -DNV_VMAP_4_PRESENT  -DMODULE -DKBUILD_BASENAME=os_agp -DKBUILD_MODNAME=nvidia -c -o /var/tmp/portage/nvidia-kernel-1.0.7174/work/NVIDIA-Linux-x86_64-1.0-7174-pkg2/usr/src/nv/.tmp_os-agp.o /var/tmp/portage/nvidia-kernel-1.0.7174/work/NVIDIA-Linux-x86_64-1.0-7174-pkg2/usr/src/nv/os-agp.c
In file included from include/linux/sched.h:15,
                 from include/linux/module.h:10,
                 from /var/tmp/portage/nvidia-kernel-1.0.7174/work/NVIDIA-Linux-x86_64-1.0-7174-pkg2/usr/src/nv/nv-linux.h:46,
                 from /var/tmp/portage/nvidia-kernel-1.0.7174/work/NVIDIA-Linux-x86_64-1.0-7174-pkg2/usr/src/nv/os-agp.c:24:
include/linux/cpumask.h: In function `__first_cpu':
include/linux/cpumask.h:211: warning: signed and unsigned type in conditional expression
include/linux/cpumask.h: In function `__next_cpu':
include/linux/cpumask.h:217: warning: signed and unsigned type in conditional expression
  cc -Wp,-MD,/var/tmp/portage/nvidia-kernel-1.0.7174/work/NVIDIA-Linux-x86_64-1.0-7174-pkg2/usr/src/nv/.os-interface.o.d -nostdinc -isystem /usr/lib/gcc/x86_64-pc-linux-gnu/3.4.3/include -D__KERNEL__ -Iinclude  -Wall -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -ffreestanding -O2     -fomit-frame-pointer -march=k8 -mno-red-zone -mcmodel=kernel -pipe -fno-reorder-blocks    -Wno-sign-compare -fno-asynchronous-unwind-tables -funit-at-a-time -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -Wdeclaration-after-statement  -I/var/tmp/portage/nvidia-kernel-1.0.7174/work/NVIDIA-Linux-x86_64-1.0-7174-pkg2/usr/src/nv -Wall -Wimplicit -Wreturn-type -Wswitch -Wformat -Wchar-subscripts -Wparentheses -Wno-multichar  -Werror -O -fno-common -mno-red-zone -MD   -Wsign-compare -Wno-cast-qual -Wno-error -D_LOOSE_KERNEL_NAMES -D__KERNEL__ -DMODULE  -mcmodel=kernel -DNTRM -D_GNU_SOURCE -D_LOOSE_KERNEL_NAMES -D__KERNEL__ -DMODULE  -DNV_MAJOR_VERSION=1 -DNV_MINOR_VERSION=0 -DNV_PATCHLEVEL=7174  -DNV_UNIX  -DNV_LINUX  -DNV_INT64_OK  -DNVCPU_X86_64  -DNV_64_BITS    -UDEBUG -U_DEBUG -DNDEBUG -DNV_SIGNAL_STRUCT_RLIM -DNV_REMAP_PFN_RANGE_PRESENT -DNV_CHANGE_PAGE_ATTR_PRESENT -DNV_PCI_DISABLE_DEVICE_PRESENT -DNV_CLASS_SIMPLE_CREATE_PRESENT -DNV_PCI_GET_CLASS_PRESENT -DNV_VMAP_4_PRESENT  -DMODULE -DKBUILD_BASENAME=os_interface -DKBUILD_MODNAME=nvidia -c -o /var/tmp/portage/nvidia-kernel-1.0.7174/work/NVIDIA-Linux-x86_64-1.0-7174-pkg2/usr/src/nv/.tmp_os-interface.o /var/tmp/portage/nvidia-kernel-1.0.7174/work/NVIDIA-Linux-x86_64-1.0-7174-pkg2/usr/src/nv/os-interface.c
In file included from include/linux/sched.h:15,
                 from include/linux/module.h:10,
                 from /var/tmp/portage/nvidia-kernel-1.0.7174/work/NVIDIA-Linux-x86_64-1.0-7174-pkg2/usr/src/nv/nv-linux.h:46,
                 from /var/tmp/portage/nvidia-kernel-1.0.7174/work/NVIDIA-Linux-x86_64-1.0-7174-pkg2/usr/src/nv/os-interface.c:26:
include/linux/cpumask.h: In function `__first_cpu':
include/linux/cpumask.h:211: warning: signed and unsigned type in conditional expression
include/linux/cpumask.h: In function `__next_cpu':
include/linux/cpumask.h:217: warning: signed and unsigned type in conditional expression
  cc -Wp,-MD,/var/tmp/portage/nvidia-kernel-1.0.7174/work/NVIDIA-Linux-x86_64-1.0-7174-pkg2/usr/src/nv/.os-registry.o.d -nostdinc -isystem /usr/lib/gcc/x86_64-pc-linux-gnu/3.4.3/include -D__KERNEL__ -Iinclude  -Wall -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -ffreestanding -O2     -fomit-frame-pointer -march=k8 -mno-red-zone -mcmodel=kernel -pipe -fno-reorder-blocks    -Wno-sign-compare -fno-asynchronous-unwind-tables -funit-at-a-time -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -Wdeclaration-after-statement  -I/var/tmp/portage/nvidia-kernel-1.0.7174/work/NVIDIA-Linux-x86_64-1.0-7174-pkg2/usr/src/nv -Wall -Wimplicit -Wreturn-type -Wswitch -Wformat -Wchar-subscripts -Wparentheses -Wno-multichar  -Werror -O -fno-common -mno-red-zone -MD   -Wsign-compare -Wno-cast-qual -Wno-error -D_LOOSE_KERNEL_NAMES -D__KERNEL__ -DMODULE  -mcmodel=kernel -DNTRM -D_GNU_SOURCE -D_LOOSE_KERNEL_NAMES -D__KERNEL__ -DMODULE  -DNV_MAJOR_VERSION=1 -DNV_MINOR_VERSION=0 -DNV_PATCHLEVEL=7174  -DNV_UNIX  -DNV_LINUX  -DNV_INT64_OK  -DNVCPU_X86_64  -DNV_64_BITS    -UDEBUG -U_DEBUG -DNDEBUG -DNV_SIGNAL_STRUCT_RLIM -DNV_REMAP_PFN_RANGE_PRESENT -DNV_CHANGE_PAGE_ATTR_PRESENT -DNV_PCI_DISABLE_DEVICE_PRESENT -DNV_CLASS_SIMPLE_CREATE_PRESENT -DNV_PCI_GET_CLASS_PRESENT -DNV_VMAP_4_PRESENT  -DMODULE -DKBUILD_BASENAME=os_registry -DKBUILD_MODNAME=nvidia -c -o /var/tmp/portage/nvidia-kernel-1.0.7174/work/NVIDIA-Linux-x86_64-1.0-7174-pkg2/usr/src/nv/.tmp_os-registry.o /var/tmp/portage/nvidia-kernel-1.0.7174/work/NVIDIA-Linux-x86_64-1.0-7174-pkg2/usr/src/nv/os-registry.c
In file included from include/linux/sched.h:15,
                 from include/linux/module.h:10,
                 from /var/tmp/portage/nvidia-kernel-1.0.7174/work/NVIDIA-Linux-x86_64-1.0-7174-pkg2/usr/src/nv/nv-linux.h:46,
                 from /var/tmp/portage/nvidia-kernel-1.0.7174/work/NVIDIA-Linux-x86_64-1.0-7174-pkg2/usr/src/nv/os-registry.c:14:
include/linux/cpumask.h: In function `__first_cpu':
include/linux/cpumask.h:211: warning: signed and unsigned type in conditional expression
include/linux/cpumask.h: In function `__next_cpu':
include/linux/cpumask.h:217: warning: signed and unsigned type in conditional expression
  ld -m elf_x86_64  -r -o /var/tmp/portage/nvidia-kernel-1.0.7174/work/NVIDIA-Linux-x86_64-1.0-7174-pkg2/usr/src/nv/nvidia.o /var/tmp/portage/nvidia-kernel-1.0.7174/work/NVIDIA-Linux-x86_64-1.0-7174-pkg2/usr/src/nv/nv-kernel.o /var/tmp/portage/nvidia-kernel-1.0.7174/work/NVIDIA-Linux-x86_64-1.0-7174-pkg2/usr/src/nv/nv.o /var/tmp/portage/nvidia-kernel-1.0.7174/work/NVIDIA-Linux-x86_64-1.0-7174-pkg2/usr/src/nv/nv-vm.o /var/tmp/portage/nvidia-kernel-1.0.7174/work/NVIDIA-Linux-x86_64-1.0-7174-pkg2/usr/src/nv/os-agp.o /var/tmp/portage/nvidia-kernel-1.0.7174/work/NVIDIA-Linux-x86_64-1.0-7174-pkg2/usr/src/nv/os-interface.o /var/tmp/portage/nvidia-kernel-1.0.7174/work/NVIDIA-Linux-x86_64-1.0-7174-pkg2/usr/src/nv/os-registry.o
  Building modules, stage 2.
make -rR -f /usr/src/linux-2.6.11-gentoo-r3/scripts/Makefile.modpost
  scripts/mod/modpost -m  -i /usr/src/linux-2.6.11-gentoo-r3/Module.symvers vmlinux /var/tmp/portage/nvidia-kernel-1.0.7174/work/NVIDIA-Linux-x86_64-1.0-7174-pkg2/usr/src/nv/nvidia.o
  cc -Wp,-MD,/var/tmp/portage/nvidia-kernel-1.0.7174/work/NVIDIA-Linux-x86_64-1.0-7174-pkg2/usr/src/nv/.nvidia.mod.o.d -nostdinc -isystem /usr/lib/gcc/x86_64-pc-linux-gnu/3.4.3/include -D__KERNEL__ -Iinclude  -Wall -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -ffreestanding -O2     -fomit-frame-pointer -march=k8 -mno-red-zone -mcmodel=kernel -pipe -fno-reorder-blocks    -Wno-sign-compare -fno-asynchronous-unwind-tables -funit-at-a-time -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -Wdeclaration-after-statement     -DKBUILD_BASENAME=nvidia -DKBUILD_MODNAME=nvidia -DMODULE -c -o /var/tmp/portage/nvidia-kernel-1.0.7174/work/NVIDIA-Linux-x86_64-1.0-7174-pkg2/usr/src/nv/nvidia.mod.o /var/tmp/portage/nvidia-kernel-1.0.7174/work/NVIDIA-Linux-x86_64-1.0-7174-pkg2/usr/src/nv/nvidia.mod.c
  ld -m elf_x86_64 -r -o /var/tmp/portage/nvidia-kernel-1.0.7174/work/NVIDIA-Linux-x86_64-1.0-7174-pkg2/usr/src/nv/nvidia.ko /var/tmp/portage/nvidia-kernel-1.0.7174/work/NVIDIA-Linux-x86_64-1.0-7174-pkg2/usr/src/nv/nvidia.o /var/tmp/portage/nvidia-kernel-1.0.7174/work/NVIDIA-Linux-x86_64-1.0-7174-pkg2/usr/src/nv/nvidia.mod.o
NVIDIA: left KBUILD.
>>> Test phase [not enabled]: media-video/nvidia-kernel-1.0.7174

>>> Install nvidia-kernel-1.0.7174 into /var/tmp/portage/nvidia-kernel-1.0.7174/image/ category media-video
 * Installing nvidia module
man:
>>> Completed installing nvidia-kernel-1.0.7174 into /var/tmp/portage/nvidia-kernel-1.0.7174/image/

>>> Merging media-video/nvidia-kernel-1.0.7174 to /
--- /etc/
--- /etc/modules.d/
>>> /etc/modules.d/nvidia
--- /lib/
--- /lib/modules/
--- /lib/modules/2.6.11-gentoo-r3/
--- /lib/modules/2.6.11-gentoo-r3/video/
>>> /lib/modules/2.6.11-gentoo-r3/video/nvidia.ko
--- /usr/
--- /usr/share/
--- /usr/share/doc/
--- /usr/share/doc/nvidia-kernel-1.0.7174/
>>> /usr/share/doc/nvidia-kernel-1.0.7174/README.gz
--- /sbin/
>>> /sbin/NVmakedevices.sh
>>> Safely unmerging already-installed instance...
--- !mtime obj /usr/share/doc/nvidia-kernel-1.0.7174/README.gz
--- !mtime obj /sbin/NVmakedevices.sh
--- cfgpro obj /lib/modules/2.6.11-gentoo-r3/video/nvidia.ko
--- cfgpro dir /lib/modules/2.6.11-gentoo-r3/video
--- cfgpro dir /lib/modules/2.6.11-gentoo-r3
--- cfgpro obj /etc/modules.d/nvidia
--- cfgpro dir /etc/modules.d
--- !empty dir /usr/share/doc/nvidia-kernel-1.0.7174
--- !empty dir /usr/share/doc
--- !empty dir /usr/share
--- !empty dir /usr
--- !empty dir /sbin
--- !empty dir /lib/modules
--- !empty dir /lib
--- !empty dir /etc
>>> original instance of package unmerged safely.
 * Updating module dependencies for 2.6.11-gentoo-r3... ok
 * Updating modules.conf... ok
 * If you would like to load this module automatically upon boot
 * please type the following as root:
 *     # echo "nvidia" >> /etc/modules.autoload.d/kernel-2.6
 *
>>> Regenerating /etc/ld.so.cache...
 * Caching service dependencies...
>>> media-video/nvidia-kernel-1.0.7174 merged.

>>> clean: No packages selected for removal.

>>> Auto-cleaning packages ...

>>> No outdated packages were found on your system.


 * GNU info directory index is up-to-date.
 * IMPORTANT: 1 config files in /etc need updating.
 * Type emerge --help config to learn how to update config files.
Code:

tux root # emerge nvidia-glx
Calculating dependencies   - \ ...done!
>>> emerge (1 of 1) media-video/nvidia-glx-1.0.7174-r1 to /
>>> md5 src_uri ;-) NVIDIA-Linux-x86_64-1.0-7174-pkg2.run
>>> Unpacking source...
Creating directory NVIDIA-Linux-x86_64-1.0-7174-pkg2
Verifying archive integrity... OK
Uncompressing NVIDIA Accelerated Graphics Driver for Linux-x86_64 1.0-7174..........................................................................
 * Applying NVIDIA_glx-1.0.6629-makefile.patch ... ok
 * Applying NVIDIA_glx-1.0.6629-defines.patch ... ok
 * Applying NVIDIA_glx-1.0.6629-glheader.patch ... ok
>>> Source unpacked.
Gentoo Linux does not use nvidia-installer.
>>> Test phase [not enabled]: media-video/nvidia-glx-1.0.7174-r1

>>> Install nvidia-glx-1.0.7174-r1 into /var/tmp/portage/nvidia-glx-1.0.7174-r1/image/ category media-video
man:
making executable: /usr/lib64/libXvMCNVIDIA.so.1.0.7174
>>> Completed installing nvidia-glx-1.0.7174-r1 into /var/tmp/portage/nvidia-glx-1.0.7174-r1/image/

>>> Merging media-video/nvidia-glx-1.0.7174-r1 to /
--- /usr/
--- /usr/bin/
>>> /usr/bin/nvidia-bug-report.sh
--- /usr/lib32/
--- /usr/lib32/tls/
>>> /usr/lib32/tls/.keep
--- /usr/lib32/modules/
>>> /usr/lib32/modules/drivers/
--- /usr/lib32/opengl/
--- /usr/lib32/opengl/nvidia/
--- /usr/lib32/opengl/nvidia/lib/
>>> /usr/lib32/opengl/nvidia/lib/libGL.so.1 -> libGL.so.1.0.7174
>>> /usr/lib32/opengl/nvidia/lib/libnvidia-tls.so.1 -> libnvidia-tls.so.1.0.7174
>>> /usr/lib32/opengl/nvidia/lib/libnvidia-tls.so.1.0.7174
>>> /usr/lib32/opengl/nvidia/lib/libGL.so.1.0.7174
>>> /usr/lib32/opengl/nvidia/lib/libnvidia-tls.so -> libnvidia-tls.so.1.0.7174
>>> /usr/lib32/opengl/nvidia/lib/libGL.la
>>> /usr/lib32/opengl/nvidia/lib/libGL.so -> libGL.so.1.0.7174
>>> /usr/lib32/opengl/nvidia/lib/libGLcore.so -> libGLcore.so.1.0.7174
>>> /usr/lib32/opengl/nvidia/lib/libGLcore.so.1 -> libGLcore.so.1.0.7174
>>> /usr/lib32/opengl/nvidia/lib/libGLcore.so.1.0.7174
--- /usr/lib32/opengl/nvidia/tls/
>>> /usr/lib32/opengl/nvidia/tls/libnvidia-tls.so.1 -> libnvidia-tls.so.1.0.7174
>>> /usr/lib32/opengl/nvidia/tls/libnvidia-tls.so.1.0.7174
>>> /usr/lib32/opengl/nvidia/tls/libnvidia-tls.so -> libnvidia-tls.so.1.0.7174
>>> /usr/lib32/opengl/nvidia/extensions/
--- /usr/lib32/opengl/nvidia/include/
>>> /usr/lib32/opengl/nvidia/include/glxtokens.h
>>> /usr/lib32/opengl/nvidia/include/gl.h
>>> /usr/lib32/opengl/nvidia/include/glx.h
>>> /usr/lib32/opengl/nvidia/include/glext.h
--- /usr/lib64/
--- /usr/lib64/tls/
>>> /usr/lib64/tls/.keep
>>> /usr/lib64/libXvMCNVIDIA.so.1.0.7174
--- /usr/lib64/modules/
--- /usr/lib64/modules/drivers/
>>> /usr/lib64/modules/drivers/nvidia_drv.o
>>> /usr/lib64/modules/drivers/nvidia_drv.so
--- /usr/lib64/opengl/
--- /usr/lib64/opengl/nvidia/
>>> /usr/lib64/opengl/nvidia/lib/
>>> /usr/lib64/opengl/nvidia/lib/libnvidia-tls.so.1.0.7174
>>> /usr/lib64/opengl/nvidia/lib/libGL.so.1.0.7174
>>> /usr/lib64/opengl/nvidia/lib/libnvidia-tls.so -> libnvidia-tls.so.1.0.7174
>>> /usr/lib64/opengl/nvidia/lib/libGL.la
>>> /usr/lib64/opengl/nvidia/lib/libGL.so -> libGL.so.1.0.7174
>>> /usr/lib64/opengl/nvidia/lib/libGLcore.so.1.0.7174
>>> /usr/lib64/opengl/nvidia/tls/
>>> /usr/lib64/opengl/nvidia/tls/libnvidia-tls.so.1.0.7174
>>> /usr/lib64/opengl/nvidia/tls/libnvidia-tls.so -> libnvidia-tls.so.1.0.7174
>>> /usr/lib64/opengl/nvidia/extensions/
>>> /usr/lib64/opengl/nvidia/extensions/libglx.so
>>> /usr/lib64/opengl/nvidia/include/
>>> /usr/lib64/opengl/nvidia/include/glxtokens.h
>>> /usr/lib64/opengl/nvidia/include/gl.h
>>> /usr/lib64/opengl/nvidia/include/glx.h
>>> /usr/lib64/opengl/nvidia/include/glext.h
>>> /usr/lib64/libXvMCNVIDIA.a
--- /usr/share/
--- /usr/share/doc/
--- /usr/share/doc/nvidia-glx-1.0.7174-r1/
>>> /usr/share/doc/nvidia-glx-1.0.7174-r1/README.gz
>>> /usr/share/doc/nvidia-glx-1.0.7174-r1/XF86Config.sample.gz
>>> /usr/share/doc/nvidia-glx-1.0.7174-r1/NVIDIA_Changelog.gz
--- /usr/libexec/
--- /usr/libexec/misc/
>>> /usr/libexec/misc/tls_test_dso.so
>>> /usr/libexec/misc/tls_test
>>> /usr/lib64/opengl/nvidia/lib/libGL.so.1 -> libGL.so.1.0.7174
>>> /usr/lib64/opengl/nvidia/lib/libnvidia-tls.so.1 -> libnvidia-tls.so.1.0.7174
>>> /usr/lib64/opengl/nvidia/lib/libGLcore.so -> libGLcore.so.1.0.7174
>>> /usr/lib64/opengl/nvidia/lib/libGLcore.so.1 -> libGLcore.so.1.0.7174
>>> /usr/lib64/opengl/nvidia/tls/libnvidia-tls.so.1 -> libnvidia-tls.so.1.0.7174
>>> Safely unmerging already-installed instance...
--- !mtime obj /usr/share/doc/nvidia-glx-1.0.7174-r1/XF86Config.sample.gz
--- !mtime obj /usr/share/doc/nvidia-glx-1.0.7174-r1/README.gz
--- !mtime obj /usr/share/doc/nvidia-glx-1.0.7174-r1/NVIDIA_Changelog.gz
--- !mtime obj /usr/libexec/misc/tls_test_dso.so
--- !mtime obj /usr/libexec/misc/tls_test
--- !mtime obj /usr/lib64/tls/.keep
--- !mtime obj /usr/lib64/opengl/nvidia/tls/libnvidia-tls.so.1.0.7174
--- !mtime obj /usr/lib64/opengl/nvidia/lib/libnvidia-tls.so.1.0.7174
--- !mtime obj /usr/lib64/opengl/nvidia/lib/libGLcore.so.1.0.7174
--- !mtime obj /usr/lib64/opengl/nvidia/lib/libGL.so.1.0.7174
--- !mtime obj /usr/lib64/opengl/nvidia/lib/libGL.la
--- !mtime obj /usr/lib64/opengl/nvidia/include/glxtokens.h
--- !mtime obj /usr/lib64/opengl/nvidia/include/glx.h
--- !mtime obj /usr/lib64/opengl/nvidia/include/glext.h
--- !mtime obj /usr/lib64/opengl/nvidia/include/gl.h
--- !mtime obj /usr/lib64/opengl/nvidia/extensions/libglx.so
--- !mtime obj /usr/lib64/modules/drivers/nvidia_drv.so
--- !mtime obj /usr/lib64/modules/drivers/nvidia_drv.o
--- !mtime obj /usr/lib64/libXvMCNVIDIA.so.1.0.7174
--- !mtime obj /usr/lib64/libXvMCNVIDIA.a
--- !mtime obj /usr/lib32/tls/.keep
--- !mtime obj /usr/lib32/opengl/nvidia/tls/libnvidia-tls.so.1.0.7174
--- !mtime obj /usr/lib32/opengl/nvidia/lib/libnvidia-tls.so.1.0.7174
--- !mtime obj /usr/lib32/opengl/nvidia/lib/libGLcore.so.1.0.7174
--- !mtime obj /usr/lib32/opengl/nvidia/lib/libGL.so.1.0.7174
--- !mtime obj /usr/lib32/opengl/nvidia/lib/libGL.la
--- !mtime obj /usr/lib32/opengl/nvidia/include/glxtokens.h
--- !mtime obj /usr/lib32/opengl/nvidia/include/glx.h
--- !mtime obj /usr/lib32/opengl/nvidia/include/glext.h
--- !mtime obj /usr/lib32/opengl/nvidia/include/gl.h
--- !mtime obj /usr/bin/nvidia-bug-report.sh
<<<        dir /usr/lib32/opengl/nvidia/extensions
<<<        dir /usr/lib32/modules/drivers
--- !empty dir /usr/share/doc/nvidia-glx-1.0.7174-r1
--- !empty dir /usr/share/doc
--- !empty dir /usr/share
--- !empty dir /usr/libexec/misc
--- !empty dir /usr/libexec
--- !empty dir /usr/lib64/tls
--- !empty dir /usr/lib64/opengl/nvidia/tls
--- !empty dir /usr/lib64/opengl/nvidia/lib
--- !empty dir /usr/lib64/opengl/nvidia/include
--- !empty dir /usr/lib64/opengl/nvidia/extensions
--- !empty dir /usr/lib64/opengl/nvidia
--- !empty dir /usr/lib64/opengl
--- !empty dir /usr/lib64/modules/drivers
--- !empty dir /usr/lib64/modules
--- !empty dir /usr/lib64
--- !empty dir /usr/lib32/tls
--- !empty dir /usr/lib32/opengl/nvidia/tls
--- !empty dir /usr/lib32/opengl/nvidia/lib
--- !empty dir /usr/lib32/opengl/nvidia/include
--- !empty dir /usr/lib32/opengl/nvidia
--- !empty dir /usr/lib32/opengl
--- !empty dir /usr/lib32/modules
--- !empty dir /usr/lib32
--- !empty dir /usr/bin
--- !empty dir /usr
--- !targe sym /usr/lib64/opengl/nvidia/tls/libnvidia-tls.so.1
--- !targe sym /usr/lib64/opengl/nvidia/tls/libnvidia-tls.so
--- !targe sym /usr/lib64/opengl/nvidia/lib/libnvidia-tls.so.1
--- !targe sym /usr/lib64/opengl/nvidia/lib/libnvidia-tls.so
--- !targe sym /usr/lib64/opengl/nvidia/lib/libGLcore.so.1
--- !targe sym /usr/lib64/opengl/nvidia/lib/libGLcore.so
--- !targe sym /usr/lib64/opengl/nvidia/lib/libGL.so.1
--- !targe sym /usr/lib64/opengl/nvidia/lib/libGL.so
--- !targe sym /usr/lib32/opengl/nvidia/tls/libnvidia-tls.so.1
--- !targe sym /usr/lib32/opengl/nvidia/tls/libnvidia-tls.so
--- !targe sym /usr/lib32/opengl/nvidia/lib/libnvidia-tls.so.1
--- !targe sym /usr/lib32/opengl/nvidia/lib/libnvidia-tls.so
--- !targe sym /usr/lib32/opengl/nvidia/lib/libGLcore.so.1
--- !targe sym /usr/lib32/opengl/nvidia/lib/libGLcore.so
--- !targe sym /usr/lib32/opengl/nvidia/lib/libGL.so.1
--- !targe sym /usr/lib32/opengl/nvidia/lib/libGL.so
>>> original instance of package unmerged safely.
 * Switching to nvidia OpenGL interface...
>>> Regenerating /etc/ld.so.cache...
 * Caching service dependencies... ok

 * To use the Nvidia GLX, run "opengl-update nvidia"

 * You may also be interested in media-video/nvidia-settings

 * nVidia have requested that any bug reports submitted have the
 * output of /usr/bin/nvidia-bug-report.sh included.
>>> Regenerating /etc/ld.so.cache...
 * Caching service dependencies...
>>> media-video/nvidia-glx-1.0.7174-r1 merged.

>>> clean: No packages selected for removal.

>>> Auto-cleaning packages ...

>>> No outdated packages were found on your system.


 * GNU info directory index is up-to-date.
 * IMPORTANT: 1 config files in /etc need updating.
 * Type emerge --help config to learn how to update config files.
Code:

tux root # modprobe nvidia
FATAL: Error inserting nvidia (/lib/modules/2.6.11-gentoo-r3/video/nvidia.ko): Invalid module format


The thing about the config file in /etc seems to be referring to /etc/nvidia, which is a file that does not exist. Should it? What should it contain?

I doubt that will fix it though. Clearly my nvidia driver is messed up.
Back to top
View user's profile Send private message
i92guboj
Bodhisattva
Bodhisattva


Joined: 30 Nov 2004
Posts: 10306
Location: Córdoba (Spain)

PostPosted: Sun Apr 17, 2005 9:58 pm    Post subject: Reply with quote

You sure that you are using the correct kernel image? I've seen so many similar issues in the past related to this thing. Check that the /boot partition is mounted before you install the kernel with 'make && make install modules_install'.

Just to discard any posibility of this try 'uname -a' and check the compilation time shown, so you can make sure that the kernel image that is currently running is the last that you compiled.

You can try also 'dmesg' just after you do the modprobe, and see if it reports something related to the nvidia driver and the bottom of the output.
_________________
Gentoo Handbook | My website
Back to top
View user's profile Send private message
jtgd
Tux's lil' helper
Tux's lil' helper


Joined: 03 Apr 2005
Posts: 80
Location: Las Vegas

PostPosted: Mon Apr 18, 2005 1:33 am    Post subject: SOLVED Reply with quote

Indeed you were right, 6thpink. Thanks much for the clue.

The handbook seemed to suggest that one should not automount the /boot partition, and sure enough my kernel compiles were pointless, going into the dummy /boot mountpoint directory. Once I mounted /boot, correct behaviour followed.

Your make && make install modules_install line seemed to just make a /boot/vmlinuz file, which does not seem to be involved in booting. But I did the usual genkernel and that worked. At first it generated an unbootable kernel, and I resorted to the install CD, but it was a problem I had previously -- you have to enable low level SCSI for SATA to work.

So I have a KDE screen (after nvidia logo) and I am one happy boy. Thanks to all of you who gave advice.
Back to top
View user's profile Send private message
i92guboj
Bodhisattva
Bodhisattva


Joined: 30 Nov 2004
Posts: 10306
Location: Córdoba (Spain)

PostPosted: Mon Apr 18, 2005 3:17 am    Post subject: Re: SOLVED Reply with quote

jtgd wrote:
Indeed you were right, 6thpink. Thanks much for the clue.

The handbook seemed to suggest that one should not automount the /boot partition, and sure enough my kernel compiles were pointless, going into the dummy /boot mountpoint directory. Once I mounted /boot, correct behaviour followed.

Your make && make install modules_install line seemed to just make a /boot/vmlinuz file, which does not seem to be involved in booting. But I did the usual genkernel and that worked. At first it generated an unbootable kernel, and I resorted to the install CD, but it was a problem I had previously -- you have to enable low level SCSI for SATA to work.

So I have a KDE screen (after nvidia logo) and I am one happy boy. Thanks to all of you who gave advice.

Happy you found the key ;) . Btw, that vmlinuz is a symlink, and point surely to the real kernel file, This is mine:
Code:

# ls -l /boot/vmlinuz
lrwxr-xr-x  1 root root   24 abr 12 11:27 vmlinuz -> vmlinuz-2.6.11-gentoo-r5

So if you dont use the link in your grub.conf you can safely get rid of it if you dont like having that thing around.
_________________
Gentoo Handbook | My website
Back to top
View user's profile Send private message
Maedhros
Bodhisattva
Bodhisattva


Joined: 14 Apr 2004
Posts: 5511
Location: Durham, UK

PostPosted: Tue Sep 20, 2005 5:18 pm    Post subject: Reply with quote

Some consolidation from all the threads I've just seen about this:
  • Make sure that your gcc version hasn't changed between compiling the kernel and nvidia-kernel
  • Make sure the kernel you're compiling against (/usr/src/linux) is the kernel you're actually running
  • If you already have an nvidia module loaded, rmmod it before modprobing the new one
  • When upgrading, explicitly specify nvidia-glx and nvidia-kernel as nvidia-glx won't necessarily update nvidia-kernel if they're both already installed.

_________________
No-one's more important than the earthworm.
Back to top
View user's profile Send private message
i92guboj
Bodhisattva
Bodhisattva


Joined: 30 Nov 2004
Posts: 10306
Location: Córdoba (Spain)

PostPosted: Tue Sep 20, 2005 5:24 pm    Post subject: Reply with quote

Add this: if you have to recompile the kernel due to a gcc version change between the kernel release that you are using and the new nvidia drivers, make sure that /boot is mounted when you install the new kernel. And then reboot and check the kernel date of compilation with uname -a before complaining. This is a frequent issue. :wink:
_________________
Gentoo Handbook | My website
Back to top
View user's profile Send private message
brekehan
n00b
n00b


Joined: 20 Sep 2005
Posts: 3

PostPosted: Tue Sep 20, 2005 11:04 pm    Post subject: RE: nvidia Reply with quote

jtgd wrote:
CyD wrote:
so, you don't get any errors when compiling?

Not really. Plenty of warnings as always, but it completes without an error at the end.

Says something about needing to update a config file in /etc, but I don't know what. I moved /etc/X11/xorg.conf out of the way and recompiled, but it didn't create it and gave same error.
CyD wrote:
and 2.6.11-gentoo-r3 is your current kernel? i mean, it's basically tellin you that the module you have isn't built for your kernel. when emerging nvidia-kernel, does it say it's compiling for the same kernel? 'uname -r' will give you the currently running kernel.

It says "Found sources for kernel version 2.6.11-gentoo-r3..."
uname gives same version.
CyD wrote:
doing a 'ls -l /usr/src' will show you if usr/src/linux is properly linked.

It is. This is a virgin install, there's only ever been this version.


Make sure assign IRQ to VGA is set in BIOS. That took me ten days to figure out.
Back to top
View user's profile Send private message
fatshady
Tux's lil' helper
Tux's lil' helper


Joined: 05 Jul 2003
Posts: 126
Location: Swindon, UK

PostPosted: Mon Oct 10, 2005 8:42 am    Post subject: Reply with quote

I had to remove nvidia framebuffer support from the kernel before I could get the nvidia module loaded.

Dunno if this will help?
_________________
How come monosyllabic has five syllables?
Back to top
View user's profile Send private message
H4wk
n00b
n00b


Joined: 09 Oct 2005
Posts: 16

PostPosted: Mon Oct 10, 2005 8:47 am    Post subject: Reply with quote

i don't know why everyone gives weird solutions.
Looks like he has a non-working config to me.

Please post your xorg.conf (/etc/x11/) and your Xorg.0.log (/var/log/)

The error its giving is that nvidia can't find supporting screen resolutions (probably)
Back to top
View user's profile Send private message
blice
Guru
Guru


Joined: 12 Feb 2005
Posts: 598
Location: D- 26188

PostPosted: Mon Oct 10, 2005 8:56 am    Post subject: Reply with quote

I wonder why nobody did a gentoo-nvidia wiki so far ?

I had some trouble too, searched through dozends of threads and found an answer by browsing the log&man -files ...

So I would do an wiki / howto next weekend (german/english), if there is interesst and maybe someone can help me translating to "correct" english, as my school-english is quite bad :lol:

Greets blice
_________________
Gentoo seit 2004.3
Skype: bodokhan
SecondLife: Bodokhan Fall
Email: blice@gmx.de
Back to top
View user's profile Send private message
i92guboj
Bodhisattva
Bodhisattva


Joined: 30 Nov 2004
Posts: 10306
Location: Córdoba (Spain)

PostPosted: Mon Oct 10, 2005 4:15 pm    Post subject: Reply with quote

H4wk wrote:
i don't know why everyone gives weird solutions.
Looks like he has a non-working config to me.

Please post your xorg.conf (/etc/x11/) and your Xorg.0.log (/var/log/)

The error its giving is that nvidia can't find supporting screen resolutions (probably)


Errr... Did you read the output on the first post? Who's the weird one here?

Code:
(EE) NVIDIA(0): Failed to initialize the NVIDIA kernel module!
 (EE) NVIDIA(0):  *** Aborting ***
 (EE) Screen(s) found, but none have a usable configuration.


Read "Failed to initialize the NVIDIA kernel module!", that is not a screen config issue, neither related to xorg.conf, it is related to xorg not being able to loacate the NVIDIA kernel module, which means that that module is not loaded. So, none of the solutions given here are weird at all.

Enlighten us, why do you think all the people here is wrong? If the kernel module cannot be located, the screen config in xorg.conf does not matter at all.
_________________
Gentoo Handbook | My website
Back to top
View user's profile Send private message
H4wk
n00b
n00b


Joined: 09 Oct 2005
Posts: 16

PostPosted: Mon Oct 10, 2005 5:10 pm    Post subject: Reply with quote

last time i had the nvidia module error, the "failed to initialize" came first, and the reason for failing directly after - exactly as it is now.

Let me try and simulate an nvidia crash and post a part of the log :)

edit: can't simulate a crash (very frustrating - i could always do this in windows)
What i CAN tell you, is that 'cannot initialize' does NOT mean 'cannot find'

The error says: "Hey, i cannot start this up because there's nothing for me to do. I don't have a compatible screen to render on"
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Goto page 1, 2  Next
Page 1 of 2

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum