Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 636874 - nvidia-drivers-304.137 - Unable to determine the target kernel version
Summary: nvidia-drivers-304.137 - Unable to determine the target kernel version
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Other
: Normal major (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-11-08 15:43 UTC by Oleksandr
Modified: 2017-11-08 18:03 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
Kernel config (config.gz,25.13 KB, application/x-gzip)
2017-11-08 15:43 UTC, Oleksandr
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Oleksandr 2017-11-08 15:43:51 UTC
Created attachment 503106 [details]
Kernel config

Package from portage fails while the same version of driver from official website works properly

# cat /var/tmp/portage/x11-drivers/nvidia-drivers-304.137/temp/build.log'

[32;01m * [39;49;00mPackage:    x11-drivers/nvidia-drivers-304.137
[32;01m * [39;49;00mRepository: gentoo
[32;01m * [39;49;00mMaintainer: jer@gentoo.org hardened@gentoo.org
[32;01m * [39;49;00mUSE:        X abi_x86_32 abi_x86_64 acpi amd64 elibc_glibc kernel_linux multilib tools userland_GNU
[32;01m * [39;49;00mFEATURES:   preserve-libs sandbox userpriv usersandbox
 [32;01m*[0m Determining the location of the kernel source code
 [32;01m*[0m Found kernel source directory:
 [32;01m*[0m     /usr/src/linux
 [32;01m*[0m Found kernel object directory:
 [32;01m*[0m     /lib/modules/4.12.12-gentoo/build
 [32;01m*[0m Found sources for kernel version:
 [32;01m*[0m     4.12.12-gentoo-nvidia
 [32;01m*[0m Checking for suitable kernel configuration options...
[A[72C [34;01m[ [32;01mok[34;01m ][0m
 [32;01m*[0m Checking for suitable kernel configuration options...
[A[72C [34;01m[ [32;01mok[34;01m ][0m
>>> Unpacking source...
>>> Unpacking NVIDIA-Linux-x86_64-304.137.run to /var/tmp/portage/x11-drivers/nvidia-drivers-304.137/work
>>> Unpacking nvidia-settings-304.137.tar.bz2 to /var/tmp/portage/x11-drivers/nvidia-drivers-304.137/work
>>> Source unpacked in /var/tmp/portage/x11-drivers/nvidia-drivers-304.137/work
>>> Preparing source in /var/tmp/portage/x11-drivers/nvidia-drivers-304.137/work ...
>>> Source prepared.
>>> Configuring source in /var/tmp/portage/x11-drivers/nvidia-drivers-304.137/work ...
 [32;01m*[0m abi_x86_32.x86: running multilib-minimal_abi_src_configure
 [32;01m*[0m abi_x86_64.amd64: running multilib-minimal_abi_src_configure
>>> Source configured.
>>> Compiling source in /var/tmp/portage/x11-drivers/nvidia-drivers-304.137/work ...
 [32;01m*[0m Preparing nvidia module
make -j1 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/4.12.12-gentoo/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: *** [makefile:53: select_makefile] Error 1
 [31;01m*[0m ERROR: x11-drivers/nvidia-drivers-304.137::gentoo failed (compile phase):
 [31;01m*[0m   emake failed
 [31;01m*[0m 
 [31;01m*[0m If you need support, post the output of `emerge --info '=x11-drivers/nvidia-drivers-304.137::gentoo'`,
 [31;01m*[0m the complete build log and the output of `emerge -pqv '=x11-drivers/nvidia-drivers-304.137::gentoo'`.
 [31;01m*[0m The complete build log is located at '/var/log/portage/x11-drivers:nvidia-drivers-304.137:20171108-131543.log'.
 [31;01m*[0m For convenience, a symlink to the build log is located at '/var/tmp/portage/x11-drivers/nvidia-drivers-304.137/temp/build.log'.
 [31;01m*[0m The ebuild environment file is located at '/var/tmp/portage/x11-drivers/nvidia-drivers-304.137/temp/environment'.
 [31;01m*[0m Working directory: '/var/tmp/portage/x11-drivers/nvidia-drivers-304.137/work/kernel'
 [31;01m*[0m S: '/var/tmp/portage/x11-drivers/nvidia-drivers-304.137/work/'
----------------------------------------------------------------
# emerge --info '=x11-drivers/nvidia-drivers-304.137'

Portage 2.3.8 (python 3.4.5-final-0, default/linux/amd64/13.0/desktop/plasma, gcc-5.4.0, glibc-2.25-r8, 4.12.12-gentoo-nvidia x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-4.12.12-gentoo-nvidia-x86_64-Intel-R-_Core-TM-2_Quad_CPU_Q9400_@_2.66GHz-with-gentoo-2.4.1
KiB Mem:     8192224 total,   6242192 free
KiB Swap:          0 total,         0 free
Head commit of repository gentoo: 03505343ef566447483923d9942e4960d680e95a

sh bash 4.3_p48-r1
ld GNU ld (Gentoo 2.28.1 p1.0) 2.28.1
app-shells/bash:          4.3_p48-r1::gentoo
dev-lang/perl:            5.24.3::gentoo
dev-lang/python:          2.7.14::gentoo, 3.4.5::gentoo
dev-util/cmake:           3.8.2::gentoo
dev-util/pkgconfig:       0.29.2::gentoo
sys-apps/baselayout:      2.4.1-r2::gentoo
sys-apps/openrc:          0.32.1::gentoo
sys-apps/sandbox:         2.10-r4::gentoo
sys-devel/autoconf:       2.13::gentoo, 2.69::gentoo
sys-devel/automake:       1.15-r2::gentoo
sys-devel/binutils:       2.28.1::gentoo
sys-devel/gcc:            5.4.0-r3::gentoo
sys-devel/gcc-config:     1.8-r1::gentoo
sys-devel/libtool:        2.4.6-r3::gentoo
sys-devel/make:           4.2.1::gentoo
sys-kernel/linux-headers: 4.4::gentoo (virtual/os-headers)
sys-libs/glibc:           2.25-r8::gentoo
Repositories:

gentoo
    location: /mnt/system/portage
    sync-type: git
    sync-uri: https://anongit.gentoo.org/git/repo/gentoo.git
    priority: -1000

local
    location: /mnt/system/overlays/local
    masters: gentoo

kde
    location: /mnt/system/overlays/kde
    sync-type: laymansync
    sync-uri: git://anongit.gentoo.org/proj/kde.git
    masters: gentoo
    priority: 50

ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=core2 -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-march=core2 -O2 -pipe"
DISTDIR="/mnt/system/distfiles"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs buildpkg config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync multilib-strict parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j4"
PKGDIR="/mnt/system/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git"
PORTAGE_TMPDIR="/var/tmp"
USE="X a52 aac acl acpi activities alsa amd64 berkdb bluetooth branding bzip2 cairo cdda cdr cli consolekit cracklib crypt cups cxx dbus declarative dri dts dvd dvdr emboss encode evdev exif fam firefox flac fontconfig fontforge fortran gdbm gif glamor gpm gtk iconv icu jpeg kde kipi kwallet lcms ldap libnotify mad mng modules mp3 mp4 mpeg multilib ncurses nls nptl ogg opengl openmp pam pango pcre pdf phonon plasma png policykit ppds qml qt3support qt5 readline sdl seccomp semantic-desktop session spell ssl startup-notification svg tcpd threads tiff truetype udev udisks unicode upower usb vorbis widgets wxwidgets x264 xattr xcb xcomposite xinerama xml xscreensaver 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" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="mmx mmxext sse sse2 sse3 sse4_1 ssse3" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" GRUB_PLATFORMS="efi-64 pc emu" INPUT_DEVICES="evdev" KERNEL="linux" L10N="en" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="en" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-6" POSTGRES_TARGETS="postgres9_5" PYTHON_SINGLE_TARGET="python3_4" PYTHON_TARGETS="python2_7 python3_4" RUBY_TARGETS="ruby22" USERLAND="GNU" VIDEO_CARDS="nvidia" 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:  CC, CPPFLAGS, CTARGET, CXX, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
---------------------------------------------------
emerge -pqv '=x11-drivers/nvidia-drivers-304.137'
[ebuild  N     ] x11-drivers/nvidia-drivers-304.137:0/304::gentoo  USE="X acpi multilib tools -pax_kernel -static-libs" ABI_X86="32 (64) (-x32)"
---------------------------------------------------
Kernel config is attached.
Comment 1 Oleksandr 2017-11-08 18:02:55 UTC
The issue has been resolved. For some reason permissions for /lib/modules were 500. I have changed them to 755 and package has been installed.