Bilding the nvidia-kernel used to work with the 3.3.4 version of gcc. So this seems to be a compiler related issue. This applies tobith the nvidia-kernel-1.0.6111-r3 and the nvidia-kernel-1.0.6629 It looks for a file called: /usr/src/linux-2.6.9-gentoo-r6/arch/x86/Makefile But that doesn't exist because there is no "x86" architecture. I solved the problem by making a softlink as follows: lrwxrwxrwx 1 root root 24 Dec 1 19:29 /usr/src/linux/arch/x86 -> /usr/src/linux/arch/i386 After which it builds and install the module properly. Reproducible: Always Steps to Reproduce: 1. emerge the package without the softlink as describe above. 2. build fails module is not installed (even though unless you look closely it seems like it installed) 3. unmerge the package 4. create the softlink as above. 5. emerge the package. 6. check the /lib/modules/blah-blah directory for the module. It's there 7. startx or whatever to test. It works. Actual Results: See above Expected Results: see above Portage 2.0.51-r3 (default-linux/x86/2004.3, gcc-3.4.3, glibc-2.3.4.20041102-r0, 2.6.9-gentoo-r6 i686) ================================================================= System uname: 2.6.9-gentoo-r6 i686 Intel(R) Pentium(R) 4 CPU 2.40GHz Gentoo Base System version 1.6.6 distcc 2.16 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled] ccache version 2.3 [enabled] Autoconf: sys-devel/autoconf-2.59-r5 Automake: sys-devel/automake-1.8.5-r1 Binutils: sys-devel/binutils-2.15.92.0.2-r1 Headers: sys-kernel/linux26-headers-2.6.8.1-r1 Libtools: sys-devel/libtool-1.5.2-r7 ACCEPT_KEYWORDS="x86 ~x86" AUTOCLEAN="yes" CFLAGS="-O2 -march=pentium4 -fomit-frame-pointer" CHOST="i686-pc-linux-gnu" COMPILER="" CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /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/fax /usr/lib/mozilla/defaults/pref /usr/share/config /var/qmail/control /var/spool/fax/etc" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-O2 -march=pentium4 -fomit-frame-pointer" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs autoconfig ccache digest distlocks keepwork sandbox sfperms" GENTOO_MIRRORS="http://gentoo.binarycompass.org ftp://mirror.nutsmaas.nl/gentoo/ http://gentoo.math.bme.hu http://gentoo.mirror.sdv.fr ftp://gentoo.osuosl.org/.1/gentoo http://gentoo.osuosl.org" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="X alsa apm arts avi berkdb bitmap-fonts cdr crypt cscope cups encode esd f77 fam flac foomaticdb fortran gdbm gif gnome gpm gstreamer gtk gtk2 guile imagemagick imlib java jpeg junit kde libg++ libwww mad mikmod motif mozilla mpeg nasncurses nls nptl oggvorbis opengl oss pam pdflib perl png python qt quicktime readline samba sdl slang speex spell ssl svga tcltk tcpd tiff truetype x86 xml xml2 xmms xv zlib"
Created attachment 45099 [details] The attachment is the log for a failed build
Same problem here on amd64...
Needs to use set_arch_to_kernel() and set_arch_to_portage() from eutils.eclass.
Johnm : see the above comment, should this be done in the linux-info eclass?
Actually for a point of reference, this doesnt happen here. Which is very weird.
doesnt happen here either. its actually caused simply by ARCH being set. Will look at it shortly.
The ebuilds used to unset ARCH before compiling... That could just go back into them if necessary.
Could you please emerge sync, and then try again. please re-open if you still have problems, and let me know how you get on with a comment. cheers.
I sucessfully emerged nvidia-kernel-1.0.6629 on December 5th without having to make a softlink. I guess the problem is fixed. John
Excellent, glad its all working OK.
Yep, I can confirm it also works for me.