Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
old nvidia drivers compile fail
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
MehyaM
n00b
n00b


Joined: 18 Aug 2012
Posts: 2

PostPosted: Sat Aug 18, 2012 1:26 pm    Post subject: old nvidia drivers compile fail Reply with quote

Hi,
I have a problem with installing nvidia-drivers package. When I tried to install newest drivers the message was:
Quote:
You are currently installing a version of nvidia-drivers that is
* known not to work with a video card you have installed on your
* system. If this is intentional, please ignore this. If it is not
* please perform the following steps:
*
* Add the following mask entry to /etc/portage/package.mask by
* echo ">=x11-drivers/nvidia-drivers-97.0.0" >> /etc/portage/package.mask

so I masked latest drivers and run:
Code:
emerge -1 x11-base/xorg-drivers

and got this output:
Code:

emake failed
 * ERROR: x11-drivers/nvidia-drivers-96.43.20 failed (compile phase):
 *   Unable to emake HOSTCC=i686-pc-linux-gnu-gcc CROSS_COMPILE=i686-pc-linux-gnu- LDFLAGS=  IGNORE_CC_MISMATCH=yes V=1 SYSSRC=/usr/src/linux       SYSOUT=/lib/modules/3.3.8-gentoo/build CC=i686-pc-linux-gnu-gcc clean module
 *
 * Call stack:
 *     ebuild.sh, line   85:  Called src_compile
 *   environment, line 3805:  Called linux-mod_src_compile
 *   environment, line 2724:  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-96.43.20'`,
 * the complete build log and the output of `emerge -pqv '=x11-drivers/nvidia-drivers-96.43.20'`.
 * The complete build log is located at '/var/tmp/portage/x11-drivers/nvidia-drivers-96.43.20/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/x11-drivers/nvidia-drivers-96.43.20/temp/environment'.
 * Working directory: '/var/tmp/portage/x11-drivers/nvidia-drivers-96.43.20/work/usr/src/nv'
 * S: '/var/tmp/portage/x11-drivers/nvidia-drivers-96.43.20/work/'


Can anyone help me solve this problem, please? (It's my first Gentoo installation...)
btw. I tried to post this topic to "Portage & Programming" forum, but when I clicked "New topic" button there, I was redirected to https://forums.gentoo.org/index.php instead of https://forums.gentoo.org/posting.php?mode=newtopic&f=8 ...

output of `emerge --info '=x11-drivers/nvidia-drivers-96.43.20'`:
Code:
Portage 2.1.10.65 (default/linux/x86/10.0, gcc-4.5.3, glibc-2.14.1-r3, 3.3.8-gentoo i686)
=================================================================
                         System Settings
=================================================================
System uname: Linux-3.3.8-gentoo-i686-AMD_Athlon-TM-_XP_2000+-with-gentoo-2.1
Timestamp of tree: Wed, 08 Aug 2012 19:45:01 +0000
app-shells/bash:          4.2_p20
dev-lang/python:          2.7.3-r2, 3.2.3
dev-util/cmake:           2.8.7-r5
dev-util/pkgconfig:       0.26
sys-apps/baselayout:      2.1-r1
sys-apps/openrc:          0.9.8.4
sys-apps/sandbox:         2.5
sys-devel/autoconf:       2.68
sys-devel/automake:       1.11.1
sys-devel/binutils:       2.21.1-r1
sys-devel/gcc:            4.5.3-r2
sys-devel/gcc-config:     1.6
sys-devel/libtool:        2.4-r1
sys-devel/make:           3.82-r1
sys-kernel/linux-headers: 3.1 (virtual/os-headers)
sys-libs/glibc:           2.14.1-r3
Repositories: gentoo
ACCEPT_KEYWORDS="x86"
ACCEPT_LICENSE="* -@EULA"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=athlon-xp -O2"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-march=athlon-xp -O2"
DISTDIR="/usr/portage/distfiles"
FCFLAGS="-march=athlon-xp -O2"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles news parallel-fetch parse-eapi-ebuild-head protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS="-march=athlon-xp -O2"
GENTOO_MIRRORS="http://ftp.fi.muni.cz/pub/linux/gentoo/ ftp://ftp.fi.muni.cz/pub/linux/gentoo/ http://gentoo.mirror.dkm.cz/pub/gentoo/ ftp://gentoo.mirror.dkm.cz/pub/gentoo/ ftp://gentoo.mirror.web4u.cz/"
LANG="cs_CZ.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.cz.gentoo.org/gentoo-portage"
USE="X acl alsa berkdb bzip2 cli cracklib crypt cups cxx dri fortran gdbm gnome gpm gtk iconv ipv6 modules mudflap ncurses nls nptl openmp pam pcre pppd python readline session ssh ssl tcpd unicode x86 zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 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 cgi cgid 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" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" PHP_TARGETS="php5-3" PYTHON_TARGETS="python3_2 python2_7" RUBY_TARGETS="ruby18 ruby19" USERLAND="GNU" VIDEO_CARDS="nvidia fbdev vesa" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, LINGUAS, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON


output of `emerge -pqv '=x11-drivers/nvidia-drivers-96.43.20'`
Code:
[ebuild     UD] x11-drivers/nvidia-drivers-96.43.20 [295.59] USE="gtk%* -acpi -custom-cflags% (-multilib) (-tools%*)"


output of `cat /var/tmp/portage/x11-drivers/nvidia-drivers-96.43.20/temp/build.log`
Code:
 * Package:    x11-drivers/nvidia-drivers-96.43.20
 * Repository: gentoo
 * Maintainer: cardoe@gentoo.org jer@gentoo.org,spock@gentoo.org,xarthisius@gentoo.org
 * USE:        elibc_glibc gtk kernel_linux userland_GNU x86
 * FEATURES:   sandbox
 * Determining the location of the kernel source code
 * Found kernel source directory:
 *     /usr/src/linux
 * Found kernel object directory:
 *     /lib/modules/3.3.8-gentoo/build
 * Found sources for kernel version:
 *     3.3.8-gentoo
 * Checking for MTRR support ...                                                                       [ ok ]
>>> Unpacking source...
mkdir: adresář „/var/tmp/portage/x11-drivers/nvidia-drivers-96.43.20/work/“ nelze vytvořit: Soubor již existuje
>>> Unpacking NVIDIA-Linux-x86-96.43.20-pkg0.run to /var/tmp/portage/x11-drivers/nvidia-drivers-96.43.20/work
>>> Source unpacked in /var/tmp/portage/x11-drivers/nvidia-drivers-96.43.20/work
>>> Preparing source in /var/tmp/portage/x11-drivers/nvidia-drivers-96.43.20/work ...
 * Applying NVIDIA_glx-defines.patch ...                                                               [ ok ]
 * Applying NVIDIA_glx-glheader.patch ...                                                              [ ok ]
 * Converting /usr/src/nv/Makefile.kbuild to use M= instead of SUBDIRS= ...                            [ ok ]
>>> Source prepared.
>>> Configuring source in /var/tmp/portage/x11-drivers/nvidia-drivers-96.43.20/work ...
>>> Source configured.
>>> Compiling source in /var/tmp/portage/x11-drivers/nvidia-drivers-96.43.20/work ...
 * Preparing nvidia module
make -j2 HOSTCC=i686-pc-linux-gnu-gcc CROSS_COMPILE=i686-pc-linux-gnu- LDFLAGS= IGNORE_CC_MISMATCH=yes V=1 SYSSRC=/usr/src/linux SYSOUT=/lib/modules/3.3.8-gentoo/build CC=i686-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
emake failed
 * ERROR: x11-drivers/nvidia-drivers-96.43.20 failed (compile phase):
 *   Unable to emake HOSTCC=i686-pc-linux-gnu-gcc CROSS_COMPILE=i686-pc-linux-gnu- LDFLAGS=  IGNORE_CC_MISMATCH=yes V=1 SYSSRC=/usr/src/linux       SYSOUT=/lib/modules/3.3.8-gentoo/build CC=i686-pc-linux-gnu-gcc clean module
 *
 * Call stack:
 *     ebuild.sh, line   85:  Called src_compile
 *   environment, line 3805:  Called linux-mod_src_compile
 *   environment, line 2724:  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-96.43.20'`,
 * the complete build log and the output of `emerge -pqv '=x11-drivers/nvidia-drivers-96.43.20'`.
 * The complete build log is located at '/var/tmp/portage/x11-drivers/nvidia-drivers-96.43.20/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/x11-drivers/nvidia-drivers-96.43.20/temp/environment'.
 * Working directory: '/var/tmp/portage/x11-drivers/nvidia-drivers-96.43.20/work/usr/src/nv'
 * S: '/var/tmp/portage/x11-drivers/nvidia-drivers-96.43.20/work/'


output of `cat /etc/portage/make.conf`
Code:

USE="X gtk gnome alsa python ssh -kde -qt4"
INPUT_DEVICES="keyboard mouse"
VIDEO_CARDS="nvidia fbdev vesa"
CHOST="i686-pc-linux-gnu"
CFLAGS="-march=athlon-xp -O2"
CXXFLAGS="${CFLAGS}"
FFLAGS="${CFLAGS}"
FCFLAGS="${FFLAGS}"
MAKEOPTS="-j2"
AUTOCLEAN="yes"
PORTAGE_ELOG_CLASSES="log warn error"
GENTOO_MIRRORS="http://ftp.fi.muni.cz/pub/linux/gentoo/ ftp://ftp.fi.muni.cz/pub/linux/gentoo/ http://gentoo.mirror.dkm.cz/pub/gentoo/ ftp://gentoo.mirror.dkm.cz/pub/gentoo/ ftp://gentoo.mirror.web4u.cz/"
SYNC="rsync://rsync.cz.gentoo.org/gentoo-portage"



output of `cat /etc/portage/package.mask`
Code:
>=x11-drivers/nvidia-drivers-97.0.0
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


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

PostPosted: Sat Aug 18, 2012 1:36 pm    Post subject: Reply with quote

MehyaM,

Welcome to Gentoo.

Code:
*** Unable to determine the target kernel version. ***
is usually caused by the /usr/src/linux symlink missing, which is how external kernel modules, find the kernel to build against, or if the link is present, it points to a kernel that has not been configured, so the version information is absent.

Look at the output of
Code:
readlink /usr/src/linux
and
Code:
uname -a
in your case, you want them to show the same kernel version as you want to install the nvidia-drivers for the kernel you are running. If you unpicked a liveCD to get the kernel binary you are using, you cannot install nvidia-drivers as you won't have a configured kernel source tree.
_________________
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
MehyaM
n00b
n00b


Joined: 18 Aug 2012
Posts: 2

PostPosted: Sat Aug 18, 2012 4:13 pm    Post subject: Reply with quote

Thanks for fast reply.

it's weird, because I have fresh install (kernel manually configured and compiled) link is present and points to used kernel.
Code:
mayhems-gentoo ~ # readlink /usr/src/linux
linux-3.3.8-gentoo
mayhems-gentoo ~ # uname -a
Linux mayhems-gentoo 3.3.8-gentoo #1 SMP Fri Aug 3 18:34:40 CEST 2012 i686 AMD Athlon(TM) XP 2000+ AuthenticAMD GNU/Linux


Newer driver was compiled successfully but with the notice about wrong version mentioned in the first post. Should I uninstall the newer drivers first? What is the best method? --unmerge or --prune?

Also I checked all required kernel configurations from http://www.gentoo.org/doc/en/nvidia-guide.xml and everything is OK, only "Userspace VESA VGA graphics support" is not checked. Could be this the problem?
Back to top
View user's profile Send private message
Hu
Moderator
Moderator


Joined: 06 Mar 2007
Posts: 13845

PostPosted: Sat Aug 18, 2012 4:38 pm    Post subject: Reply with quote

If your hardware is old enough that it has been removed from the proprietary drivers, it might be old enough to be well supported by the open driver. Did you pick the proprietary driver because you need features not present in the open driver?
Back to top
View user's profile Send private message
Gusar
Advocate
Advocate


Joined: 09 Apr 2005
Posts: 2664
Location: Slovenia

PostPosted: Sat Aug 18, 2012 5:25 pm    Post subject: Reply with quote

I'm very sure the 96xx driver hasn't been updated to work with newest kernels. The modifications needed to get the driver to compile are quite small, so you could do them. But there's another problem - X. The 96xx driver supports X up to 1.10 and no further.

Basically, you might be better served by nouveau.
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


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

PostPosted: Sat Aug 18, 2012 5:34 pm    Post subject: Reply with quote

MehyaM,

The nVidia part of the build system is broken for 3 series kernels.
Google knows of patches dor 3.3.0_rc1 but the kernel has changed further since then and they don't work with with 3.4.5 which is what I have today.

You can file a bug at bugs.gentoo.org - see if there is one already that you can add to. The build system is text files, so anyone can edit it, however, if its not well maintained now, its only going to get worse ad fewer and fewer people need this driver.

The support from Xorg 1.11 and on is unlikely to ever be fixed. nVidia must do that as the changes need to be made inside the binary blob.

So, you can fix the build system and have an out of date Xorg and friends or you can try another driver like nouveau.
_________________
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
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo 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