If kernel is compiled with gcc 3.3.x and nvidia-kernel with 3.4.x, module can't be load So maybe the ebuild make check that and then stop emerging and tell the user to change currently running gcc version with gcc-config dmesg tell me that : nvidia: version magic '2.6.11-gentoo-r3 preempt K7 gcc-3.4' should be '2.6.11-gentoo-r3 preempt K7 gcc-3.3' Reproducible: Always Steps to Reproduce: 1. emerge -uva nvidia-kernel 2. modprobe nvidia 3. Actual Results: Right good : gcc-config 2 (3.3.5) ^^ ROOT ^^ ~ # modprobe nvidia ^^ ROOT ^^ ~ # ^^ ROOT ^^ ~ # emerge info (guybrush) 13/03 04:07:44 Portage 2.0.51.19 (default-linux/x86/2004.3, gcc-3.3.5-20050130, glibc-2.3.4.20050125-r0, 2.6.11-gentoo-r3 i686) ================================================================= System uname: 2.6.11-gentoo-r3 i686 AMD Athlon(TM) XP 2000+ Gentoo Base System version 1.6.10 Python: dev-lang/python-2.3.5 [2.3.5 (#1, Feb 21 2005, 21:01:58)] distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled] ccache version 2.4 [enabled] dev-lang/python: 2.3.5 sys-devel/autoconf: 2.59-r6, 2.13 sys-devel/automake: 1.7.9-r1, 1.8.5-r3, 1.5, 1.4_p6, 1.6.3, 1.9.5 sys-devel/binutils: 2.15.92.0.2-r6 sys-devel/libtool: 1.5.10-r5 virtual/os-headers: 2.6.8.1-r2 ACCEPT_KEYWORDS="x86 ~x86" AUTOCLEAN="yes" CFLAGS="-O3 -march=athlon-xp -pipe -fomit-frame-pointer" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.3/env /usr/kde/3.3/share/config /usr/kde/3.3/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb /usr/lib/mozilla/defaults/pref /usr/share/config /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/bind /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-O3 -march=athlon-xp -pipe -fomit-frame-pointer" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs autoconfig candy ccache distlocks fixpackages sandbox sfperms test" GENTOO_MIRRORS="http://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/ http://gentoo.inode.at/ http://gentoo.math.bme.hu http://ftp.uni-erlangen.de/pub/mirrors/gentoo http://www.die.unipd.it/pub/Linux/distributions/gentoo-sources/ http://ftp.rhnet.is/pub/gentoo/ http://ftp.ntua.gr/pub/linux/gentoo/ http://linux.rz.ruhr-uni-bochum.de/download/gentoo-mirror/ http://ftp.heanet.ie/pub/gentoo/" LANG="fr_FR@euro" LC_ALL="fr_FR@euro" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage/perso /usr/local/portage/others /usr/local/portage/zugaina" SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage" USE="x86 3dnow 3dnowex X acl acpi alsa apache2 apm arts avi berkdb bitmap-fonts cairo cddb cdr crypt cscope curl dvd emboss encode ethereal fam font-server foomaticdb fortran gdbm gif gpm gstreamer gtk gtk2 imagemagick imap imlib java jpeg junit kde lcms ldap libg++ libwww maildir memlimit mmx mmx2 mozilla mp3 mpeg msn mysql ncurses nls ntpl nvidia oggvorbis opengl pam pdflib perl png ppds python qt quicktime readline sdl slang snmp spell sse ssl tcltk tcpd tetex theora tiff truetype truetype-fonts type1-fonts unicode usb videos xml xml2 xmms xsl xv zlib linguas_fr" Unset: ASFLAGS, CBUILD, CTARGET, LDFLAGS
maybe a warning should be added but causing the emerge to abort is wrong you can emerge modules for kernels other than the one you're actively using, so comparing the built module against the active kernel is incorrect
Well, like Mike said - we cannot abort, as you might be compiling for a new kernel, and im thinking that you did already get a warning mesg in dmesg, so no real need to clutter the ebuild 8)
that about sums it up then