make: Leaving directory `/var/tmp/portage/svgalib-1.9.18/work/svgalib-1.9.18/thr eeDKit' make: Entering directory `/usr/src/linux-2.6.3' CLEAN arch/i386/boot/compressed ACCESS DENIED unlink: /usr/src/linux-2.6.3/arch/i386/boot/compressed/vmlinux rm: cannot remove `arch/i386/boot/compressed/vmlinux': Permission denied ACCESS DENIED unlink: /usr/src/linux-2.6.3/arch/i386/boot/compressed/vmlinux .bin rm: cannot remove `arch/i386/boot/compressed/vmlinux.bin': Permission denied ACCESS DENIED unlink: /usr/src/linux-2.6.3/arch/i386/boot/compressed/vmlinux .bin.gz rm: cannot remove `arch/i386/boot/compressed/vmlinux.bin.gz': Permission denied ACCESS DENIED unlink: /usr/src/linux-2.6.3/arch/i386/boot/compressed/head.o rm: cannot remove `arch/i386/boot/compressed/head.o': Permission denied ACCESS DENIED unlink: /usr/src/linux-2.6.3/arch/i386/boot/compressed/misc.o rm: cannot remove `arch/i386/boot/compressed/misc.o': Permission denied ACCESS DENIED unlink: /usr/src/linux-2.6.3/arch/i386/boot/compressed/piggy.o rm: cannot remove `arch/i386/boot/compressed/piggy.o': Permission denied make[2]: *** [__clean] Error 1 make[1]: *** [arch/i386/boot/compressed] Error 2 make: *** [archclean] Error 2 make: Leaving directory `/usr/src/linux-2.6.3' !!! ERROR: media-libs/svgalib-1.9.18 failed. !!! Function src_compile, Line 66, Exitcode 2 !!! Failed to build kernel module! Reproducible: Always Steps to Reproduce: 1. 2. 3. Portage 2.0.50-r1 (default-x86-1.4, gcc-3.3.3, glibc-2.3.3_pre20040207-r0, 2.6.3) ================================================================= System uname: 2.6.3 i686 Intel(R) Pentium(R) 4 CPU 2.40GHz Gentoo Base System version 1.4.3.13 distcc 2.12.1 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled] ccache version 2.3 [enabled] Autoconf: sys-devel/autoconf-2.57a-r1,sys-devel/autoconf-2.59-r3 Automake: sys-devel/automake-1.8.2 ACCEPT_KEYWORDS="x86 ~x86" AUTOCLEAN="yes" CFLAGS="-march=pentium3 -O2 -pipe" CHOST="i686-pc-linux-gnu" COMPILER="gcc3" CONFIG_PROTECT="/etc /opt/tomcat/conf /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.1/share/config /usr/kde/3.2/share/config /usr/kde/3/share/config /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/env.d" CXXFLAGS="-march=pentium3 -O2 -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs ccache sandbox" GENTOO_MIRRORS="ftp://sunsite.informatik.rwth-aachen.de/pub/Linux/gentoo" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="X Xaw3d aalib accessibility acl alsa antlr apache2 apm arts artswrappersuid avi bcel berkdb bidi bonobo bsg cdr chroot crypt cscope cups curl dga directfb doc dv dvb dvd encode esd faad fbcon firebird flac flash foomaticdb freetds gb gd gdbm ggi gif gnome gnomedb gphoto2 gpm gstreamer gtk gtk2 gtkhtml guile imagemagick imap imlib informix innodb ipv6 jack jack-caps java javamail javascript jbig jdepend jpeg jsch junit jython kde kerberos krb4 lcms ldap libg++ libgda libwww log4j mad maildir matroska mbox mcal mdb menu mikmod motif mozilla mozinterfaceinfo moznocompose moznoirc moznomail mozsvg mozxmlterm mpeg mpi mysql nas ncurses nhc98 nls nptl objc oci8 odbc oggvorbis opengl optional-tasks oro oss pam parse-clocks pda pdflib perl pg-hier pg-intdatetime pg-vacuumdelay pic png postgres ppds python qt quicktime readline regexp rhino rplay ruby ruby18 samba sasl sdk sdl skey slang slp snmp sox speex spell sqlite sse ssl stroke svga tcltk tcpd tetex tiff truetype ucs2 unicode usb wmf x86 xalan xerces xface xinerama xml xml2 xmms xv zlib"
are you running the emerge as 'sudo emerge svgalib' if so it dies.. has to do with the scope of sudo 'PATH' settings I think .. if you 'su' to root then all works fine provided fix in bug 42577 is applied and the outlined steps taken. .. at least for 2.6 version kernel
*** This bug has been marked as a duplicate of 42522 ***