emerge mysql fails with the error message below (end of build log). The complete build log is attached in the next comment. My emerge --info output is at the bottom of this post. --- /bin/sh ../libtool --preserve-dup-deps --tag=CXX --mode=link i686-pc-linux-gnu-g++ -DDBUG_OFF -O2 -march=pentium4 -pipe -DHAVE_ERRNO_AS_DEFINE=1 -fno-exceptions -fno-strict-aliasing -felide-constructors -fno-rtti -fno-implicit-templates -fno-strict-aliasing -fno-implicit-templates -fno-exceptions -fno-rtti -Wl,-O1 -rdynamic -o libmysys.la -rpath /usr/lib/mysql my_init.lo my_getwd.lo mf_getdate.lo my_mmap.lo mf_path.lo mf_loadpath.lo my_file.lo my_open.lo my_create.lo my_dup.lo my_seek.lo my_read.lo my_pread.lo my_write.lo my_getpagesize.lo mf_keycache.lo mf_keycaches.lo my_crc32.lo mf_iocache.lo mf_iocache2.lo mf_cache.lo mf_tempfile.lo mf_tempdir.lo my_lock.lo mf_brkhant.lo my_alarm.lo my_malloc.lo my_realloc.lo my_once.lo mulalloc.lo my_alloc.lo safemalloc.lo my_new.lo my_fopen.lo my_fstream.lo my_getsystime.lo my_error.lo errors.lo my_div.lo my_messnc.lo mf_format.lo mf_same.lo mf_dirname.lo mf_fn_ext.lo my_symlink.lo my_symlink2.lo mf_pack.lo mf_unixpath.lo mf_strip.lo mf_arr_appstr.lo mf_wcomp.lo mf_wfile.lo my_gethwaddr.lo mf_qsort.lo mf_qsort2.lo mf_sort.lo ptr_cmp.lo mf_radix.lo queues.lo tree.lo list.lo hash.lo array.lo string.lo typelib.lo my_copy.lo my_append.lo my_lib.lo my_delete.lo my_rename.lo my_redel.lo my_chsize.lo my_lread.lo my_lwrite.lo my_clock.lo my_quick.lo my_lockmem.lo my_static.lo my_sync.lo my_getopt.lo my_mkdir.lo default_modify.lo default.lo my_compress.lo checksum.lo raid.lo my_net.lo my_port.lo my_sleep.lo charset.lo charset-def.lo my_bitmap.lo my_bit.lo md5.lo my_gethostbyname.lo rijndael.lo my_aes.lo sha1.lo my_handler.lo my_netware.lo my_largepage.lo my_memmem.lo my_windac.lo my_access.lo base64.lo my_libwrap.lo thr_alarm.lo thr_lock.lo thr_mutex.lo thr_rwlock.lo my_pthread.lo my_thr_init.lo ../dbug/libdbug.la ../strings/libmystrings.la -lz -lpthread -lcrypt -lnsl -lm -lpthread -lrt libtool: link: i686-pc-linux-gnu-g++ -shared -nostdlib /usr/lib/gcc/i686-pc-linux-gnu/4.3.4/../../../crti.o /usr/lib/gcc/i686-pc-linux-gnu/4.3.4/crtbeginS.o .libs/my_init.o .libs/my_getwd.o .libs/mf_getdate.o .libs/my_mmap.o .libs/mf_path.o .libs/mf_loadpath.o .libs/my_file.o .libs/my_open.o .libs/my_create.o .libs/my_dup.o .libs/my_seek.o .libs/my_read.o .libs/my_pread.o .libs/my_write.o .libs/my_getpagesize.o .libs/mf_keycache.o .libs/mf_keycaches.o .libs/my_crc32.o .libs/mf_iocache.o .libs/mf_iocache2.o .libs/mf_cache.o .libs/mf_tempfile.o .libs/mf_tempdir.o .libs/my_lock.o .libs/mf_brkhant.o .libs/my_alarm.o .libs/my_malloc.o .libs/my_realloc.o .libs/my_once.o .libs/mulalloc.o .libs/my_alloc.o .libs/safemalloc.o .libs/my_new.o .libs/my_fopen.o .libs/my_fstream.o .libs/my_getsystime.o .libs/my_error.o .libs/errors.o .libs/my_div.o .libs/my_messnc.o .libs/mf_format.o .libs/mf_same.o .libs/mf_dirname.o .libs/mf_fn_ext.o .libs/my_symlink.o .libs/my_symlink2.o .libs/mf_pack.o .libs/mf_unixpath.o .libs/mf_strip.o .libs/mf_arr_appstr.o .libs/mf_wcomp.o .libs/mf_wfile.o .libs/my_gethwaddr.o .libs/mf_qsort.o .libs/mf_qsort2.o .libs/mf_sort.o .libs/ptr_cmp.o .libs/mf_radix.o .libs/queues.o .libs/tree.o .libs/list.o .libs/hash.o .libs/array.o .libs/string.o .libs/typelib.o .libs/my_copy.o .libs/my_append.o .libs/my_lib.o .libs/my_delete.o .libs/my_rename.o .libs/my_redel.o .libs/my_chsize.o .libs/my_lread.o .libs/my_lwrite.o .libs/my_clock.o .libs/my_quick.o .libs/my_lockmem.o .libs/my_static.o .libs/my_sync.o .libs/my_getopt.o .libs/my_mkdir.o .libs/default_modify.o .libs/default.o .libs/my_compress.o .libs/checksum.o .libs/raid.o .libs/my_net.o .libs/my_port.o .libs/my_sleep.o .libs/charset.o .libs/charset-def.o .libs/my_bitmap.o .libs/my_bit.o .libs/md5.o .libs/my_gethostbyname.o .libs/rijndael.o .libs/my_aes.o .libs/sha1.o .libs/my_handler.o .libs/my_netware.o .libs/my_largepage.o .libs/my_memmem.o .libs/my_windac.o .libs/my_access.o .libs/base64.o .libs/my_libwrap.o .libs/thr_alarm.o .libs/thr_lock.o .libs/thr_mutex.o .libs/thr_rwlock.o .libs/my_pthread.o .libs/my_thr_init.o -Wl,--whole-archive ../dbug/.libs/libdbug.a ../strings/.libs/libmystrings.a -Wl,--no-whole-archive -lpthread -lpthread -lpthread -lm -lpthread -lpthread -lpthread -lpthread -lm -lpthread -lz -lpthread -lcrypt -lnsl -lm -lpthread -lrt -L/usr/lib/gcc/i686-pc-linux-gnu/4.3.4 -L/usr/lib/gcc/i686-pc-linux-gnu/4.3.4/../../../../i686-pc-linux-gnu/lib -L/usr/lib/gcc/i686-pc-linux-gnu/4.3.4/../../.. -lstdc++ -lm -lgcc_s -lc -lgcc_s /usr/lib/gcc/i686-pc-linux-gnu/4.3.4/crtendS.o /usr/lib/gcc/i686-pc-linux-gnu/4.3.4/../../../crtn.o -march=pentium4 -Wl,-O1 -Wl,-soname -Wl,libmysys.so.0 -o .libs/libmysys.so.0.0.0 .libs/my_file.o: file not recognized: File format not recognized collect2: ld returned 1 exit status make[2]: *** [libmysys.la] Error 1 make[2]: Leaving directory `/tmp/portage/dev-db/mysql-5.0.90-r2/work/mysql/mysys' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/tmp/portage/dev-db/mysql-5.0.90-r2/work/mysql' make: *** [all] Error 2 [31;01m*[0m ERROR: dev-db/mysql-5.0.90-r2 failed: [31;01m*[0m emake failed [31;01m*[0m [31;01m*[0m Call stack: [31;01m*[0m ebuild.sh, line 54: Called src_compile [31;01m*[0m environment, line 4251: Called mysql_src_compile [31;01m*[0m environment, line 3732: Called die [31;01m*[0m The specific snippet of code: [31;01m*[0m emake || die "emake failed"; --- emerge --info Portage 2.1.7.17 (default/linux/x86/10.0/desktop, gcc-4.3.4, glibc-2.10.1-r1, 2.6.31-gentoo-r10 i686) ================================================================= System uname: Linux-2.6.31-gentoo-r10-i686-Intel-R-_Celeron-R-_M_processor_1.40GHz-with-gentoo-2.0.1 Timestamp of tree: Tue, 09 Mar 2010 12:45:03 +0000 ccache version 2.4 [enabled] app-shells/bash: 4.0_p35 dev-java/java-config: 2.1.10 dev-lang/python: 2.6.4-r1 dev-util/ccache: 2.4-r7 dev-util/cmake: 2.6.4-r3 sys-apps/baselayout: 2.0.1 sys-apps/openrc: 0.6.0 sys-apps/sandbox: 1.6-r2 sys-devel/autoconf: 2.13, 2.63-r1 sys-devel/automake: 1.9.6-r3, 1.10.3, 1.11.1 sys-devel/binutils: 2.18-r3 sys-devel/gcc: 4.3.4 sys-devel/gcc-config: 1.4.1 sys-devel/libtool: 2.2.6b virtual/os-headers: 2.6.30-r1 ACCEPT_KEYWORDS="x86" ACCEPT_LICENSE="* -@EULA dlj-1.1 skype-eula" CBUILD="i686-pc-linux-gnu" CFLAGS="-O2 -march=pentium4 -pipe" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/share/X11/xkb /var/lib/hsqldb" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c" CXXFLAGS="-O2 -march=pentium4 -pipe" DISTDIR="/usr/portage/distfiles" EMERGE_DEFAULT_OPTS="-a --with-bdeps y --jobs=2 --keep-going" FEATURES="assume-digests ccache distlocks fixpackages news parallel-fetch protect-owned sandbox sfperms strict unmerge-logs unmerge-orphans userfetch" GENTOO_MIRRORS="ftp://trumpetti.atm.tut.fi/gentoo/ " LANG="en_GB.UTF-8" LDFLAGS="-Wl,-O1" LINGUAS="ca fr fr_CA sv_SE sv da es_ES es es_LA fi it is no nl de ja en_GB en en_US el" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_CONFIGROOT="/" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages" PORTAGE_TMPDIR="/tmp" PORTDIR="/usr/portage" SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage" USE="R X a52 aac acl acpi alsa archive artworkextra autoipd autotrace avahi bash-completion beagle berkdb bidi bonjour bzip2 cairo canna caps cdda cddb cdio cdparanoia cdr cdrkit chasen cjk cleartype cli consolekit cracklib crypt curl custom-optimization cxx dbus device-mapper dhcpcd disk-partition divx djvu doc dri dts dvd dvdr dvi eds encode exif expat fbcon fbcondecor ffmpeg fftw flac fontconfig fortran freewnn fts3 gdbm geoip gif gimp glib gmedia gmp gnome gnome-cd gnome-keyring gnutls gphoto2 gpm graphviz gs gstreamer gtk hal hardened hddtemp i18n iconv icq icu id3tag idn imagemagick ipv6 irc jabber jadetex java javascript jpeg jpeg2k kerberos laptop latex ldap libcaca libnotify live lm_sensors lzo m17n-lib mad maildir matroska metric midi mikmod mime mjpeg mmap mmx mng modplug modules mono mp3 mp4 mpeg msn mudflap musepack mysql mysqli nautilus ncurses networkmanager nls nocd nptl nptlonly nsplugin ntp ocaml ocamlopt offensive ogg opengl pam pcre pdf perl plotutils png posix pppd prediction python qt-static quicktime rar raw readline realmedia reflection resolvconf rtsp sasl sdl session shorten sip sound spell spl sqlite sse sse2 ssl startup-notification subtitles subversion svg svga symlink sysfs syslog taglib tcl tcpd theora threads tiff tk truetype unicode usb vcd vorbis wavpack wifi win32codecs wmf x264 x86 xattr xft xine xml xmp xorg xulrunner xv xvid yahoo zeroconf zlib" ALSA_CARDS="hda-intel usb-audio" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CAMERAS="fuji" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="ca fr fr_CA sv_SE sv da es_ES es es_LA fi it is no nl de ja en_GB en en_US el" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="radeon" Unset: CPPFLAGS, CTARGET, FFLAGS, INSTALL_MASK, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY Reproducible: Always Steps to Reproduce: 1. emerge -uDNv1 mysql Actual Results: Should install without error. Expected Results: Emerge fails with error.
Created attachment 222841 [details] Build log
Please turn off your ccache and try again. I think you might have a corrupted .o file in it.
After I disabled ccache, the emerge completed successfully. Thanks for the hint!
I suggest blowing away your ccache cache data, as there is corruption somewhere in it.