Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
nvidia-drivers vs linux-2.6.33 [SOLVED]
View unanswered posts
View posts from last 24 hours

Goto page 1, 2  Next  
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
Muso
Veteran
Veteran


Joined: 22 Oct 2002
Posts: 1052
Location: The Holy city of Honolulu

PostPosted: Thu Feb 25, 2010 7:30 am    Post subject: nvidia-drivers vs linux-2.6.33 [SOLVED] Reply with quote

A new gentoo-sources appeared during today's emerge --sync (2.6.33). The kernel built fine, but trying to emerge nvidia-drivers against that kernel failed. I then emerged a vanilla-2.6.33 and nvidia-drivers failed to build against it as well.

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

Linux headers need updating?
_________________
"You can lead a horticulture but you can't make her think" ~ Dorothy Parker
2021 is the year of the Linux Desktop!
Back to top
View user's profile Send private message
geki
Advocate
Advocate


Joined: 13 May 2004
Posts: 2387
Location: Germania

PostPosted: Thu Feb 25, 2010 9:48 am    Post subject: Reply with quote

for such things about nvidia-drivers check

http://nvnews.net/vbulletin/forumdisplay.php?f=14

you can find this thread for example

http://nvnews.net/vbulletin/showthread.php?t=142794&page=2
http://nvnews.net/vbulletin/showpost.php?p=2164440&postcount=20
_________________
hear hear
Back to top
View user's profile Send private message
duryodhana
n00b
n00b


Joined: 13 Jan 2008
Posts: 66

PostPosted: Thu Feb 25, 2010 12:17 pm    Post subject: Reply with quote

you have to unmask nvidia-drivers-195.36.03 for successful compiling with 2.6.33 kernel
Back to top
View user's profile Send private message
DrAgOnTuX
Apprentice
Apprentice


Joined: 22 Aug 2006
Posts: 176
Location: Switzerland

PostPosted: Thu Feb 25, 2010 3:19 pm    Post subject: Reply with quote

or try this: https://bugs.gentoo.org/show_bug.cgi?id=301318
Back to top
View user's profile Send private message
Muso
Veteran
Veteran


Joined: 22 Oct 2002
Posts: 1052
Location: The Holy city of Honolulu

PostPosted: Thu Feb 25, 2010 5:08 pm    Post subject: Reply with quote

duryodhana wrote:
you have to unmask nvidia-drivers-195.36.03 for successful compiling with 2.6.33 kernel


Done, and now working. TY

Please mark this as [SOLVED]
_________________
"You can lead a horticulture but you can't make her think" ~ Dorothy Parker
2021 is the year of the Linux Desktop!
Back to top
View user's profile Send private message
NathanZachary
Moderator
Moderator


Joined: 30 Jan 2007
Posts: 2609

PostPosted: Thu Feb 25, 2010 5:37 pm    Post subject: Reply with quote

Marked as [SOLVED] per user request. Just so you know, you can edit your initial post in the thread to say [SOLVED]. :)
_________________
“Truth, like infinity, is to be forever approached but never reached.” --Jean Ayres (1972)
---avatar cropped from =AimanStudio---
Back to top
View user's profile Send private message
Muso
Veteran
Veteran


Joined: 22 Oct 2002
Posts: 1052
Location: The Holy city of Honolulu

PostPosted: Thu Feb 25, 2010 6:40 pm    Post subject: Reply with quote

NathanZachary wrote:
Marked as [SOLVED] per user request. Just so you know, you can edit your initial post in the thread to say [SOLVED]. :)


Ah, will do in the future.
_________________
"You can lead a horticulture but you can't make her think" ~ Dorothy Parker
2021 is the year of the Linux Desktop!
Back to top
View user's profile Send private message
Aarin
n00b
n00b


Joined: 27 Dec 2008
Posts: 21
Location: Portugal

PostPosted: Fri Feb 26, 2010 1:03 am    Post subject: Reply with quote

I have exactly the same problem described in the first post, but the merging the nvidia-drivers.195.36.03 doesn't work either...

The same *** Unable to determine the target kernel version. *** appears.

build.log wrote:
* CPV: x11-drivers/nvidia-drivers-195.36.03
* REPO: gentoo
* USE: acpi amd64 elibc_glibc gtk kernel_linux multilib userland_GNU
* Determining the location of the kernel source code
* Found kernel source directory:
* /usr/src/linux
* Found kernel object directory:
* /lib/modules/2.6.33-gentoo/build
* Found sources for kernel version:
* 2.6.33-gentoo
* Checking for MTRR support ...
 [ ok ]
>>> Unpacking source...
>>> Unpacking NVIDIA-Linux-x86_64-195.36.03-pkg2.run to /var/tmp/portage/x11-drivers/nvidia-drivers-195.36.03/work/NVIDIA-Linux-x86_64-195.36.03-pkg2
>>> Source unpacked in /var/tmp/portage/x11-drivers/nvidia-drivers-195.36.03/work
>>> Preparing source in /var/tmp/portage/x11-drivers/nvidia-drivers-195.36.03/work/NVIDIA-Linux-x86_64-195.36.03-pkg2 ...
* Applying NVIDIA_glx-defines.patch ...
 [ ok ]
* Applying NVIDIA_glx-glheader.patch ...
 [ ok ]
* Applying 195.30-unified-arch.patch ...
 [ ok ]
* Converting NVIDIA-Linux-x86_64-195.36.03-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-195.36.03/work/NVIDIA-Linux-x86_64-195.36.03-pkg2 ...
>>> Source configured.
>>> Compiling source in /var/tmp/portage/x11-drivers/nvidia-drivers-195.36.03/work/NVIDIA-Linux-x86_64-195.36.03-pkg2 ...
* Preparing nvidia module
make -j3 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.33-gentoo/build 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-195.36.03 failed:
* 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=/lib/modules/2.6.33-gentoo/build HOST_CC=x86_64-pc-linux-gnu-gcc clean module
*
* Call stack:
* ebuild.sh, line 54: Called src_compile
* environment, line 4144: Called linux-mod_src_compile
* environment, line 3078: 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}";
*
* If you need support, post the output of 'emerge --info =x11-drivers/nvidia-drivers-195.36.03',
* the complete build log and the output of 'emerge -pqv =x11-drivers/nvidia-drivers-195.36.03'.
* The complete build log is located at '/var/tmp/portage/x11-drivers/nvidia-drivers-195.36.03/temp/build.log'.
* The ebuild environment file is located at '/var/tmp/portage/x11-drivers/nvidia-drivers-195.36.03/temp/environment'.
* S: '/var/tmp/portage/x11-drivers/nvidia-drivers-195.36.03/work/NVIDIA-Linux-x86_64-195.36.03-pkg2'


emerge --info =x11-drivers/nvidia-drivers-195.36.03 wrote:
Portage 2.1.7.17 (default/linux/amd64/10.0/desktop, gcc-4.4.3, glibc-2.11-r1, 2.6.32-gentoo-r6 x86_64)
=================================================================
System Settings
=================================================================
System uname: Linux-2.6.32-gentoo-r6-x86_64-Intel-R-_Core-TM-2_CPU_T5600_@_1.83GHz-with-gentoo-2.0.1
Timestamp of tree: Fri, 26 Feb 2010 00:15:02 +0000
app-shells/bash: 4.1_p2
dev-java/java-config: 2.1.10
dev-lang/python: 2.6.4-r1, 3.1.1-r1
dev-util/cmake: 2.8.0-r2
sys-apps/baselayout: 2.0.1
sys-apps/openrc: 0.6.0-r1
sys-apps/sandbox: 2.2
sys-devel/autoconf: 2.13, 2.65
sys-devel/automake: 1.9.6-r3, 1.10.3, 1.11.1
sys-devel/binutils: 2.20
sys-devel/gcc: 4.4.3
sys-devel/gcc-config: 1.4.1
sys-devel/libtool: 2.2.6b
virtual/os-headers: 2.6.32
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -Os -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/X11/xkb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-march=native -Os -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests distlocks fixpackages news parallel-fetch protect-owned sandbox sfperms strict unmerge-logs unmerge-orphans userfetch"
GENTOO_MIRRORS="http://darkstar.ist.utl.pt/gentoo/ http://ftp.rnl.ist.utl.pt/pub/gentoo/gentoo-distfiles/ ftp://cesium.di.uminho.pt/pub/gentoo/ ftp://darkstar.ist.utl.pt/pub/gentoo/ ftp://ftp.rnl.ist.utl.pt/pub/gentoo/gentoo-distfiles/ http://ftp.dei.uc.pt/pub/linux/gentoo/ http://cesium.di.uminho.pt/pub/gentoo/ ftp://ftp.dei.uc.pt/pub/linux/gentoo/ "
LANG="en_US.UTF-8"
LDFLAGS="-Wl,-O1"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/var/lib/layman/sunrise /var/lib/layman/sabayon /usr/local/overlay"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="X a52 aac acl acpi alsa amd64 avahi berkdb bluetooth branding bzip2 cairo cdr cli consolekit cracklib crypt cups cxx dbus dri dts dvd dvdr eds emboss encode evo fam firefox flac fortran gdbm gif gnome gpm gstreamer gtk hal iconv ipv6 jpeg ldap libnotify mad mikmod mmx mng modules mp3 mp4 mpeg mudflap multilib ncurses nls nptl nptlonly ogg opengl openmp pam pcre pdf perl png policykit ppds pppd python qt3support qt4 quicktime readline reflection sdl session spell spl sse sse2 ssl startup-notification svg sysfs tcpd threads thunar tiff truetype unicode usb vorbis x264 xml xorg xulrunner xv xvid zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="nvidia"
Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LC_ALL, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Back to top
View user's profile Send private message
yoosty69
n00b
n00b


Joined: 03 Jan 2004
Posts: 35

PostPosted: Fri Feb 26, 2010 7:03 am    Post subject: Reply with quote

DrAgOnTuX wrote:
or try this: https://bugs.gentoo.org/show_bug.cgi?id=301318


Also works :thumb:
Back to top
View user's profile Send private message
Shining Arcanine
Veteran
Veteran


Joined: 24 Sep 2009
Posts: 1110

PostPosted: Fri Feb 26, 2010 1:19 pm    Post subject: Reply with quote

Aarin, is /usr/src/linux pointing to the correct directory for your kernel sources? Also, how are you building the kernel?
Back to top
View user's profile Send private message
depontius
Advocate
Advocate


Joined: 05 May 2004
Posts: 3526

PostPosted: Fri Feb 26, 2010 2:04 pm    Post subject: Reply with quote

Is there a legacy driver for 2.6.33, also? (nvidia-drivers-173.xx.xx)
_________________
.sigs waste space and bandwidth
Back to top
View user's profile Send private message
Shining Arcanine
Veteran
Veteran


Joined: 24 Sep 2009
Posts: 1110

PostPosted: Fri Feb 26, 2010 2:14 pm    Post subject: Reply with quote

depontius wrote:
Is there a legacy driver for 2.6.33, also? (nvidia-drivers-173.xx.xx)


The kernel interfaces changed in 2.6.33, so unless the driver has no dependency on those interfaces, the answer is most likley no. It should be possible to patch the legacy driver for the new kernel. I have no interest in doing that (especially since other people did the hard work and all I did was stitch what they did together), but If you want, you could patch the legacy driver for the new kernel.

I recently started attending my university's Linux Users Group and I learned that it has bug squashing parties, so I will try to bring it up as a possible bug we could resolve when I attend my first one. Kernel 2.6.34 could be in the rc stages before that happens, so I would not wait for it if I were you.
Back to top
View user's profile Send private message
qfly
n00b
n00b


Joined: 13 Feb 2010
Posts: 7

PostPosted: Fri Feb 26, 2010 3:10 pm    Post subject: Reply with quote

duryodhana wrote:
you have to unmask nvidia-drivers-195.36.03 for successful compiling with 2.6.33 kernel

:P Yeah,It works for me. 8)
Back to top
View user's profile Send private message
seenxu
n00b
n00b


Joined: 19 Oct 2009
Posts: 16

PostPosted: Fri Feb 26, 2010 6:59 pm    Post subject: Reply with quote

unmask nvidia-drivers-195.36.03 solves the problem, thx.
Back to top
View user's profile Send private message
Shining Arcanine
Veteran
Veteran


Joined: 24 Sep 2009
Posts: 1110

PostPosted: Sat Feb 27, 2010 2:52 am    Post subject: Reply with quote

I dread the answer to this question, but how are you guys unmasking nvidia-drivers-195.36.03 when it is a hardmasked package?
Back to top
View user's profile Send private message
depontius
Advocate
Advocate


Joined: 05 May 2004
Posts: 3526

PostPosted: Sat Feb 27, 2010 3:01 am    Post subject: Reply with quote

/etc/portage/package.unmask to remove the hard mask
/etc/portage/package.keywords to accept the ~arch mask
_________________
.sigs waste space and bandwidth
Back to top
View user's profile Send private message
Shining Arcanine
Veteran
Veteran


Joined: 24 Sep 2009
Posts: 1110

PostPosted: Sat Feb 27, 2010 3:09 am    Post subject: Reply with quote

Ah, cool. I thought people were removing it from /usr/portage/profiles/package.mask, which was a frightening thought.
Back to top
View user's profile Send private message
Shining Arcanine
Veteran
Veteran


Joined: 24 Sep 2009
Posts: 1110

PostPosted: Sat Feb 27, 2010 3:57 am    Post subject: Reply with quote

depontius wrote:
Is there a legacy driver for 2.6.33, also? (nvidia-drivers-173.xx.xx)


I just checked nvnews.net. There is such a driver, but it is not in the portage tree yet:

http://www.nvnews.net/vbulletin/showthread.php?t=144266
Back to top
View user's profile Send private message
Muso
Veteran
Veteran


Joined: 22 Oct 2002
Posts: 1052
Location: The Holy city of Honolulu

PostPosted: Sat Feb 27, 2010 4:07 am    Post subject: Reply with quote

Shining Arcanine wrote:
Ah, cool. I thought people were removing it from /usr/portage/profiles/package.mask, which was a frightening thought.


That would get rewritten on the next emerge --sync. Placing it in package.unmask is the proper way.
_________________
"You can lead a horticulture but you can't make her think" ~ Dorothy Parker
2021 is the year of the Linux Desktop!
Back to top
View user's profile Send private message
billmil
n00b
n00b


Joined: 06 Jan 2004
Posts: 72

PostPosted: Tue Mar 02, 2010 7:46 pm    Post subject: older graphics cards? Reply with quote

Hi,

As a follow up I have an older graphics card (Quadro NVS 400, fwiw ).

Over the last year or so, I've set package.mask as follows to get the drivers to work:
>=x11-drivers/nvidia-drivers-97.00

I understood that later nvidia drivers would not/do not work with this older card.

What's the best way to solve this problem? (2.6.33 requires a newer driver version; newer driver versions don't work with the older card)

thanks,

bill
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


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

PostPosted: Tue Mar 02, 2010 7:53 pm    Post subject: Reply with quote

billmil,

There is a patch for the new nvidia-driver on bugs.gentoo.org
It will need to be back ported to the older 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
geki
Advocate
Advocate


Joined: 13 May 2004
Posts: 2387
Location: Germania

PostPosted: Tue Mar 02, 2010 8:17 pm    Post subject: Reply with quote

billmil
this thread states that version 96.43.16 should do with recent kernels.
http://www.nvnews.net/vbulletin/showthread.php?p=2175900
_________________
hear hear
Back to top
View user's profile Send private message
DevOne
Guru
Guru


Joined: 13 Jul 2005
Posts: 419

PostPosted: Sat Mar 06, 2010 11:29 am    Post subject: Reply with quote

DrAgOnTuX wrote:
or try this: https://bugs.gentoo.org/show_bug.cgi?id=301318


Hi, because my version of nvidia 195.xx works only under 2.6.31-r6 (target kernel problem under 2.6.33),
how can i use nvidia-190.53-2.6.33.patch?? :oops:
_________________
Real-time cooperative softair: http://www.softairrealfight.net
Qt generic-compass contribution: https://codereview.qt-project.org/#/c/92017
Open-source Virtual Keyboard QT widget: https://www.linux-apps.com/p/1132203/
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


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

PostPosted: Sat Mar 06, 2010 12:57 pm    Post subject: Reply with quote

DevOne,

Make a directory called /usr/local/portage
Add PORTDIR_OVERLAY="/usr/local/portage" to the bottom of your /etc/make.conf

Now you have an empty overlay and portage knows where to find it.

Fetch the file x11-drivers.bz2 from http://dev.gentoo.org/~neddyseagoon/ and put it in your overlay.
Unpack it with tar -jpf x11-drivers.bz2.

It contains, among other things, an ebuild called nvidia-drivers-190.53-r101.ebuild, which applies the required patch to nvidia-drivers-190.53-r1.ebuild, so it builds with 2.6.33.

That ebuild has KEYWORDS="-* ~amd64 ~x86 ~x86-fbsd" so you will need to add it to package.keywords if you normally run stable.
Code:
emerge nvidia-drivers -av
should offer nvidia-drivers-190.53-r101, if not, one of us has done something wrong
_________________
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
DevOne
Guru
Guru


Joined: 13 Jul 2005
Posts: 419

PostPosted: Sat Mar 06, 2010 1:12 pm    Post subject: Reply with quote

NeddySeagoon wrote:
DevOne,

Make a directory called /usr/local/portage
Add PORTDIR_OVERLAY="/usr/local/portage" to the bottom of your /etc/make.conf

Now you have an empty overlay and portage knows where to find it.

Fetch the file x11-drivers.bz2 from http://dev.gentoo.org/~neddyseagoon/ and put it in your overlay.
Unpack it with tar -jpf x11-drivers.bz2.

It contains, among other things, an ebuild called nvidia-drivers-190.53-r101.ebuild, which applies the required patch to nvidia-drivers-190.53-r1.ebuild, so it builds with 2.6.33.

That ebuild has KEYWORDS="-* ~amd64 ~x86 ~x86-fbsd" so you will need to add it to package.keywords if you normally run stable.
Code:
emerge nvidia-drivers -av
should offer nvidia-drivers-190.53-r101, if not, one of us has done something wrong


Hi, thanks for detaild guide, but only under 2.6.31-r6 does work (with some error kernel)
under 2.6.33, same error :cry:
_________________
Real-time cooperative softair: http://www.softairrealfight.net
Qt generic-compass contribution: https://codereview.qt-project.org/#/c/92017
Open-source Virtual Keyboard QT widget: https://www.linux-apps.com/p/1132203/
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
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