Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 483808

Summary: x11-drivers/nvidia-drivers-319.49 - *** Unable to determine the target kernel version. ***
Product: Gentoo Linux Reporter: Marat Nepomnyashy <maratbn>
Component: [OLD] LibraryAssignee: Jeroen Roovers (RETIRED) <jer>
Status: RESOLVED NEEDINFO    
Severity: normal CC: maratbn, xarthisius
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: The complete build log.
My kernel configuration file from '/etc/kernels/kernel-config-x86_64-3.9.0+'

Description Marat Nepomnyashy 2013-09-06 01:35:43 UTC
Having trouble emerging 'x11-drivers/nvidia-drivers-319.49'.

My console:

...# emerge nvidia-drivers
Calculating dependencies... done!

>>> Verifying ebuild manifests
>>> Running pre-merge checks for x11-drivers/nvidia-drivers-319.49
 * Determining the location of the kernel source code
 * Found kernel source directory:
 *     /usr/src/linux
 * Found kernel object directory:
 *     /lib/modules/3.9.0/build
 * Found sources for kernel version:
 *     3.9.0
 * Checking for suitable kernel configuration options...                                                                     [ ok ]

>>> Emerging (1 of 1) x11-drivers/nvidia-drivers-319.49
 * NVIDIA-Linux-x86_64-319.49.run SHA256 SHA512 WHIRLPOOL size ;-) ...                                                       [ ok ]
 * Determining the location of the kernel source code
 * Found kernel source directory:
 *     /usr/src/linux
 * Found kernel object directory:
 *     /lib/modules/3.9.0/build
 * Found sources for kernel version:
 *     3.9.0
>>> Unpacking source...
>>> Unpacking NVIDIA-Linux-x86_64-319.49.run to /var/tmp/portage/x11-drivers/nvidia-drivers-319.49/work
>>> Source unpacked in /var/tmp/portage/x11-drivers/nvidia-drivers-319.49/work
>>> Preparing source in /var/tmp/portage/x11-drivers/nvidia-drivers-319.49/work ...
 * Converting /kernel/Makefile.kbuild to use M= instead of SUBDIRS= ...                                                      [ ok ]
>>> Source prepared.
>>> Configuring source in /var/tmp/portage/x11-drivers/nvidia-drivers-319.49/work ...
>>> Source configured.
>>> Compiling source in /var/tmp/portage/x11-drivers/nvidia-drivers-319.49/work ...
 * Preparing nvidia module
make -j5 HOSTCC=x86_64-pc-linux-gnu-gcc CROSS_COMPILE=x86_64-pc-linux-gnu- 'LDFLAGS=-m elf_x86_64' ARCH=x86_64 IGNORE_CC_MISMATCH=yes V=1 SYSSRC=/usr/src/linux SYSOUT=/lib/modules/3.9.0/build 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-319.49 failed (compile phase):
 *   emake failed
 * 
 * If you need support, post the output of `emerge --info '=x11-drivers/nvidia-drivers-319.49'`,
 * the complete build log and the output of `emerge -pqv '=x11-drivers/nvidia-drivers-319.49'`.
 * The complete build log is located at '/var/tmp/portage/x11-drivers/nvidia-drivers-319.49/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/x11-drivers/nvidia-drivers-319.49/temp/environment'.
 * Working directory: '/var/tmp/portage/x11-drivers/nvidia-drivers-319.49/work/kernel'
 * S: '/var/tmp/portage/x11-drivers/nvidia-drivers-319.49/work/'

>>> Failed to emerge x11-drivers/nvidia-drivers-319.49, Log file:

>>>  '/var/tmp/portage/x11-drivers/nvidia-drivers-319.49/temp/build.log'

 * Messages for package x11-drivers/nvidia-drivers-319.49:

 * ERROR: x11-drivers/nvidia-drivers-319.49 failed (compile phase):
 *   emake failed
 * 
 * If you need support, post the output of `emerge --info '=x11-drivers/nvidia-drivers-319.49'`,
 * the complete build log and the output of `emerge -pqv '=x11-drivers/nvidia-drivers-319.49'`.
 * The complete build log is located at '/var/tmp/portage/x11-drivers/nvidia-drivers-319.49/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/x11-drivers/nvidia-drivers-319.49/temp/environment'.
 * Working directory: '/var/tmp/portage/x11-drivers/nvidia-drivers-319.49/work/kernel'
 * S: '/var/tmp/portage/x11-drivers/nvidia-drivers-319.49/work/'




...# emerge --info '=x11-drivers/nvidia-drivers-319.49'
Portage 2.1.12.2 (default/linux/amd64/13.0/desktop, gcc-4.6.3, glibc-2.15-r3, 3.9.0+ x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-3.9.0+-x86_64-Intel-R-_Core-TM-_i7-3520M_CPU_@_2.90GHz-with-gentoo-2.2
KiB Mem:    16396688 total,  10450180 free
KiB Swap:   15624996 total,  15624996 free
Timestamp of tree: Thu, 05 Sep 2013 23:45:01 +0000
ld GNU ld (GNU Binutils) 2.23.1
app-shells/bash:          4.2_p45
dev-java/java-config:     2.1.12-r1
dev-lang/python:          2.7.5-r2, 3.2.5-r2
dev-util/cmake:           2.8.10.2-r2
dev-util/pkgconfig:       0.28
sys-apps/baselayout:      2.2
sys-apps/openrc:          0.11.8
sys-apps/sandbox:         2.6-r1
sys-devel/autoconf:       2.13, 2.69
sys-devel/automake:       1.11.6, 1.12.6, 1.13.4
sys-devel/binutils:       2.23.1
sys-devel/gcc:            4.6.3
sys-devel/gcc-config:     1.7.3
sys-devel/libtool:        2.4-r1
sys-devel/make:           3.82-r4
sys-kernel/linux-headers: 3.9 (virtual/os-headers)
sys-libs/glibc:           2.15-r3
Repositories: gentoo my_local_overlay
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe -march=native -ggdb"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O2 -pipe -march=native -ggdb"
DISTDIR="/usr/portage/distfiles"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news noclean parallel-fetch preserve-libs protect-owned sandbox sfperms splitdebug strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://mirror.datapipe.net/gentoo http://gentoo.mirrors.easynews.com/linux/gentoo/ http://chi-10g-1-mirror.fastsoft.net/pub/linux/gentoo/gentoo-distfiles/ http://www.gtlib.gatech.edu/pub/gentoo rsync://rsync.gtlib.gatech.edu/gentoo http://gentoo.mirrors.hoobly.com/ http://lug.mtu.edu/gentoo/ http://gentoo.netnitco.net http://gentoo.mirrors.pair.com/ rsync://mirrors.rit.edu/gentoo/ http://mirrors.rit.edu/gentoo/ http://mirror.iawnet.sandia.gov/gentoo/ http://gentoo.llarian.net/ rsync://gentoo.mirrors.tds.net/gentoo http://gentoo.mirrors.tds.net/gentoo http://ftp.ucsb.edu/pub/mirrors/linux/gentoo/ http://mirror.lug.udel.edu/pub/gentoo/ http://gentoo.cites.uiuc.edu/pub/gentoo/ http://gentoo.cs.uni.edu/ http://mirror.usu.edu/mirrors/gentoo/"
LANG="en_US.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j5"
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="/usr/local/portage"
SYNC="rsync://rsync.us.gentoo.org/gentoo-portage"
USE="X a52 aac acl acpi alsa amd64 berkdb bluetooth branding bzip2 cairo cdda cdr cli consolekit cracklib crypt cups cxx dbus dri dts dvd dvdr emboss encode exif fam firefox flac fortran gdbm gif gpm gtk iconv ipv6 jpeg lcms ldap libnotify mad mmx mng modules mp3 mp4 mpeg mudflap multilib ncurses nls nptl ogg opengl openmp pam pango pcre pdf png policykit ppds pulseaudio qt3support qt4 readline sdl session spell sse sse2 ssl startup-notification svg tcpd tiff truetype udev udisks unicode upower usb vorbis wxwidgets x264 xcb xml xv xvid zlib" ABI_X86="64" 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" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd 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 author" 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 evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_2" RUBY_TARGETS="ruby19 ruby18" USERLAND="GNU" VIDEO_CARDS="fbdev glint intel mach64 mga nouveau nv r128 radeon savage sis tdfx trident vesa via vmware dummy v4l" 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, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON




...# emerge -pqv '=x11-drivers/nvidia-drivers-319.49'
[ebuild     U ] x11-drivers/nvidia-drivers-319.49 [319.32] USE="X acpi (multilib) tools -pax_kernel"
Comment 1 Marat Nepomnyashy 2013-09-06 01:38:11 UTC
Created attachment 357994 [details]
The complete build log.
Comment 2 Jeroen Roovers (RETIRED) gentoo-dev 2013-09-06 12:02:27 UTC
Please attach your kernel .config to this bug report.
Comment 3 Marat Nepomnyashy 2013-09-06 20:49:48 UTC
Created attachment 358110 [details]
My kernel configuration file from '/etc/kernels/kernel-config-x86_64-3.9.0+'

OK, attaching my kernel configuration file from '/etc/kernels/kernel-config-x86_64-3.9.0+'

I'm running a kernel from kernel.org
Comment 4 Jeroen Roovers (RETIRED) gentoo-dev 2013-09-07 13:59:44 UTC
(In reply to Marat Nepomnyashy from comment #3)
> I'm running a kernel from kernel.org

What does that mean?