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

Newegg Daily Deals

Reply
 
Thread Tools
Old 04-21-03, 02:57 AM   #1
mobius
Registered User
 
Join Date: Apr 2003
Posts: 4
Send a message via AIM to mobius
Default cant get it to compile for the life of me

yea, ima noob and have no idea wut im doing, i yanked the rpms for my kernel headers offa the install cd, to no avail, heres the log, anyone else know wut im doing wrong?
btw, im runnning arklinux
Attached Files
File Type: log nvidia-installer.log (5.4 KB, 122 views)
mobius is offline   Reply With Quote
Old 04-21-03, 03:21 AM   #2
LordMorgul
Electrical Engineer
 
LordMorgul's Avatar
 
Join Date: Dec 2002
Location: San Luis Obispo, CA
Posts: 872
Default

ERROR: Unable to load the kernel module 'nvidia.o'. This is most likely
because the kernel module was built using the wrong kernel header files.

This error is telling you that the kernel headers you have installed (that the installer found and built with) are not correct for the kernel you are running. Check your kernel version, and make sure you have the correct kernel sources installed, you should have the same kernel version numbers for the architecture AND the sources rpms you have installed.

list your kernel rpms:
rpm -qa | grep kernel

then verify the same version is reported by:
cat /proc/version

(since I haven't run arklinux I don't know if it uses the proc filesystem, so the last command might not work)

If this is correct then you may have linking problems to your current source headers. Do you have more than one kernel source installed? That can complicate things slightly.

If the kernel sources are not properly linked you can either endeavor to fix them or build the drivers by removing the tarballs from the installer and specifying which sources to use in the makefile, this is complicated if you don't know what I'm saying, and easy if you do. Instructions should be found in the 43.49 main thread.
LordMorgul is offline   Reply With Quote
Old 04-21-03, 03:38 AM   #3
mobius
Registered User
 
Join Date: Apr 2003
Posts: 4
Send a message via AIM to mobius
Default

[root@localhost root]# rpm -qa|grep kernel
kernel-2.4.21-0.pre5.2ark
kernel-source-2.4.21-0.pre5.2ark
[root@localhost root]# cat /proc/version
Linux version 2.4.21-0.pre5.2ark (root@hank.piffio.homelinux.org) (gcc version 3.2.2 20030217 (Ark Linux 1.0 3.2.2-2ark)) #1 Sat Mar 8 04:37:52 UTC 2003

ok, verified, wut now? o.O?
mobius is offline   Reply With Quote
Old 04-21-03, 03:51 AM   #4
LordMorgul
Electrical Engineer
 
LordMorgul's Avatar
 
Join Date: Dec 2002
Location: San Luis Obispo, CA
Posts: 872
Default

The module appears to build correctly for your architecture and kernel, I don't see the problem with building it.

Did you edit your XFree86 config file to load the driver on startup as described in the nvidia readme posted with the installer? And then reboot the machine to see the module load on startup?

file:
/etc/X11/XF86Config (XFree 4.2 and up)

or perhaps:
/etc/X11/XF86Config-4 (XFree 4.0 and up some if it was upgraded from older version)

XFree version from the command:
XFree86 -version

The edits for the file are described in the readme, comment out 'dri' add 'glx' in modules section, then change driver 'nv' to 'nvidia' in device section.

(assuming you're using a graphical login it is necessary to telinit 3;telinit 5 at least to verify loading fails, or reboot completely)

If you did edit the file, and the module fails to load, check the XFree log file at:
/var/log/XFree86.0.log
/var/log/XFree86.setup.log
LordMorgul is offline   Reply With Quote
Old 04-21-03, 09:12 AM   #5
bwkaz
Registered User
 
Join Date: Sep 2002
Posts: 2,262
Default

The problem here is that there are unresolved symbols in the nvidia.o kernel module. Namely _mmx_memcpy and irq_stat_R3gig_5a2eb425.

Do you have a config file for your running kernel? Some distros put it in /boot, so you might start by looking there. If you can find it, then copy it to /lib/modules/$(uname -r)/build/.config, then cd into /lib/modules/$(uname -r)/build and run make clean oldconfig dep, and try the installer again.

The _mmx_memcpy especially, makes me think that your kernel sources are currently configured to enable MMX, but your running kernel was not configured that way. irq_stat may be similar; I don't really know what that function is though.
__________________
Registered Linux User #219692
bwkaz is offline   Reply With Quote
Old 04-21-03, 03:08 PM   #6
mobius
Registered User
 
Join Date: Apr 2003
Posts: 4
Send a message via AIM to mobius
Default

ok, as i mentioned, im a linux noob, your post made No sense to me even after thumbing thru some reference material i have.... plz explain

Edit: and to the previous post, yea, i know wut to do with xfree86.. since im new to this i read ALL readmes ect,ect,...its just that it never got to that point...

Last edited by mobius; 04-21-03 at 03:12 PM.
mobius is offline   Reply With Quote
Old 04-21-03, 05:58 PM   #7
bwkaz
Registered User
 
Join Date: Sep 2002
Posts: 2,262
Default

Hmm, OK... What's in your /boot directory, first of all? ls /boot and post the output.
__________________
Registered Linux User #219692
bwkaz is offline   Reply With Quote
Old 04-22-03, 03:19 AM   #8
mobius
Registered User
 
Join Date: Apr 2003
Posts: 4
Send a message via AIM to mobius
Default

sorry about the wait..
here it is

[root@localhost root]# ls /boot
System.map kernel.h
System.map-2.4.21-0.pre5.2ark module-info
autoconf.h module-info-2.4.21-0.pre5.2ark
autoconf.h-2.4.21-0.pre5.2ark version.h
config version.h-2.4.21-0.pre5.2ark
config-2.4.21-0.pre5.2ark vmlinuz
grub vmlinuz-2.4.21-0.pre5.2ark
initrd-2.4.21-0.pre5.2ark.img
mobius is offline   Reply With Quote

Old 04-22-03, 09:41 AM   #9
bwkaz
Registered User
 
Join Date: Sep 2002
Posts: 2,262
Default

All right, do a cp /boot/config-2.4.21-0.pre5.2ark /lib/modules/$(uname -r)/build/.config, then do a cd /lib/modules/$(uname -r)/build/ && make clean oldconfig dep. Then try the installer again.
__________________
Registered Linux User #219692
bwkaz is offline   Reply With Quote
Old 06-15-03, 08:02 PM   #10
lolo
Registered User
 
Join Date: Jun 2003
Posts: 2
Default

Hi,

I'm in the same situation (newbie, Arklinux, same errors, same symbols), I tried the commands you showed before, and I keep having the same issues.

Also, I can't get the installer to succeed if I don't use the --kernel= or --kernel-include-path= options.

Would you happen to have any other hint?

Thanks for your time
-lolo
lolo is offline   Reply With Quote
Old 06-16-03, 10:04 PM   #11
bwkaz
Registered User
 
Join Date: Sep 2002
Posts: 2,262
Default

The symbols are mmx_memcpy and irq_stat, right?

If so, I don't suppose you feel up to compiling one of the kernels off www.kernel.org, do you? That would (hopefully) work better; I'm not quite sure what Arch/Ark/however they spell it () did to their kernel or sources.
__________________
Registered Linux User #219692
bwkaz is offline   Reply With Quote
Old 06-17-03, 08:04 PM   #12
lolo
Registered User
 
Join Date: Jun 2003
Posts: 2
Red face

Hi,

Thanks for the answer.
You're right about the symbols, these are the very same ones.

As for compiling a kernel, well that's what I was trying to avoid by installing the Arklinux distro,
but I guess I cannot ask an alpha version to be perfect. I'm afraid I'll have to do just what you suggest, I don't know how many days it's gonna take me to succeed. I just hope it's not going to screw up everything I maned to configure so far.

Wish me good luck ( )
-Lolo
lolo 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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Legit Half Life 3 concept arts leaked AthlonXP1800 Gaming Central 5 06-29-12 04:27 AM
For scientists seeking extraterrestrial life, Kepler probe is step one News Archived News Items 0 06-05-12 07:10 PM
Life on Cloud Kepler: GPUs and Heterogenic Computing News Archived News Items 0 05-23-12 08:40 PM
how to compile for a custum 2.4.18-14 chad5118 NVIDIA Linux 1 10-07-02 07:29 PM
Nvidia drivers won't compile with Slackware 8.0 z28Power NVIDIA Linux 6 09-18-02 07:20 PM

All times are GMT -5. The time now is 02:54 AM.


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