When I tried to emerge dev-libs/libmimedir (in the process of emerging synce-kde) it replaced the symlink pointing /usr/lib64 to /usr/lib with a file containing gibberish. This prevents gcc from working properly. The actual compile itself seems to work properly. I copied libmimedir.a to /usr/lib and fixed the symlink and everything works fine now. Reproducible: Always Steps to Reproduce: 1. Emerge dev-libs/libmimedir 2. Try and emerge anything else Actual Results: I got an error claiming that gcc could not create any executables. Expected Results: Installed correctly without borking my symlink and, in turn, gcc. Portage 2.0.51.19 (default-linux/amd64/2005.0, gcc-3.4.3, glibc-2.3.4.20050125-r1, 2.6.11-gentoo-r3 x86_64) ================================================================= System uname: 2.6.11-gentoo-r3 x86_64 AMD Athlon(tm) 64 Processor 3200+ Gentoo Base System version 1.4.16 Python: dev-lang/python-2.3.4-r1 [2.3.4 (#1, Mar 4 2005, 07:02:38)] distcc 2.18.3 x86_64-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled] dev-lang/python: 2.3.4-r1 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.4 sys-devel/binutils: 2.15.92.0.2-r1 sys-devel/libtool: 1.5.10-r4 virtual/os-headers: 2.6.8.1-r4 ACCEPT_KEYWORDS="amd64" AUTOCLEAN="yes" CFLAGS="-O2 -march=athlon64 -pipe" CHOST="x86_64-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/share/config /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-O2 -march=athlon64 -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs autoconfig ccache distlocks sandbox" GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/Linux/distributions/gentoo" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="amd64 X acpi alsa apm arts berkdb bitmap-fonts cdparanoia cdr crypt cups curl dvd dvdr fam flac font-server foomaticdb fortran gif gpm imagemagick ipv6 java jp2 jpeg junit kde lm_sensors lzw lzw-tiff motif mp3 ncurses nls nptl oggvorbis opengl oss pam perl png python qt readline samba spell sqlite ssl tcpd tiff truetype truetype-fonts type1-fonts usb userlocales xinerama xml2 xpm xrandr xv zlib" Unset: ASFLAGS, CBUILD, CTARGET, LANG, LC_ALL, LDFLAGS I know that amd64 is not listed as a supported architechture in the ebuild, but aside from the system breaking during install, the library itself works without problems.
Changed 'dodir /usr/lib' to 'dodir /usr/$(get_libdir)'. Marked ~amd64 as well. FIXED.