I tried emerge -e emerge to start with, then this happened, so I did emerge sed and this is the errors it gave. Errors from emerge sed: ================================================================= make all-recursive make[1]: Entering directory `/var/tmp/portage/sed-4.1.4-r1/work/sed-4.1.4' Making all in intl make[2]: Entering directory `/var/tmp/portage/sed-4.1.4-r1/work/sed-4.1.4/intl' make[2]: Nothing to be done for `all'. make[2]: Leaving directory `/var/tmp/portage/sed-4.1.4-r1/work/sed-4.1.4/intl' Making all in lib make[2]: Entering directory `/var/tmp/portage/sed-4.1.4-r1/work/sed-4.1.4/lib' if x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I.. -I../lib -I../intl -I.. -I../lib -I../intl -march=athlon64 -pipe -O2 -MT getopt1.o -MD -MP -MF ".deps/getopt1.Tpo" -c -o getopt1.o getopt1.c; \ then mv -f ".deps/getopt1.Tpo" ".deps/getopt1.Po"; else rm -f ".deps/getopt1.Tpo"; exit 1; fi if x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I.. -I../lib -I../intl -I.. -I../lib -I../intl -march=athlon64 -pipe -O2 -MT getopt.o -MD -MP -MF ".deps/getopt.Tpo" -c -o getopt.o getopt.c; \ then mv -f ".deps/getopt.Tpo" ".deps/getopt.Po"; else rm -f ".deps/getopt.Tpo"; exit 1; fi if x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I.. -I../lib -I../intl -I.. -I../lib -I../intl -march=athlon64 -pipe -O2 -MT utils.o -MD -MP -MF ".deps/utils.Tpo" -c -o utils.o utils.c; \ then mv -f ".deps/utils.Tpo" ".deps/utils.Po"; else rm -f ".deps/utils.Tpo"; exit 1; fi if x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I.. -I../lib -I../intl -I.. -I../lib -I../intl -march=athlon64 -pipe -O2 -MT regex.o -MD -MP -MF ".deps/regex.Tpo" -c -o regex.o regex.c; \ then mv -f ".deps/regex.Tpo" ".deps/regex.Po"; else rm -f ".deps/regex.Tpo"; exit 1; fi In file included from regex.c:84: regex_internal.h:102:1: warning: "__mempcpy" redefined In file included from /usr/include/bits/string2.h:8, from /usr/include/gentoo-multilib/amd64/string.h:417, from /usr/include/string.h:8, from regex_internal.h:28, from regex.c:84: /usr/include/gentoo-multilib/amd64/bits/string2.h:207:1: warning: this is the location of the previous definition rm -f libsed.a ar cru libsed.a getopt1.o getopt.o utils.o regex.o x86_64-pc-linux-gnu-ranlib libsed.a make[2]: Leaving directory `/var/tmp/portage/sed-4.1.4-r1/work/sed-4.1.4/lib' Making all in po make[2]: Entering directory `/var/tmp/portage/sed-4.1.4-r1/work/sed-4.1.4/po' make[2]: Nothing to be done for `all'. make[2]: Leaving directory `/var/tmp/portage/sed-4.1.4-r1/work/sed-4.1.4/po' Making all in sed make[2]: Entering directory `/var/tmp/portage/sed-4.1.4-r1/work/sed-4.1.4/sed' if x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I.. -I../lib -I../intl -I.. -I../lib -I../intl -DLOCALEDIR=\"/usr/share/locale\" -march=athlon64 -pipe -O2 -MT sed.o -MD -MP -MF ".deps/sed.Tpo" -c -o sed.o sed.c; \ then mv -f ".deps/sed.Tpo" ".deps/sed.Po"; else rm -f ".deps/sed.Tpo"; exit 1; fi sed.c: In function `usage': sed.c:90: error: `stderr' undeclared (first use in this function) sed.c:90: error: (Each undeclared identifier is reported only once sed.c:90: error: for each function it appears in.) sed.c:90: error: `stdout' undeclared (first use in this function) sed.c: In function `main': sed.c:204: error: `EOF' undeclared (first use in this function) sed.c:271: error: `stdout' undeclared (first use in this function) make[2]: *** [sed.o] Error 1 make[2]: Leaving directory `/var/tmp/portage/sed-4.1.4-r1/work/sed-4.1.4/sed' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/var/tmp/portage/sed-4.1.4-r1/work/sed-4.1.4' make: *** [all] Error 2 !!! ERROR: sys-apps/sed-4.1.4-r1 failed. !!! Function src_compile, Line 63, Exitcode 2 !!! build failed !!! If you need support, post the topmost build error, NOT this status message. ================================================================= emerge --info: Portage 2.0.54 (default-linux/amd64/2006.0, gcc-3.4.5, glibc-2.3.5-r2, 2.6.14-gentoo-r2 x86_64) ================================================================= System uname: 2.6.14-gentoo-r2 x86_64 AMD Athlon(tm) 64 Processor 3200+ Gentoo Base System version 1.6.14 dev-lang/python: 2.3.5-r2, 2.4.2 sys-apps/sandbox: 1.2.12 sys-devel/autoconf: 2.13, 2.59-r7 sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1 sys-devel/binutils: 2.16.1 sys-devel/libtool: 1.5.22 virtual/os-headers: 2.6.11-r4 ACCEPT_KEYWORDS="amd64" AUTOCLEAN="yes" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-march=athlon64 -pipe -O2" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.4/env /usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb /usr/lib64/mozilla/defaults/pref /usr/share/config /var/bind /var/qmail/control" CONFIG_PROTECT_MASK="/etc/eselect/compiler /etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-march=athlon64 -pipe -O2" DISTDIR="/usr/portage/distfiles" FEATURES="autoconfig distlocks sandbox sfperms strict" GENTOO_MIRRORS="ftp://mirror.internode.on.net/pub/gentoo" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" SYNC="rsync://rsync.au.gentoo.org/gentoo-portage" USE="amd64 X alsa apache2 audiofile avi berkdb bitmap-fonts bonobo bzip2 cdr cjk cli crypt ctype cups curl dba dri eds emboss encode esd exif expat fam fastbuild ffmpeg foomaticdb force-cgi-redirect fortran ftp gd gdbm gif glut gnome gpm gstreamer gtk gtk2 gtkhtml hal howl idn imagemagick imlib ipv6 isdnlog jpeg kde lcms lzw lzw-tiff mad memlimit mng mozilla mp3 mpeg ncurses nls nptl ogg opengl pam pcre pdflib perl png posix pppd python qt quicktime readline sdl session simplexml soap sockets spell spl ssl tcpd tiff tokenizer truetype truetype-fonts type1-fonts udev usb vorbis xml xml2 xmms xpm xsl xv zlib userland_GNU kernel_linux elibc_glibc" Unset: ASFLAGS, CTARGET, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, LINGUAS, MAKEOPTS, PORTDIR_OVERLAY =================================================================
I did emerge gcc and tried again, it seems to work now... Is it possible that I broke something which cause this to happen? Sorry for the trouble, I really didn't have a clue.