Summary: | x11-drivers/nvidia-drivers and other out-of-kernel drivers fail with ccache | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Sven Schwyn (svoop) <gentoo> |
Component: | New packages | Assignee: | Ricardo Mendoza (RETIRED) <ricmm> |
Status: | RESOLVED DUPLICATE | ||
Severity: | normal | CC: | dliana, maltee, phajdan.jr, robbat2, toolchain |
Priority: | High | ||
Version: | unspecified | ||
Hardware: | AMD64 | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- |
Description
Sven Schwyn (svoop)
2008-05-29 18:58:35 UTC
Seems your measures didn't help Doug. Out of curiosity - why are you using these export statements instead RESTICT="distcc ccache", btw.? I don't maintain nvidia-drivers anymore. That's what I was told to use by the Portage guys at the time since we didn't have restrict statements for that. What's worse, it also happens with amd64 stable nvidia-drivers-100.14.19 and gentoo-sources-2.6.24-r8 (also stable). It does not compile no matter how many attempts I do. This is probably nvidia's fault, but maybe they have an updated version or something. same here amd64 gentoo-sources-2.6.24-r8 nvidia-drivers 100.14.19 or 173.14.09 emerge always fails not matter how often I try. This did not happen with 2.6.24-r7 so I suppose It's not caused by the nvidia-drivers. I will try 2.6.25. In Datei, eingefügt von /var/tmp/portage/x11-drivers/nvidia-drivers-173.14.09/work/NVIDIA-Linux-x86_64-173.14.09-pkg2/usr/src/nv/nv.c:14: /var/tmp/portage/x11-drivers/nvidia-drivers-173.14.09/work/NVIDIA-Linux-x86_64-173.14.09-pkg2/usr/src/nv/nv-linux.h:579:2: Fehler: #error "NV_KMEM_CACHE_CREATE() undefined (kmem_cache_create() unavailable)!" /var/tmp/portage/x11-drivers/nvidia-drivers-173.14.09/work/NVIDIA-Linux-x86_64-173.14.09-pkg2/usr/src/nv/nv.c: In Funktion »nvos_get_agp_device_by_class«: /var/tmp/portage/x11-drivers/nvidia-drivers-173.14.09/work/NVIDIA-Linux-x86_64-173.14.09-pkg2/usr/src/nv/nv.c:545: Fehler: Implizite Deklaration der Funktion »pci_find_class« /var/tmp/portage/x11-drivers/nvidia-drivers-173.14.09/work/NVIDIA-Linux-x86_64-173.14.09-pkg2/usr/src/nv/nv.c:545: Warnung: Zuweisung erzeugt Zeiger von Ganzzahl ohne Typkonvertierung /var/tmp/portage/x11-drivers/nvidia-drivers-173.14.09/work/NVIDIA-Linux-x86_64-173.14.09-pkg2/usr/src/nv/nv.c:550: Warnung: »pci_find_slot« ist veraltet (deklariert bei include/linux/pci.h:493) /var/tmp/portage/x11-drivers/nvidia-drivers-173.14.09/work/NVIDIA-Linux-x86_64-173.14.09-pkg2/usr/src/nv/nv.c:559: Warnung: Zuweisung erzeugt Zeiger von Ganzzahl ohne Typkonvertierung /var/tmp/portage/x11-drivers/nvidia-drivers-173.14.09/work/NVIDIA-Linux-x86_64-173.14.09-pkg2/usr/src/nv/nv.c: In Funktion »nv_get_pci_device«: /var/tmp/portage/x11-drivers/nvidia-drivers-173.14.09/work/NVIDIA-Linux-x86_64-173.14.09-pkg2/usr/src/nv/nv.c:569: Warnung: »pci_find_device« ist veraltet (deklariert bei include/linux/pci.h:492) amd64, 2.6.24-gentoo-r8, nvidia-drivers-173.14.09 This newest ebuild compiles flawlessly on my box. Which kernel are you using? oops, I must have been blind somehow... after some googling, disabling ccace solved the problem for me: #137000 Sven Schwyns build.log does not have exactly the same output as mine does so the problem could be a different one. According to the above bug, ccache is disabled for newer ebuilds. It doesn't seem like it though. There it is again, won't compile (same error) on kernel 2.6.25-gentoo-r7 (coming from r6). Temporary disabling ccache in make.conf is a proven workaround for now, though. Forgot to mention: This time it won't compile at all, nor on the first, second, whateverth attempt - unless I disable ccache. Basically for some reason the ccache data isn't being invalidated when something is changing the source code. I've seen it happen with more then just nvidia-drivers and on each occasion it's been an out-of-kernel driver that we have packaged in Gentoo. I don't have the exact steps to reproduce this but for a long time I was unable to and then it began to happen for a while. I changed release kernels (i.e the issue occurred for me with every 2.6.25 kernel on 1 machine) and it went away. But I recompiled my 2.6.26 kernel with some different options and the issue returned. If the ccache maintainers have any idea whats possibly being doing wrong with linux-mod.eclass and friends or the proper way to disable ccache since CCACHE_DISABLE=1 doesn't appear to work that'd help. ccache maintainer here. Could you please add CCACHE_LOGFILE=/tmp/ccache.log to your make.conf, and re-run the emerge, then attach that logfile. Reading the output here, I think that using ccache is exposing a parallel compile issue. You should test with MAKEOPTS=-j1 as well. I tried to reproduce this, but even without changes, the ebuilds do not work for me, hating on my kernel: # ebuild nvidia-drivers-173.14.12.ebuild clean compile * NVIDIA-Linux-x86_64-173.14.12-pkg2.run RMD160 SHA1 SHA256 size ;-) ... [ ok ] * checking ebuild checksums ;-) ... [ ok ] * checking auxfile checksums ;-) ... [ ok ] * checking miscfile checksums ;-) ... [ ok ] * checking NVIDIA-Linux-x86_64-173.14.12-pkg2.run ;-) ... [ ok ] * Determining the location of the kernel source code * Found kernel source directory: * /usr/src/linux * Found sources for kernel version: * 2.6.28-rc5-00117-g7f0f598 * Checking for MTRR support ... [ ok ] * Checking for SYSVIPC support ... [ ok ] >>> Unpacking source... Creating directory NVIDIA-Linux-x86_64-173.14.12-pkg2 Verifying archive integrity... OK Uncompressing NVIDIA Accelerated Graphics Driver for Linux-x86_64 173.14.12........................................................................................................................................... * Applying NVIDIA_glx-defines.patch ... [ ok ] * Applying NVIDIA_glx-glheader.patch ... [ ok ] * Applying NVIDIA_i2c-hwmon.patch ... [ ok ] * Converting NVIDIA-Linux-x86_64-173.14.12-pkg2/usr/src/nv/Makefile.kbuild to use M= instead of SUBDIRS= ... [ ok ] >>> Source unpacked. >>> Compiling source in /dev/shm/portage/x11-drivers/nvidia-drivers-173.14.12/work/NVIDIA-Linux-x86_64-173.14.12-pkg2 ... * Preparing nvidia module make -j4 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=/usr/src/linux 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 Portage 2.2_rc17 (default/linux/amd64/2008.0, gcc-4.2.4, glibc-2.9_p20081201-r0, 2.6.28-rc5-00117-g7f0f598 x86_64) ================================================================= System uname: Linux-2.6.28-rc5-00117-g7f0f598-x86_64-Intel-R-_Core-TM-2_Quad_CPU_Q6600_@_2.40GHz-with-glibc2.2.5 Timestamp of tree: Sun, 13 Jul 2008 00:00:01 +0000 ccache version 2.4 [enabled] app-shells/bash: 3.2_p48 dev-java/java-config: 1.3.7-r1, 2.1.6-r1 dev-lang/python: 2.5.2-r8 dev-python/pycrypto: 2.0.1-r6 dev-util/ccache: 2.4-r8 dev-util/cmake: 2.6.2 sys-apps/baselayout: 2.0.0 sys-apps/openrc: 9999 sys-apps/sandbox: 1.2.18.1-r3 sys-devel/autoconf: 2.13, 2.63 sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.2 sys-devel/binutils: 2.19 sys-devel/gcc-config: 1.4.0-r4 sys-devel/libtool: 2.2.6a virtual/os-headers: 2.6.27-r2 ACCEPT_KEYWORDS="amd64 ~amd64" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-march=nocona -O2 -pipe -g" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /var/bind /var/spool/torque" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/eselect/postgresql /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/splash /etc/terminfo /etc/texmf/web2c /etc/udev/rules.d" CXXFLAGS="-march=nocona -O2 -pipe -g" DISTDIR="/home/gentoo/distfiles" FEATURES="assume-digests autoaddcvs buildpkg ccache collision-protect cvs distlocks fixpackages lmirror mirror multilib-strict parallel-fetch preserve-libs protect-owned sandbox sfperms splitdebug strict unmerge-orphans userfetch userpriv" GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo" LANG="en_US.UTF-8" LDFLAGS="-Wl,-O1" LINGUAS="en en_CA en_US en_GB en_ZA" MAKEOPTS="-j4" PKGDIR="/home/gentoo/packages/grubb-int/" 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="/dev/shm" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="" USE="3dnow aalib acl acpi adns aio alsa amd amd64 apache2 apm audit berkdb bzip2 cairo cdr cgi clearpasswd cli cracklib crypt cups curl dbus divx4linux dri dvd dvdr encode f77 fam foomaticdb fortran frxp gcj gd gdbm geoip gif glitz gpgme hpn iconv idn imap innodb ipalias ipv6 isdnlog jikes jpeg junit latex libwww logrotate mad maildir mcal md5sum midi mikmod mmx mp3 mpeg mpm-prefork mudflap multicall multilib multitarget mysql ncurses nptl nptlonly objc offensive ogg openmp pam pcap pcre pdf pdflib perl pic plotutils png pnp ppds pppd python qmail readline reflection samba scanner session slp smime snmp socks5 spell spl sse sse2 ssl svg sysfs tetex threads tiff truetype truetype-fonts type1 type1-fonts udev ungif unicode usb userlocales v4l v4l2 vhosts vim-syntax vorbis xcb xml xml2 xorg 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 asis auth_digest imagemap log_forensic proxy proxy_ajp proxy_balancer proxy_connect proxy_ftp proxy_http" APACHE2_MPMS="prefork" ELIBC="glibc" FOO2ZJS_DEVICES="hp1020" INPUT_DEVICES="evdev keyboard mouse void" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en en_CA en_US en_GB en_ZA" USERLAND="GNU" VIDEO_CARDS="dummy fbdev nv v4l vga vesa i810" Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS Is this still a problem? Nothing has happened here for quite some time...did this resolve itself? i think this is a dupe of Bug 196243 I agree with vapier. Closing as one of the ccache maintainers. *** This bug has been marked as a duplicate of bug 196243 *** |