Ebuild fails the message cut&pasted in "actual results" I have two similar dual Opteron machines under GEntoo at the moment and this ebuild fails on one of them. Both have newest profile gcc-3.4.x, I'm using gcc 3.4.3 on both machines at the moment and both have vanilla kernel (working machine has latest 2.6.10rc1 and non-working machine has 2.6.8.1) Linux softlink in /usr/src points to correct kernel version, so I don't think this is the problem. I have nvidia-kernel,nvidia-glx and nvidia-settings in /etc/portage/package.keywords marked as unbstable (~amd64) Reproducible: Always Steps to Reproduce: 1. emerge nvidia-kernel 2. 3. Actual Results: * Applying conftest_koutput_includes.patch ... [ ok ] * Applying nv-pgd_offset.patch ... [ ok ] * Applying nv-disable-preempt-on-smp_processor_id.patch ... [ ok ] * Applying nv-shutup-warnings.patch ... * Failed Patch: nv-shutup-warnings.patch! * * Include in your bugreport the contents of: * * /var/tmp/portage/nvidia-kernel-1.0.6629/temp/nv-shutup-warnings.patch-3956.out !!! ERROR: media-video/nvidia-kernel-1.0.6629 failed. !!! Function epatch, Line 402, Exitcode 0 !!! Failed Patch: nv-shutup-warnings.patch! !!! If you need support, post the topmost build error, NOT this status message. Expected Results: succesfully finished ebuild with installed nvidia.ko module as a result. Portage 2.0.51-r3 (gcc34-amd64-2004.1, gcc-3.4.2, glibc-2.3.4.20040808-r1, 2.6.8.1 x86_64) ================================================================= System uname: 2.6.8.1 x86_64 AMD Opteron(tm) Processor 240 Gentoo Base System version 1.4.16 distcc 2.13 x86_64-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled] ccache version 2.3 [disabled] Autoconf: sys-devel/autoconf-2.59-r5 Automake: sys-devel/automake-1.8.5-r1 Binutils: sys-devel/binutils-2.15.90.0.1.1-r3 Headers: sys-kernel/linux26-headers-2.6.8.1-r1 Libtools: sys-devel/libtool-1.5.2-r5 ACCEPT_KEYWORDS="amd64" Here is output of emerge info : AUTOCLEAN="yes" CFLAGS="-march=opteron -O3 -pipe -fPIC" CHOST="x86_64-pc-linux-gnu" COMPILER="" CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.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/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="-march=opteron -O3 -pipe -fPIC" DISTDIR="/usr/portage/distfiles" FEATURES="candy" GENTOO_MIRRORS="ftp://gd.tuwien.ac.at/opsys/linux/gentoo/ http://gd.tuwien.ac.at/opsys/linux/gentoo/ ftp://gentoo.inode.at/source/ http://www.gigaload.org/gentoo.org/ http://mir.zyrianes.net/gentoo/" MAKEOPTS="-j5" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="X aalib alsa amd64 apm arts avi berkdb bitmap-fonts cdr crypt cups directfb divx4linux doc dvdr emacs encode esd evo f77 fbcon foomaticdb fortran ftp gdbm gif gnome gpm gstreamer gtk gtk2 hal imagemagick imlib jack java jpeg kde libg++ libgda libwww mad mikmod motif mozilla mpeg multilib mysql nas ncurses nls nptl oggvorbis openal opengl oss pam pdflib perl png postgres python qt quicktime readline samba scanner sdl shared sharedmem slang sockets spell ssl svg tcltk tcpd tetex tiff truetype unicode usb xine xml2 xmms xosd xpm xv xvid zlib"
Same result here with a 2.6.9 vanilla
Edit the ebuild and comment out this patch, then emerge again (thank to lv in IRC) :)
This should already be fixed in latest version of this ebuild.