Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Emerge nvidia-kernel failed, what do i do?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
zecora
l33t
l33t


Joined: 17 Aug 2004
Posts: 627
Location: Minneapolis, MN

PostPosted: Sat Mar 19, 2005 4:14 pm    Post subject: Emerge nvidia-kernel failed, what do i do? Reply with quote

Code:
e/nvidia-kernel-1.0.6629-r1/work/NVIDIA-Linux-x86-1.0-6629-pkg1/usr/src/nv/os-agp.
ia-kernel-1.0.6629-r1/work/NVIDIA-Linux-x86-1.0-6629-pkg1/usr/src/nv/os-agp.c
/var/tmp/portage/nvidia-kernel-1.0.6629-r1/work/NVIDIA-Linux-x86-1.0-6629-pkg1/usr
ror: parse error before '*' token
/var/tmp/portage/nvidia-kernel-1.0.6629-r1/work/NVIDIA-Linux-x86-1.0-6629-pkg1/usr
rning: type defaults to `int' in declaration of `drm_agp_p'
/var/tmp/portage/nvidia-kernel-1.0.6629-r1/work/NVIDIA-Linux-x86-1.0-6629-pkg1/usr
rning: data definition has no type or storage class
/var/tmp/portage/nvidia-kernel-1.0.6629-r1/work/NVIDIA-Linux-x86-1.0-6629-pkg1/usr
nction `KernInitAGP':
/var/tmp/portage/nvidia-kernel-1.0.6629-r1/work/NVIDIA-Linux-x86-1.0-6629-pkg1/usr
rning: assignment discards qualifiers from pointer target type
/var/tmp/portage/nvidia-kernel-1.0.6629-r1/work/NVIDIA-Linux-x86-1.0-6629-pkg1/usr
ror: request for member `acquire' in something not a structure or union
/var/tmp/portage/nvidia-kernel-1.0.6629-r1/work/NVIDIA-Linux-x86-1.0-6629-pkg1/usr
rning: `inter_module_put' is deprecated (declared at include/linux/module.h:578)
/var/tmp/portage/nvidia-kernel-1.0.6629-r1/work/NVIDIA-Linux-x86-1.0-6629-pkg1/usr
rror: request for member `copy_info' in something not a structure or union
/var/tmp/portage/nvidia-kernel-1.0.6629-r1/work/NVIDIA-Linux-x86-1.0-6629-pkg1/usr
rror: request for member `enable' in something not a structure or union
/var/tmp/portage/nvidia-kernel-1.0.6629-r1/work/NVIDIA-Linux-x86-1.0-6629-pkg1/usr
rror: request for member `release' in something not a structure or union
/var/tmp/portage/nvidia-kernel-1.0.6629-r1/work/NVIDIA-Linux-x86-1.0-6629-pkg1/usr
arning: `inter_module_put' is deprecated (declared at include/linux/module.h:578)
/var/tmp/portage/nvidia-kernel-1.0.6629-r1/work/NVIDIA-Linux-x86-1.0-6629-pkg1/usr
nction `KernTeardownAGP':
/var/tmp/portage/nvidia-kernel-1.0.6629-r1/work/NVIDIA-Linux-x86-1.0-6629-pkg1/usr
rror: request for member `release' in something not a structure or union
/var/tmp/portage/nvidia-kernel-1.0.6629-r1/work/NVIDIA-Linux-x86-1.0-6629-pkg1/usr
arning: `inter_module_put' is deprecated (declared at include/linux/module.h:578)
/var/tmp/portage/nvidia-kernel-1.0.6629-r1/work/NVIDIA-Linux-x86-1.0-6629-pkg1/usr
nction `KernAllocAGPPages':
/var/tmp/portage/nvidia-kernel-1.0.6629-r1/work/NVIDIA-Linux-x86-1.0-6629-pkg1/usr
rror: request for member `allocate_memory' in something not a structure or union
/var/tmp/portage/nvidia-kernel-1.0.6629-r1/work/NVIDIA-Linux-x86-1.0-6629-pkg1/usr
rror: request for member `bind_memory' in something not a structure or union
/var/tmp/portage/nvidia-kernel-1.0.6629-r1/work/NVIDIA-Linux-x86-1.0-6629-pkg1/usr
rror: request for member `unbind_memory' in something not a structure or union
/var/tmp/portage/nvidia-kernel-1.0.6629-r1/work/NVIDIA-Linux-x86-1.0-6629-pkg1/usr
rror: request for member `free_memory' in something not a structure or union
/var/tmp/portage/nvidia-kernel-1.0.6629-r1/work/NVIDIA-Linux-x86-1.0-6629-pkg1/usr
nction `KernMapAGPPages':
/var/tmp/portage/nvidia-kernel-1.0.6629-r1/work/NVIDIA-Linux-x86-1.0-6629-pkg1/
rror: request for member `unbind_memory' in something not a structure or union
/var/tmp/portage/nvidia-kernel-1.0.6629-r1/work/NVIDIA-Linux-x86-1.0-6629-pkg1/
nction `KernFreeAGPPages':
/var/tmp/portage/nvidia-kernel-1.0.6629-r1/work/NVIDIA-Linux-x86-1.0-6629-pkg1
rror: request for member `unbind_memory' in something not a structure or union
/var/tmp/portage/nvidia-kernel-1.0.6629-r1/work/NVIDIA-Linux-x86-1.0-6629-
rror: request for member `free_memory' in something not a structure or uni
make[3]: *** [/var/tmp/portage/nvidia-kernel-1.0.6629-r1/work/NVIDIA-Linux
s-agp.o] Error 1
make[2]: *** [_module_/var/tmp/portage/nvidia-kernel-1.0.6629-r1/work/NVID
src/nv] Error 2
NVIDIA: left KBUILD.
nvidia.ko failed to build!
make[1]: *** [module] Error 1
make: *** [module] Error 2

!!! ERROR: media-video/nvidia-kernel-1.0.6629-r1 failed.
!!! Function linux-mod_src_compile, Line 417, Exitcode 2
!!! Unable to make                                  IGNORE_CC_MISMATCH=yes
UT=/usr/src/linux clean module.
!!! If you need support, post the topmost build error, NOT this status mes
Back to top
View user's profile Send private message
Thieving Magpie
n00b
n00b


Joined: 30 Apr 2004
Posts: 12

PostPosted: Sat Mar 19, 2005 5:10 pm    Post subject: Reply with quote

I have exactly the same problem.
I tried installing a newer version of nvidia kernel using
Code:
ACCEPT_KEYWORDS="~x86" emerge nvidia-kernel

while that went pretty well I got the next problem when I tried to test-emerge nvidia-glx
Code:
ACCEPT_KEYWORDS="~x86" emerge -p nvidia-glx will give the following output:
These are the packages that I would merge, in order:

Calculating dependencies    ...done!
[blocks B     ] <x11-base/xorg-x11-6.8.0-r4 (is blocking x11-base/opengl-update-2.1.1-r1)
[ebuild     U ] x11-base/opengl-update-2.1.1-r1 [1.8.1]
[ebuild     U ] media-video/nvidia-glx-1.0.7167-r1 [1.0.6629-r1]

Now I am unsure how to proceed.
Does that mean I need to install a newer version of xorg-x11 first?
Back to top
View user's profile Send private message
pilla
Bodhisattva
Bodhisattva


Joined: 07 Aug 2002
Posts: 7731
Location: Underworld

PostPosted: Sat Mar 19, 2005 5:36 pm    Post subject: Reply with quote

moved from IG
_________________
"I'm just very selective about the reality I choose to accept." -- Calvin
Back to top
View user's profile Send private message
Thieving Magpie
n00b
n00b


Joined: 30 Apr 2004
Posts: 12

PostPosted: Sat Mar 19, 2005 11:57 pm    Post subject: Reply with quote

Well, there is a new version of xorg-x11 and I tried to emerge it but it wouldn't let me since the old version was blocking.
So, I unemerged the old-version and then I could emerge the new one.
But sadly, after a while of compiling the system crashed complety. The System hangs with the following screen
Code:
Unable to handle kernel NULL pointer dereference at virtual address 00000002
printing eip:
c042266a
*pde = 00000000
Ooops: 0002 [#16]
PREEMPT SMP
Modules linked in: nvidia
CPU: 0

...and is only rebootable with a hardware reset.
I never experienced something even remotely similar before
One thing I know for sure: Never update a kernel until it's absolutely necessary.
Back to top
View user's profile Send private message
deternal
n00b
n00b


Joined: 01 Aug 2004
Posts: 21
Location: DK

PostPosted: Sun Mar 20, 2005 1:14 am    Post subject: same problem Reply with quote

I got the same problem after updating to the newest kernel - namely 2.6.11-r4.
Obviously I suppose you guys kept your old kernel so you can still boot with that? :P

Untill this is resolved I'll just
Code:
rm /usr/src/linux
cd /usr/src/
ln -s /usr/src/linux-2.6.10-gentoo-r6 linux


This of course solved my problem getting the nvidia-kernel working.

I suggest all of you having problems also file 2 bug-reports with nvidia.
One for it not working with the 2.6.11 kernel and one for the kernel not being open source so we don't need to wait around for them to fix it :)
Back to top
View user's profile Send private message
pste
Tux's lil' helper
Tux's lil' helper


Joined: 14 Dec 2004
Posts: 106

PostPosted: Sun Mar 20, 2005 7:38 pm    Post subject: Reply with quote

Could it be that the portage nvidia driver is too old??? Just sync'ed and the nvidia kernel is 1.0-6629-r1 but on nvidia's driver page they have 1.0-7167 with this release highlight (among others...)

- Fixed NvAGP incompatibility with recent Linux 2.6 kernels.

That is, since the error comes as:

[/var/tmp/portage/nvidia-kernel-1.0.6111-r3/work/NVIDIA-Linux-x86-1.0-6111-pkg1/usr/src/nv/os-agp.o] Error 1
make[3]: *** [_module_/var/tmp/portage/nvidia-kernel-1.0.6111-r3/work/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

I figure it has something to do with the agp functionality... Just wait for a new ebuild for nvidia-kernel then...

Or, uninstall the nvidia-kernel ebuild and manually install the nvidia driver...

Happy hunting!

/ste
Back to top
View user's profile Send private message
cn.mota
n00b
n00b


Joined: 02 Nov 2003
Posts: 20

PostPosted: Sun Mar 20, 2005 8:04 pm    Post subject: Reply with quote

I have managed to get the 6629 dirvers emerging and compiling with 2.6.11, by disabling agpgart in the kernel configuration, recompiling the kernel.

After this I was able to emerge nvidia-kernel

One thing you have to add the following option to your xorg.conf

Option "NvAGP" "1"

Code:

        Driver      "nvidia"
        Option      "NvAGP" "1"
Back to top
View user's profile Send private message
pste
Tux's lil' helper
Tux's lil' helper


Joined: 14 Dec 2004
Posts: 106

PostPosted: Mon Mar 21, 2005 7:57 pm    Post subject: Reply with quote

And I tried my own suggestion, namely to unmerge nvidia-glx and nvidia-kernel and run nvidia's 7167 driver manually...
... works like a charm!

/ste
Back to top
View user's profile Send private message
Thieving Magpie
n00b
n00b


Joined: 30 Apr 2004
Posts: 12

PostPosted: Wed Mar 23, 2005 12:07 pm    Post subject: Reply with quote

Hmm, I got my problem solved, but I am not the starter of this thread.

The problem resulted from two different things:

1. The newly compiled kernel seems to be not working to well with my system (linux-2.6.11-gentoo-r4).
When I tried to compile the latest xorg-x11 it would definitely crash with the error message in my second post.
This also happened when I tried to recompile the kernel itself.
So I switched back to the old kernel (linux-2.6.7-gentoo-r11) and compiled xorg-x11 again. Worked like a charm. But then I couldn't get the newly emerged nvidia-drivers to work. I read almost everything I could find on the forums regarding nvidia-drivers but nothing seemed to work for me. I always had the same error again and again.
Code:
(EE) No devices detected.

Fatal server error:
no screens found

Xorg did not seem to find the nvidia drivers on my system although I knew they were loaded. (lsmod would show nvidia loaded)
2.Then I took a look at my make.conf and realized I still had "static" in my use flags from an earlier installation. I removed that, recompiled xorg-x11 once more, and to my surprise the nvidia-drivers worked like a charm.

Now I'd really like to know what exactly does this "static" flag? I would be very grateful if somebody could please link me to an explanation.

Then I switched to the new kernel again, reemerged the nvidia drivers (nvidia-kernel-1.0.7167-r1, nvidia-glx-1.0.7167-r1) and everything worked just fine even with the new kernel.
Back to top
View user's profile Send private message
lambroger
n00b
n00b


Joined: 06 Oct 2004
Posts: 19

PostPosted: Wed Mar 23, 2005 7:55 pm    Post subject: Reply with quote

Thieving Magpie wrote:
I have exactly the same problem.
I tried installing a newer version of nvidia kernel using
Code:
ACCEPT_KEYWORDS="~x86" emerge nvidia-kernel

while that went pretty well I got the next problem when I tried to test-emerge nvidia-glx
Code:
ACCEPT_KEYWORDS="~x86" emerge -p nvidia-glx will give the following output:
These are the packages that I would merge, in order:

Calculating dependencies    ...done!
[blocks B     ] <x11-base/xorg-x11-6.8.0-r4 (is blocking x11-base/opengl-update-2.1.1-r1)
[ebuild     U ] x11-base/opengl-update-2.1.1-r1 [1.8.1]
[ebuild     U ] media-video/nvidia-glx-1.0.7167-r1 [1.0.6629-r1]

Now I am unsure how to proceed.
Does that mean I need to install a newer version of xorg-x11 first?


what you have to do is:
unmerge the opengl and the old xorg
then emerge the new xorg and finally the new opengl

the problem is caused by your opengl already being upto date while your xorg isn't
Back to top
View user's profile Send private message
Godsmacker777
Apprentice
Apprentice


Joined: 04 May 2004
Posts: 205
Location: Fenway area, Boston Massachusetts :O)

PostPosted: Thu Mar 24, 2005 5:46 am    Post subject: Reply with quote

hey guys,

I recently ran into the same problem, after upgrading to the 2.6.11-r4 kernel. Someone on the irc channels mentioned that there has been a known issue with 2.6.1x kernels and the nvidia kernel. He suggested trying to use the unstable nvidia kernel. He also mentioned that agpart could be involved. I shy away from unstable packages when given a choice, so I dug into the agpart issue.

I disabled agpart in the kernel and the nvidia kernel compiled just fine. I then set xorg to use nvidia's agp driver, as mentioned previously in this thread. All has been well. :lol:

goodluck
_________________
Why must we hear what system you're running gentoo on, especially if all you've got is a measly gig of ram or 3gHz processor?

I want to see signatures boasting 25 cpu clusters and blade severs, or a big 'ole onyx..anyone running gentoo on an onxy??
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
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