On barely new system I did emerge gnome and got: libtool: install: (cd /var/tmp/portage/net-dns/avahi-0.6.30/work/avahi-0.6.30/avahi-ui; /bin/sh /var/tmp/portage/net-dns/avahi-0.6.30/work/avahi-0.6.30/libtool --silent --tag CC --mode=relink x86_64-pc-linux-gnu-gcc -std=gnu99 -I.. -DG_DISABLE_DEPRECATED=1 -DGDK_DISABLE_DEPRECATED=1 -DGTK_DISABLE_DEPRECATED=1 "-DDEBUG_TRAP=__asm__(\"int \$3\")" -DGNOMELOCALEDIR=\"/usr/share/locale\" -pthread -DQT_SHARED -I/usr/include/gtk-2.0 -I/usr/lib64/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng14 -I/usr/include/qt4 -I/usr/include/qt4/QtGui -I/usr/include/libdrm -I/usr/include/qt4/QtCore -DDATABASE_FILE=\"/usr/lib64/avahi/service-types.db\" -O2 -pipe -fstack-protector -Wall -W -Wextra -pedantic -pipe -Wformat -Wold-style-definition -Wdeclaration-after-statement -Wfloat-equal -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Wredundant-decls -Wmissing-noreturn -Wshadow -Wendif-labels -Wpointer-arith -Wbad-function-cast -Wcast-qual -Wcast-align -Wwrite-strings -fdiagnostics-show-option -Wno-cast-qual -fno-strict-aliasing -version-info 1:4:1 -Wl,-O1 -Wl,--as-needed -o libavahi-ui.la -rpath /usr/lib64 libavahi_ui_la-avahi-ui.lo libavahi_ui_la-stdb.lo ../avahi-common/libavahi-common.la ../avahi-client/libavahi-client.la ../avahi-glib/libavahi-glib.la -pthread -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgio-2.0 -lpangoft2-1.0 -lpangocairo-1.0 -lgdk_pixbuf-2.0 -lm -lcairo -lpng14 -lpango-1.0 -lfreetype -lfontconfig -lgobject-2.0 -lgmodule-2.0 -lgthread-2.0 -lrt -lglib-2.0 -lgdbm -inst-prefix-dir /var/tmp/portage/net-dns/avahi-0.6.30/image/) ./.libs/libavahi-ui.so: file not recognized: File truncated collect2: ld returned 1 exit status make[2]: *** [bssh] Error 1 make[2]: *** Waiting for unfinished jobs.... libtool: install: /usr/bin/install -c .libs/libavahi-ui.so.0.1.4T /var/tmp/portage/net-dns/avahi-0.6.30/image//usr/lib64/libavahi-ui.so.0.1.4 libtool: install: (cd /var/tmp/portage/net-dns/avahi-0.6.30/image//usr/lib64 && { ln -s -f libavahi-ui.so.0.1.4 libavahi-ui.so.0 || { rm -f libavahi-ui.so.0 && ln -s libavahi-ui.so.0.1.4 libavahi-ui.so.0; }; }) libtool: install: (cd /var/tmp/portage/net-dns/avahi-0.6.30/image//usr/lib64 && { ln -s -f libavahi-ui.so.0.1.4 libavahi-ui.so || { rm -f libavahi-ui.so && ln -s libavahi-ui.so.0.1.4 libavahi-ui.so; }; }) libtool: install: /usr/bin/install -c .libs/libavahi-ui.lai /var/tmp/portage/net-dns/avahi-0.6.30/image//usr/lib64/libavahi-ui.la libtool: install: /usr/bin/install -c .libs/libavahi-ui.a /var/tmp/portage/net-dns/avahi-0.6.30/image//usr/lib64/libavahi-ui.a libtool: install: chmod 644 /var/tmp/portage/net-dns/avahi-0.6.30/image//usr/lib64/libavahi-ui.a libtool: install: x86_64-pc-linux-gnu-ranlib /var/tmp/portage/net-dns/avahi-0.6.30/image//usr/lib64/libavahi-ui.a libtool: install: warning: remember to run `libtool --finish /usr/lib64' make[2]: Leaving directory `/var/tmp/portage/net-dns/avahi-0.6.30/work/avahi-0.6.30/avahi-ui' make[1]: *** [install-am] Error 2 make[1]: Leaving directory `/var/tmp/portage/net-dns/avahi-0.6.30/work/avahi-0.6.30/avahi-ui' make: *** [install-recursive] Error 1 emake failed * ERROR: net-dns/avahi-0.6.30 failed (install phase): * make install failed * * Call stack: * ebuild.sh, line 56: Called src_install * environment, line 4942: Called die * The specific snippet of code: * emake install py_compile=true DESTDIR="${D}" || die "make install failed"; * * If you need support, post the output of 'emerge --info =net-dns/avahi-0.6.30', * the complete build log and the output of 'emerge -pqv =net-dns/avahi-0.6.30'. * The complete build log is located at '/var/tmp/portage/net-dns/avahi-0.6.30/temp/build.log'. * The ebuild environment file is located at '/var/tmp/portage/net-dns/avahi-0.6.30/temp/environment'. * S: '/var/tmp/portage/net-dns/avahi-0.6.30/work/avahi-0.6.30' Reproducible: Always Steps to Reproduce: 1. emerge avahi on ~amd64 2. 3. Actual Results: got ./.libs/libavahi-ui.so: file not recognized: File truncated Expected Results: should compile bumblebee ~ # emerge --info =net-dns/avahi-0.6.30 Portage 2.1.9.48 (default/linux/amd64/10.0/desktop, gcc-4.4.5, glibc-2.13-r2, 2.6.38-gentoo-r5 x86_64) ================================================================= System Settings ================================================================= System uname: Linux-2.6.38-gentoo-r5-x86_64-AMD_Phenom-tm-_II_X4_840_Processor-with-gentoo-2.0.2 Timestamp of tree: Wed, 11 May 2011 17:45:01 +0000 app-shells/bash: 4.2_p10 dev-java/java-config: 2.1.11-r3 dev-lang/python: 2.7.1-r1, 3.1.3-r1 dev-util/cmake: 2.8.4-r1 sys-apps/baselayout: 2.0.2 sys-apps/openrc: 0.8.2-r1 sys-apps/sandbox: 2.5 sys-devel/autoconf: 2.13, 2.68 sys-devel/automake: 1.11.1-r1 sys-devel/binutils: 2.21 sys-devel/gcc: 4.4.5, 4.5.2 sys-devel/gcc-config: 1.4.1-r1 sys-devel/libtool: 2.4-r1 sys-devel/make: 3.82 sys-kernel/linux-headers: 2.6.38 (virtual/os-headers) sys-libs/glibc: 2.13-r2 ACCEPT_KEYWORDS="amd64 ~amd64" ACCEPT_LICENSE="*" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-O2 -pipe" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/sandbox.d /etc/terminfo" CXXFLAGS="-O2 -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="assume-digests binpkg-logs distlocks fixlafiles fixpackages news parallel-fetch protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch" FFLAGS="" GENTOO_MIRRORS="http://de-mirror.org/gentoo/ http://gentoo.prz.rzeszow.pl/gentoo http://ftp.vectranet.pl/gentoo/ http://gentoo.mirror.pw.edu.pl/" LDFLAGS="-Wl,-O1 -Wl,--as-needed" LINGUAS="en pl" MAKEOPTS="-j5" 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="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="" SYNC="rsync://rsync6.pl.gentoo.org/gentoo-portage" USE="3dnow X a52 aac aalib acl acpi alsa amd64 audiofile avahi bcmath berkdb bluetooth branding bzip2 cairo cdr clamav cli consolekit cracklib crypt css ctype cups curl curlwrappers cxx dbus djvu dri dts dvd dvdr emboss encode exif expat fam ffmpeg firefox flac fontconfig fortran ftp fuse gd gdbm gdu gif gnome gpm gtk gzip hddtemp iconv icu imagemagick imap innodb iphone ipod ipv6 jabber java java6 jpeg jpeg2k lame lcms ldap libnotify libwww lua lzma mad matroska mhash mikmod mime mmap mmx mng modules motif mp3 mp4 mpeg mplayer mtp mudflap multilib musepack mysql ncurses nis nls nptl nptlonly ogg opengl openmp pam pango pcre pdf perl png policykit posix postgres ppds pppd profile python qt4 radius rdesktop readline recode ruby samba sdl session sharedmem snmp sockets socks5 spell sqlite sqlite3 sse sse2 ssl startup-notification static-libs subversion svg sysfs syslog tcpd theora tiff truetype udev unicode usb vim-syntax vnc vorbis wavpack wxwidgets x264 xcb xml xorg xosd xpm xulrunner xv xvid zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" 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 cgi cgid 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="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en pl" PHP_TARGETS="php5-3" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="nvidia vesa" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account" Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS bumblebee ~ # emerge -pqv =net-dns/avahi-0.6.30 [ebuild N ] net-dns/avahi-0.6.30 USE="dbus gdbm gtk ipv6 python qt4 -autoipd -bookmarks -doc -howl-compat -mdnsresponder-compat -mono -test"
Please attach the entire build log.
I solved this, and I haven't old build log anymore. Problem occured when I had MAKEOPTS="-j" higher than -j1 compilation failed. It's weird, because some packages compiles successful when MAKEOPTS was set to -j5 , some doesn't.