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

Bug 216059

Summary: drivers package don't compile (died sourcing /usr/portage/eclass/linux-mod.eclass in inherit())
Product: Gentoo Linux Reporter: François Valenduc <francoisvalenduc>
Component: New packagesAssignee: Gentoo Linux bug wranglers <bug-wranglers>
Status: RESOLVED DUPLICATE    
Severity: critical    
Priority: High    
Version: 2007.0   
Hardware: AMD64   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: build.log file
eclass.log file

Description François Valenduc 2008-04-03 17:07:26 UTC
When I try to emerge nvidia-drivers-169.12, it doesn't work and ends with this error:


 * checking ebuild checksums ;-) ...                                                                                                                 [ ok ]
 * checking auxfile checksums ;-) ...                                                                                                                [ ok ]
 * checking miscfile checksums ;-) ...                                                                                                               [ ok ]
 * checking NVIDIA-Linux-x86_64-169.12-pkg2.run ;-) ...                                                                                              [ ok ]
/usr/portage/eclass/linux-mod.eclass: line 409: syntax error near unexpected token `else'
/usr/portage/eclass/linux-mod.eclass: line 409: `               else'
 *
 * ERROR: x11-drivers/nvidia-drivers-169.12 failed.
 * Call stack:
 *                      ebuild.sh, line 1696:  Called source '/usr/portage/x11-drivers/nvidia-drivers/nvidia-drivers-169.12.ebuild'
 *   nvidia-drivers-169.12.ebuild, line    5:  Called inherit 'eutils' 'multilib' 'versionator' 'linux-mod' 'flag-o-matic' 'nvidia-driver'
 *                      ebuild.sh, line 1196:  Called die
 * The specific snippet of code:
 *              qa_source "$location" || die "died sourcing $location in inherit()"
 *  The die message:
 *   died sourcing /usr/portage/eclass/linux-mod.eclass in inherit()
 *
 * If you need support, post the topmost build error, and the call stack if relevant.
 * A complete build log is located at '/var/tmp/portage/x11-drivers/nvidia-drivers-169.12/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/x11-drivers/nvidia-drivers-169.12/temp/die.env'.
 *

I am trying to compile the nvidia driver for kernel 2.6.24.4

Reproducible: Always

Steps to Reproduce:
1.Try to emerge nvidia-drivers
2.
3.
Comment 1 François Valenduc 2008-04-03 17:08:07 UTC
Created attachment 148453 [details]
build.log file
Comment 2 François Valenduc 2008-04-03 17:08:44 UTC
Output of emerge --info:

Portage 2.1.4.4 (default-linux/amd64/2007.0/desktop, gcc-4.1.2, glibc-2.6.1-r0, 2.6.24.4 x86_64)
=================================================================
System uname: 2.6.24.4 x86_64 Intel(R) Core(TM)2 Duo CPU T7500 @ 2.20GHz
Timestamp of tree: Thu, 03 Apr 2008 16:18:01 +0000
distcc 2.18.3 x86_64-pc-linux-gnu (protocols 1 and 2) (default port 3632) [enabled]
ccache version 2.4 [enabled]
app-shells/bash:     3.2_p17-r1
dev-java/java-config: 1.3.7, 2.1.4
dev-lang/python:     2.4.4-r9
dev-python/pycrypto: 2.0.1-r6
dev-util/ccache:     2.4-r7
sys-apps/baselayout: 1.12.11.1
sys-apps/sandbox:    1.2.18.1-r2
sys-devel/autoconf:  2.13, 2.61-r1
sys-devel/automake:  1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10
sys-devel/binutils:  2.18-r1
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   1.5.26
virtual/os-headers:  2.6.23-r3
ACCEPT_KEYWORDS="amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe -march=nocona"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/revdep-rebuild /etc/splash /etc/terminfo /etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-O2 -pipe -march=nocona"
DISTDIR="/usr/portage/distfiles"
FEATURES="ccache distcc distlocks metadata-transfer parallel-fetch sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://ftp.belnet.be/mirror/rsync.gentoo.org/gentoo/"
LANG="fr_BE.UTF-8"
LC_ALL="fr_BE.UTF-8"
LINGUAS="fr"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
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="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/portage/local/layman/ecatmur /usr/portage/local/layman/zugaina /usr/portage/local/layman/x11 /usr/portage/local/layman/desktop-effects /usr/local/portage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="X acl acpi aiglx alsa amd64 arts berkdb cairo cdr cli cracklib crypt cups dbus dri dvd dvdr dvdread eds emboss encode esd evo fam firefox fortran gdbm gif gnome gpm gstreamer gtk hal iconv ipv6 isdnlog jpeg kde kerberos ldap mad midi mikmod mmx mp3 mpeg mudflap ncurses nls nptl nptlonly nsplugin ogg opengl openmp oss pam pcre pdf perl png pppd python qt3 qt3support qt4 quicktime readline reflection sdl session spell spl sse sse2 ssl svg tcpd tetex tiff truetype unicode vorbis xml xorg xosd xv 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 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" ELIBC="glibc" INPUT_DEVICES="mouse evdev keyboard" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="fr" USERLAND="GNU" VIDEO_CARDS="nvidia"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LDFLAGS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 3 François Valenduc 2008-04-03 17:10:03 UTC
Until yesterday, it worked well. Suddenly today, it doesn't work at all !
Comment 4 François Valenduc 2008-04-03 17:12:23 UTC
Created attachment 148460 [details]
eclass.log file

Since there are errors about eclass files, maybe this file is interesting.
Comment 5 François Valenduc 2008-04-03 17:26:35 UTC
It seems in fact that packages corresponding to kernel drivers doesn't build at all, which is very annoying !!! I also tried to build iwlwifi and it generates the same error:

 * checking ebuild checksums ;-) ...                                                                                                                 [ ok ]
 * checking auxfile checksums ;-) ...                                                                                                                [ ok ]
 * checking miscfile checksums ;-) ...                                                                                                               [ ok ]
 * checking iwlwifi-1.2.23.tgz ;-) ...                                                                                                               [ ok ]
/usr/portage/eclass/linux-mod.eclass: line 409: syntax error near unexpected token `else'
/usr/portage/eclass/linux-mod.eclass: line 409: `               else'
 *
 * ERROR: net-wireless/iwlwifi-1.2.23 failed.
 * Call stack:
 *               ebuild.sh, line 1696:  Called source '/usr/portage/net-wireless/iwlwifi/iwlwifi-1.2.23.ebuild'
 *   iwlwifi-1.2.23.ebuild, line    5:  Called inherit 'eutils' 'linux-mod'
 *               ebuild.sh, line 1196:  Called die
 * The specific snippet of code:
 *              qa_source "$location" || die "died sourcing $location in inherit()"
 *  The die message:
 *   died sourcing /usr/portage/eclass/linux-mod.eclass in inherit()
 *
 * If you need support, post the topmost build error, and the call stack if relevant.
 * A complete build log is located at '/var/tmp/portage/net-wireless/iwlwifi-1.2.23/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/net-wireless/iwlwifi-1.2.23/temp/die.env'.
 *
Comment 6 Rick Harris 2008-04-03 18:07:16 UTC
Yes, /usr/portage/eclass/linux-mod.eclass is fooed here as well.
To workaround until a fix is committed, around line 407, change:
                if kernel_is ge 2 6
                        insinto /etc/modprobe.d
                else

to read:
                if kernel_is ge 2 6
                then
                        insinto /etc/modprobe.d
                else


An 'emerge --sync' will overwrite these changes.
Comment 7 Carsten Lohrke (RETIRED) gentoo-dev 2008-04-03 22:25:42 UTC

*** This bug has been marked as a duplicate of bug 216048 ***