Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[WORKAROUND]emerge nvidia-drivers: target kernel version
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

Goto page Previous  1, 2, 3, 4  Next  
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
Anon-E-moose
Watchman
Watchman


Joined: 23 May 2008
Posts: 6103
Location: Dallas area

PostPosted: Thu Oct 22, 2009 11:16 am    Post subject: Reply with quote

modsRule wrote:

Tried to run the equery query:
I get a command not found error.
I then tried to emerge equery but it couldn't find it.


It's part of gentoolkit
Code:
emerge -av gentoolkit

_________________
PRIME x570-pro, 3700x, 6.1 zen kernel
gcc 13, profile 17.0 (custom bare multilib), openrc, wayland
Back to top
View user's profile Send private message
Anon-E-moose
Watchman
Watchman


Joined: 23 May 2008
Posts: 6103
Location: Dallas area

PostPosted: Thu Oct 22, 2009 11:24 am    Post subject: Reply with quote

Mike Hunt wrote:
Someone found a solution recently Bug#: 287807


Well, that bug is not closed.
But the submitter did find a workaround (going back to an earlier kernel)
Although I did have nvidia 180.60 drivers compiled against the 2.6.30-r5 kernel

I use the 2.6.27 kernel, as I had problems with burning DVD's
and certain applications had quite working with the 2.6.30 kernel.
_________________
PRIME x570-pro, 3700x, 6.1 zen kernel
gcc 13, profile 17.0 (custom bare multilib), openrc, wayland
Back to top
View user's profile Send private message
modsRule
n00b
n00b


Joined: 19 Oct 2009
Posts: 38
Location: Bucks, UK

PostPosted: Thu Oct 22, 2009 5:47 pm    Post subject: Reply with quote

@NeddySeagoon (sorry, last time I only used 1 'o'):
I have already done the full make clean/make rebuild.
This did not solve it.
Could it be down to the include/version.h file not beign read correctly since I would have assumed it would take kernel version from this?

@Anon-E-moose:
Here is the equery output:
Code:

 * installed packages
sys-kernel/linux-headers-2.6.27-r2
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54387
Location: 56N 3W

PostPosted: Thu Oct 22, 2009 5:59 pm    Post subject: Reply with quote

modsRule,

I'm out of ideas as it has worked for me with every kernel I've tried.

I can share my kernel .config if you like
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
modsRule
n00b
n00b


Joined: 19 Oct 2009
Posts: 38
Location: Bucks, UK

PostPosted: Thu Oct 22, 2009 6:04 pm    Post subject: Reply with quote

Hmm.

Do you want me to post my kernel .config file?
I tried to make it as light as possible, so I may have de-selected some important thing. But since it boots without problems I wouldn't have thought so.

modsRule
Back to top
View user's profile Send private message
Anon-E-moose
Watchman
Watchman


Joined: 23 May 2008
Posts: 6103
Location: Dallas area

PostPosted: Thu Oct 22, 2009 6:11 pm    Post subject: Reply with quote

You may have already answered, I haven't gone back and looked at every post,
but what version of gcc and portage are you running

Code:

equery list -i gcc
equery list -i portage


I'm with Neddy I'm close to running out of ideas, as I've never seen that problem.
_________________
PRIME x570-pro, 3700x, 6.1 zen kernel
gcc 13, profile 17.0 (custom bare multilib), openrc, wayland
Back to top
View user's profile Send private message
modsRule
n00b
n00b


Joined: 19 Oct 2009
Posts: 38
Location: Bucks, UK

PostPosted: Thu Oct 22, 2009 6:18 pm    Post subject: Reply with quote

Oh dear.Doesn't sound good.
It might be easiest if I go back and do a complete re-install. Before I do that however:

I have gcc-4.3.4, portage 2.1.6.13 and portage-util 0.1.29
Back to top
View user's profile Send private message
Anon-E-moose
Watchman
Watchman


Joined: 23 May 2008
Posts: 6103
Location: Dallas area

PostPosted: Thu Oct 22, 2009 6:23 pm    Post subject: Reply with quote

modsRule wrote:
Oh dear.Doesn't sound good.
It might be easiest if I go back and do a complete re-install. Before I do that however:

I have gcc-4.3.4, portage 2.1.6.13 and portage-util 0.1.29


You should not be having any problem with those at all.

You might just post your .config file @ http://pastebin.com/
and post the link
_________________
PRIME x570-pro, 3700x, 6.1 zen kernel
gcc 13, profile 17.0 (custom bare multilib), openrc, wayland
Back to top
View user's profile Send private message
modsRule
n00b
n00b


Joined: 19 Oct 2009
Posts: 38
Location: Bucks, UK

PostPosted: Thu Oct 22, 2009 6:26 pm    Post subject: Reply with quote

Ok. My config: http://pastebin.com/m73138bc
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54387
Location: 56N 3W

PostPosted: Thu Oct 22, 2009 6:32 pm    Post subject: Reply with quote

modsRule,

It can only be the kernel - you don't need a complete reinstall for that.
You have tried several different nvidia-drivers, that discounts them.

You can try a 2.6.31 kernel, which will be new to you, with my .config, which I know works here.
The kernel may not run on your hardware be we don't care just yet - building would be a superb first step.
My .config for linux-2.6.31-gentoo-r2 is here

There is also a 2.6.29 one too but I want you to build a clean kernel and the nvidia drivers against a kernel you may never use, just as a test.
Please unmask gentoo-sources-2.6.31-r2, emerge it, drop my config in (call it .config) and run make.
Fix the /usr/src/linux symlink to point to it, then emerge nvidia-drivers
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
Anon-E-moose
Watchman
Watchman


Joined: 23 May 2008
Posts: 6103
Location: Dallas area

PostPosted: Thu Oct 22, 2009 6:36 pm    Post subject: Reply with quote

Code:
cd /usr/portage/distfiles
ls -l NVID*


What does it return


Edit to add: That is a good idea neddy,
_________________
PRIME x570-pro, 3700x, 6.1 zen kernel
gcc 13, profile 17.0 (custom bare multilib), openrc, wayland


Last edited by Anon-E-moose on Thu Oct 22, 2009 6:37 pm; edited 1 time in total
Back to top
View user's profile Send private message
depontius
Advocate
Advocate


Joined: 05 May 2004
Posts: 3509

PostPosted: Thu Oct 22, 2009 6:36 pm    Post subject: Reply with quote

WIBNI

When a new kernel comes out, someone would go back and "-rN+1" all of the older nvidia-drivers that won't work with it, and put a clause in there to check the kernel version and bail, as needed. I've been bumping up against this quite a bit, lately. I suspect running ~arch kernels with mostly-stable boxes has something to do with it. But upon further checking, aside from finding a kernel, the only real version check I find is for >2.6.5 or >2.6.7.

I suppose if I want it, I should be willing to do it, but that depends on the maintainer wanting/accepting that kind of help.

I guess the right way would be to file a bug, maybe even attach tweaked ebuilds? (First to find the time)
_________________
.sigs waste space and bandwidth
Back to top
View user's profile Send private message
modsRule
n00b
n00b


Joined: 19 Oct 2009
Posts: 38
Location: Bucks, UK

PostPosted: Thu Oct 22, 2009 7:07 pm    Post subject: Reply with quote

@Neddy:
The kernel is compiling. Will let you know if the nvida drivers work with it when it has finished.

@Anon:
It returns the four different versions I have tried:
NVIDIA-Linux-x86_64-180.60-pkg2.run
ditto 185.18.31
ditto 190.36
ditto 190.40
Back to top
View user's profile Send private message
modsRule
n00b
n00b


Joined: 19 Oct 2009
Posts: 38
Location: Bucks, UK

PostPosted: Thu Oct 22, 2009 7:12 pm    Post subject: Reply with quote

@Neddy:
Build log using the 2.6.31-r2 kernel:

Code:

 * Determining the location of the kernel source code
 * Found kernel source directory:
 *     /usr/src/linux
 * Found sources for kernel version:
 *     2.6.31-gentoo-r2
 * Checking for MTRR support ...
  [ ok ]
>>> Unpacking source...
>>> Unpacking NVIDIA-Linux-x86_64-190.40-pkg2.run to /var/tmp/portage/x11-drivers/nvidia-drivers-190.40/work/NVIDIA-Linux-x86_64-190.40-pkg2
>>> Source unpacked in /var/tmp/portage/x11-drivers/nvidia-drivers-190.40/work
>>> Preparing source in /var/tmp/portage/x11-drivers/nvidia-drivers-190.40/work/NVIDIA-Linux-x86_64-190.40-pkg2 ...
 * Applying NVIDIA_glx-defines.patch ...
  [ ok ]
 * Applying NVIDIA_glx-glheader.patch ...
  [ ok ]
 * Converting NVIDIA-Linux-x86_64-190.40-pkg2/usr/src/nv/Makefile.kbuild to use M= instead of SUBDIRS= ...
  [ ok ]
>>> Source prepared.
>>> Configuring source in /var/tmp/portage/x11-drivers/nvidia-drivers-190.40/work/NVIDIA-Linux-x86_64-190.40-pkg2 ...
>>> Source configured.
>>> Compiling source in /var/tmp/portage/x11-drivers/nvidia-drivers-190.40/work/NVIDIA-Linux-x86_64-190.40-pkg2 ...
 * Preparing nvidia module
make -j4 HOSTCC=x86_64-pc-linux-gnu-gcc CROSS_COMPILE=x86_64-pc-linux-gnu- LDFLAGS= IGNORE_CC_MISMATCH=yes V=1 SYSSRC=/usr/src/linux SYSOUT=/usr/src/linux HOST_CC=x86_64-pc-linux-gnu-gcc clean module
If you are using a Linux 2.4 kernel, please make sure
you either have configured kernel sources matching your
kernel or the correct set of kernel headers installed
on your system.

If you are using a Linux 2.6 kernel, please make sure
you have configured kernel sources matching your kernel
installed on your system. If you specified a separate
output directory using either the "KBUILD_OUTPUT" or
the "O" KBUILD parameter, make sure to specify this
directory with the SYSOUT environment variable or with
the equivalent nvidia-installer command line option.

Depending on where and how the kernel sources (or the
kernel headers) were installed, you may need to specify
their location with the SYSSRC environment variable or
the equivalent nvidia-installer command line option.

*** Unable to determine the target kernel version. ***

make: *** [select_makefile] Error 1
 *
 * ERROR: x11-drivers/nvidia-drivers-190.40 failed.
 * Call stack:
 *               ebuild.sh, line   49:  Called src_compile
 *             environment, line 3953:  Called linux-mod_src_compile
 *             environment, line 2932:  Called die
 * The specific snippet of code:
 *               eval "emake HOSTCC=\"$(tc-getBUILD_CC)\"                   CROSS_COMPILE=${CHOST}-                   LDFLAGS=\"$(get_abi_LDFLAGS)\"                   ${BUILD_FIXES}                   ${BUILD_PARAMS}                   ${BUILD_TARGETS} " || die "Unable to emake HOSTCC="$(tc-getBUILD_CC)" CROSS_COMPILE=${CHOST}- LDFLAGS="$(get_abi_LDFLAGS)" ${BUILD_FIXES} ${BUILD_PARAMS} ${BUILD_TARGETS}";
 *  The die message:
 *   Unable to emake HOSTCC=x86_64-pc-linux-gnu-gcc CROSS_COMPILE=x86_64-pc-linux-gnu- LDFLAGS=  IGNORE_CC_MISMATCH=yes V=1 SYSSRC=/usr/src/linux       SYSOUT=/usr/src/linux HOST_CC=x86_64-pc-linux-gnu-gcc clean module
 *
 * If you need support, post the topmost build error, and the call stack if relevant.
 * A complete build log is located at '/var/tmp/portage/x11-drivers/nvidia-drivers-190.40/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/x11-drivers/nvidia-drivers-190.40/temp/environment'.
 *


Ultimately, the same error.
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54387
Location: 56N 3W

PostPosted: Thu Oct 22, 2009 7:18 pm    Post subject: Reply with quote

modsRule,

Let me try the 190 version of the driver here.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
Anon-E-moose
Watchman
Watchman


Joined: 23 May 2008
Posts: 6103
Location: Dallas area

PostPosted: Thu Oct 22, 2009 7:19 pm    Post subject: Reply with quote

modsRule wrote:
@Neddy:
The kernel is compiling. Will let you know if the nvida drivers work with it when it has finished.

@Anon:
It returns the four different versions I have tried:
NVIDIA-Linux-x86_64-180.60-pkg2.run
ditto 185.18.31
ditto 190.36
ditto 190.40


What I was interested in was the timestamps and sizes.

Don't worry about it, hopefully your latest compile will work.
If not, go to /usr/portage/distfiles and do "rm NVIDIA*" so it will have to pull down fresh copies when you run emerge
_________________
PRIME x570-pro, 3700x, 6.1 zen kernel
gcc 13, profile 17.0 (custom bare multilib), openrc, wayland
Back to top
View user's profile Send private message
Anon-E-moose
Watchman
Watchman


Joined: 23 May 2008
Posts: 6103
Location: Dallas area

PostPosted: Thu Oct 22, 2009 7:24 pm    Post subject: Reply with quote

This is what I get where you get the not finding error
Code:
 Preparing nvidia module
make HOSTCC=x86_64-pc-linux-gnu-gcc CROSS_COMPILE=x86_64-pc-linux-gnu- LDFLAGS= IGNORE_CC_MISMATCH=yes V=1 SYSSRC=/usr/src/linux SYSOUT=/lib/modules/2.6.27-gentoo-r7/build HOST_CC=x86_64-pc-linux-gnu-gcc clean module
NVIDIA: calling KBUILD...

_________________
PRIME x570-pro, 3700x, 6.1 zen kernel
gcc 13, profile 17.0 (custom bare multilib), openrc, wayland


Last edited by Anon-E-moose on Thu Oct 22, 2009 7:30 pm; edited 1 time in total
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54387
Location: 56N 3W

PostPosted: Thu Oct 22, 2009 7:25 pm    Post subject: Reply with quote

modsRule,

It worked for me.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
Anon-E-moose
Watchman
Watchman


Joined: 23 May 2008
Posts: 6103
Location: Dallas area

PostPosted: Thu Oct 22, 2009 7:37 pm    Post subject: Reply with quote

You might just remove the /usr/portage/distfiles/NVIDIA* files and try compiling them again.

Your system appears to be right with the exception of the nvidia drivers.
_________________
PRIME x570-pro, 3700x, 6.1 zen kernel
gcc 13, profile 17.0 (custom bare multilib), openrc, wayland
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54387
Location: 56N 3W

PostPosted: Thu Oct 22, 2009 7:40 pm    Post subject: Reply with quote

modsRule,

Where does it get
Code:
make -j4
from ?

For me, it always reverts to -j1 and I have MAKEOPTS="-j5" set in make.conf
That makes me think its not parallel make safe.

Thats not it
Code:
MAKEOPTS="-j10" emerge nvidia-drivers -av
works with 10 make threads.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54387
Location: 56N 3W

PostPosted: Thu Oct 22, 2009 7:59 pm    Post subject: Reply with quote

modsRule,

It seems to go wrong here
Code:
 * Preparing nvidia module
make -j10 HOSTCC=x86_64-pc-linux-gnu-gcc CROSS_COMPILE=x86_64-pc-linux-gnu- LDFLAGS= IGNORE_CC_MISMATCH=yes V=1 SYSSRC=/usr/src/linux SYSOUT=/lib/modules/2.6.31-gentoo-r2/build HOST_CC=x86_64-pc-linux-gnu-gcc clean module
NVIDIA: calling KBUILD...


KBUILD is an eclass I think. Please delete /usr/portage/elass/ (its a dir) the emerge --sync to get a new copy.

Then try again.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
modsRule
n00b
n00b


Joined: 19 Oct 2009
Posts: 38
Location: Bucks, UK

PostPosted: Thu Oct 22, 2009 7:59 pm    Post subject: Reply with quote

I have make opts set to -j4, so that is where it must be getting it from.
However I have also tried compiling with -j1 to no avail.

A new version of the drivers has just become available: 190.42-r1
I tried this, but it didn't help, same error.

So to summarise up to this point:
Not the nvidia-drivers packages. (They work on every-one elses computer)
Not the kernel sources (Newer sources have the same problem for me, but not for others)
Not portage

But they only thing that I would have thought caused this would the the sources are faulty, but we have disproved this.
AAARGH :(

Edit: Neddy has a new post. Just trying out that.
Back to top
View user's profile Send private message
Mike Hunt
Watchman
Watchman


Joined: 19 Jul 2009
Posts: 5287

PostPosted: Thu Oct 22, 2009 8:08 pm    Post subject: Reply with quote

Try this in your make.conf
Code:
CFLAGS="-march=k8 -O2 -pipe"
CXXFLAGS="${CFLAGS}"


or even better
Code:
CFLAGS="-march=native -O2 -pipe"
CXXFLAGS="${CFLAGS}"
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54387
Location: 56N 3W

PostPosted: Thu Oct 22, 2009 8:10 pm    Post subject: Reply with quote

Mike Hunt,

-march=native needs gcc-4.3 which leads nicely into my next question.

What versions of bash and gcc are in use ?
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
modsRule
n00b
n00b


Joined: 19 Oct 2009
Posts: 38
Location: Bucks, UK

PostPosted: Thu Oct 22, 2009 8:13 pm    Post subject: Reply with quote

@Neddy:
Removing that folder and then re-syncing has had no effect.

modsRule wrote:
I have gcc-4.3.4, portage 2.1.6.13 and portage-util 0.1.29

Already posted GCC version, not sure about bash. Will go check, when I try out those different flags.
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 Previous  1, 2, 3, 4  Next
Page 2 of 4

 
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