Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 598776 - x11-drivers/nvidia-drivers-375.10: compile: fatal error: nvml.h: No such file or directory
Summary: x11-drivers/nvidia-drivers-375.10: compile: fatal error: nvml.h: No such file...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Jeroen Roovers (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-11-02 11:46 UTC by Jura
Modified: 2016-11-05 20:19 UTC (History)
6 users (show)

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


Attachments
build.log (build.log.tar.bz2,9.05 KB, application/x-bzip)
2016-11-02 11:46 UTC, Jura
Details
build log (x11-drivers:nvidia-drivers-375.10:20161102-101457.log,401.96 KB, text/plain)
2016-11-02 12:19 UTC, jms
Details
nvml.h fix (nvml.h.patch,225.76 KB, patch)
2016-11-02 14:01 UTC, Michael Stypa
Details | Diff
rename nvml.h-${PV} to nvml.h (nvlm.patch,598 bytes, patch)
2016-11-02 14:57 UTC, poncho
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Jura 2016-11-02 11:46:08 UTC
Created attachment 452166 [details]
build.log

Can't install nvidia-drivers-375.10
Comment 1 jms 2016-11-02 12:19:00 UTC
Created attachment 452168 [details]
build log
Comment 2 jms 2016-11-02 12:20:07 UTC
confirm

 emerge --info '=x11-drivers/nvidia-drivers-375.10::gentoo'
Portage 2.3.2 (python 3.4.5-final-0, default/linux/amd64/13.0/desktop/plasma, gcc-5.4.0, glibc-2.22-r4, 4.8.3-gentoo-jms-0011 x86_64)
=================================================================
                         System Settings
=================================================================                                                                                                                                                                                                              
System uname: Linux-4.8.3-gentoo-jms-0011-x86_64-Intel-R-_Core-TM-_i5-3210M_CPU_@_2.50GHz-with-gentoo-2.2                                                                                                                                                                      
KiB Mem:     7672628 total,    538648 free                                                                                                                                                                                                                                     
KiB Swap:    8396796 total,   3302240 free                                                                                                                                                                                                                                     
Timestamp of repository gentoo: Wed, 02 Nov 2016 09:15:01 +0000                                                                                                                                                                                                                
sh bash 4.4-r1                                                                                                                                                                                                                                                                 
ld GNU ld (Gentoo 2.25.1 p1.1) 2.25.1                                                                                                                                                                                                                                          
app-shells/bash:          4.4-r1::gentoo                                                                                                                                                                                                                                       
dev-java/java-config:     2.2.0-r3::gentoo                                                                                                                                                                                                                                     
dev-lang/perl:            5.22.2::gentoo                                                                                                                                                                                                                                       
dev-lang/python:          2.7.12::gentoo, 3.4.5::gentoo                                                                                                                                                                                                                        
dev-util/cmake:           3.6.2::gentoo                                                                                                                                                                                                                                        
dev-util/pkgconfig:       0.28-r2::gentoo                                                                                                                                                                                                                                      
sys-apps/baselayout:      2.2::gentoo                                                                                                                                                                                                                                          
sys-apps/openrc:          0.21.7::gentoo                                                                                                                                                                                                                                       
sys-apps/sandbox:         2.10-r1::gentoo                                                                                                                                                                                                                                      
sys-devel/autoconf:       2.13::gentoo, 2.69::gentoo                                                                                                                                                                                                                           
sys-devel/automake:       1.11.6-r1::gentoo, 1.14.1::gentoo, 1.15::gentoo                                                                                                                                                                                                      
sys-devel/binutils:       2.25.1-r1::gentoo                                                                                                                                                                                                                                    
sys-devel/gcc:            5.4.0::gentoo                                                                                                                                                                                                                                        
sys-devel/gcc-config:     1.7.3::gentoo                                                                                                                                                                                                                                        
sys-devel/libtool:        2.4.6-r2::gentoo                                                                                                                                                                                                                                     
sys-devel/make:           4.1-r1::gentoo                                                                                                                                                                                                                                       
sys-kernel/linux-headers: 4.5::gentoo (virtual/os-headers)                                                                                                                                                                                                                     
sys-libs/glibc:           2.22-r4::gentoo                                                                                                                                                                                                                                      
Repositories:

gentoo
    location: /portage
    sync-type: rsync
    sync-uri: rsync://rsync.fr.gentoo.org/gentoo-portage
    priority: -1000

kde
    location: /var/lib/layman/kde
    masters: gentoo
    priority: 0

gamerlay
    location: /var/lib/layman/gamerlay
    masters: gentoo
    priority: 1

x-portage
    location: /usr/local/portage
    masters: gentoo
    priority: 2

ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O2 -pipe "
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/lib64/libreoffice/program/sofficerc /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/php/apache2-php5.5/ext-active/ /etc/php/apache2-php5.6/ext-active/ /etc/php/apache2-php7.0/ext-active/ /etc/php/cgi-php5.5/ext-active/ /etc/php/cgi-php5.6/ext-active/ /etc/php/cgi-php7.0/ext-active/ /etc/php/cli-php5.5/ext-active/ /etc/php/cli-php5.6/ext-active/ /etc/php/cli-php7.0/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-march=native -O2 -pipe "
DISTDIR="/portage/distfiles"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs clean-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news 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://91.121.124.139/gentoo-distfiles/ http://91.121.125.139/gentoo-distfiles/ ftp://ftp.swin.edu.au/gentoo  ftp://gentoo.mirrors.ovh.net/gentoo-distfiles/"
LANG="fr_FR.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j4"
PKGDIR="/portage/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 aacs aalib acl acpi alsa amd64 ao avahi bash-completion bdplus berkdb bindist bluetooth bluray branding bzip2 cairo cdaudio cdda cddb cdparanoia cdr cjk cli consolekit cracklib crypt css cups cxx dbus declarative dhcpcd dri dri3 dts dv dvb dvd dvdnav dvdr emboss encode epub evdev exif ffmpeg firefox flac fontconfig fortran gd gdbm gif glamor gpm gstreamer gtk gzip iconv icu imap inotify ipv6 jpeg jpeg2k kde kipi lame laptop lcms ldap libkms libnotify lzma lzo mad maildir matroska memlimit mhash mikmod mime mmap mmx mmxext mng mod modules motif mp3 mp4 mpeg mtp multilib mysql ncurse ncurses networkmanager nls nptl ogg openal opengl openmp oss pam pango pcmcia pcre pdf phonon plasma png policykit ppds prison pulseaudio qml qt3support qt4 qt5 quicktime raw readline resolvconf scanner sdl seccomp semantic-desktop sematic-deskyop session smp solid spell sse sse2 ssl startup-notification svg syslog taglib tcpd theora thumbnail tidy tiff truetype udev udisks unicode upower usb utf8 v4l v4l2 vaapi vcd vdpau video vim-syntax vorbis widgets wifi win32codecs wxwidgets x x264 xattr xcb xcomposit xcomposite xine xinerama xml xosd xpm xscreensaver xulrunner xv xvid zip zlib" ABI_X86="64 32" 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" CPU_FLAGS_X86="aes avx mmx mmxext popcnt sse sse2 sse3 sse4_1 sse4_2 ssse3" 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 ublox ubx" GRUB_PLATFORMS="efi-64" INPUT_DEVICES="evdev synaptics" KERNEL="linux" L10N="en-GB es-VE fr-FR en es fr" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="en_GB es_VE fr_FR en es fr" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-6" PYTHON_SINGLE_TARGET="python3_4" PYTHON_TARGETS="python2_7 python3_4" RUBY_TARGETS="ruby20 ruby21" USERLAND="GNU" VIDEO_CARDS="intel i965 nvidia modesetting" 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, USE_PYTHON
Comment 3 jms 2016-11-02 12:21:42 UTC
^[[01m^[[KlibXNVCtrlAttributes/NvCtrlAttributesNvml.c:36:18:^[[m^[[K ^[[01;31m^[[Kfatal error: ^[[m^[[Knvml.h: No such file or directory
compilation terminated.
Makefile:309: recipe for target '_out/Linux_x86_64/NvCtrlAttributesNvml.o' failed
make: *** [_out/Linux_x86_64/NvCtrlAttributesNvml.o] Error 1
Comment 5 Gordon Pritchard 2016-11-02 13:23:33 UTC
Yes, I confirm this bug also.

libXNVCtrlAttributes/NvCtrlAttributesNvml.c:36:18: fatal error: nvml.h: No such file or directory
Comment 6 Michael Stypa 2016-11-02 14:01:04 UTC
Created attachment 452178 [details, diff]
nvml.h fix

this is a first try to patch this. please test.
Comment 7 poncho 2016-11-02 14:57:48 UTC
Created attachment 452182 [details, diff]
rename nvml.h-${PV} to nvml.h

 src_prepare() {
 	if use tools; then
-		cp "${DISTDIR}"/nvml.h-${PV} "${S}"/nvidia-settings-${PV}/src/ || die
+		cp "${DISTDIR}"/nvml.h-${PV} "${S}"/nvidia-settings-${PV}/src/nvml.h || die
 		sed -i -e 's|-lnvidia-ml|-L../../ &|g' nvidia-settings-${PV}/src/Makefile || die
 	fi
Comment 9 Paul Klos 2016-11-02 19:03:46 UTC
The fix seems to work indeed. After re-syncing the nvidia drivers built just fine.
Comment 10 zlg (RETIRED) gentoo-dev 2016-11-03 08:18:50 UTC
Fix worked for me as well.
Comment 11 Coacher 2016-11-05 20:19:18 UTC
Should be fixed in https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=069898e8c7f9c4bb60b6aa164eba1aa243b02f9e
Please retry with this commit and reopen the bug if needed.