When I try to upgrade a multilib gcc, it seems it is installing the new 32 bit libs, then removing all the old libs (32 and 64 bit), then trying to install the new 64 bit libs but fails because there are no 64 bit gc libs on the system (see build.log). Afterwards you cannot run any executables and you have no working compiler. The only way to recover the system is to restore the old gcc files from a backup. Reproducible: Always Steps to Reproduce: 1. emerge '=sys-devel/gcc-4.8.4' 2. emerge -C '=sys-devel/gcc-4.8.5' 3. echo '=sys-devel/gcc-4.8.5::gentoo abi_x86_32 abi_x86_84' >> /etc/portage/package.use 4. emerge -C 'sys-devel/gcc-4.8.5' Actual Results: Only the 32 bit gcc files are installed Expected Results: 32 and 64 bit gcc files are installed Portage 2.2.20 (python 2.7.9-final-0, default/linux/amd64/13.0/desktop/kde, [unavailable], glibc-2.20-r2, 3.17.8-gentoo-r1 x86_64) ================================================================= System uname: Linux-3.17.8-gentoo-r1-x86_64-Intel-R-_Core-TM-_i7_CPU_920_@_2.67GHz-with-gentoo-2.2 KiB Mem: 12303272 total, 2782924 free KiB Swap: 40899808 total, 40495688 free Timestamp of repository gentoo: Tue, 15 Sep 2015 21:15:01 +0000 sh bash 4.3_p33-r2 ld GNU ld (Gentoo 2.24 p1.4) 2.24 ccache version 3.1.9 [enabled] app-shells/bash: 4.3_p33-r2::gentoo dev-java/java-config: 2.2.0::gentoo dev-lang/perl: 5.20.2::gentoo dev-lang/python: 2.7.9-r1::gentoo, 3.2.5-r6::gentoo, 3.4.1::gentoo dev-util/ccache: 3.1.9-r4::gentoo dev-util/cmake: 3.2.2::gentoo dev-util/pkgconfig: 0.28-r2::gentoo sys-apps/baselayout: 2.2::gentoo sys-apps/openrc: 0.17::gentoo sys-apps/sandbox: 2.6-r1::gentoo sys-devel/autoconf: 2.13::gentoo, 2.69::gentoo sys-devel/automake: 1.11.6-r1::gentoo, 1.15::gentoo sys-devel/binutils: 2.24-r3::gentoo sys-devel/gcc: 4.8.5::gentoo sys-devel/gcc-config: 1.7.3::gentoo sys-devel/libtool: 2.4.6::gentoo sys-devel/make: 4.1-r1::gentoo sys-kernel/linux-headers: 3.18::gentoo (virtual/os-headers) sys-libs/glibc: 2.20-r2::gentoo Repositories: gentoo location: /usr/portage sync-type: rsync sync-uri: rsync://rsync.de.gentoo.org/gentoo-portage priority: -1000 gamerlay location: /var/lib/layman/gamerlay masters: gentoo priority: 0 java location: /var/lib/layman/java masters: gentoo priority: 1 kde location: /var/lib/layman/kde masters: gentoo priority: 2 progress location: /var/lib/layman/progress masters: gentoo priority: 3 qt location: /var/lib/layman/qt masters: gentoo priority: 4 rion location: /var/lib/layman/rion masters: gentoo priority: 5 science location: /var/lib/layman/science masters: gentoo priority: 6 sunrise location: /var/lib/layman/sunrise masters: gentoo priority: 7 steam-overlay location: /var/lib/layman/steam-overlay masters: gentoo priority: 8 cami_local_overlay location: /usr/local/portage masters: gentoo priority: 9 ACCEPT_KEYWORDS="amd64" ACCEPT_LICENSE="* -@EULA" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-O2 -pipe -march=native -mfpmath=sse -flto" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/lib64/libreoffice/program/sofficerc /usr/share/config /usr/share/gnupg/qualified.txt /var/bind /var/lib/hsqldb" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.5/ext-active/ /etc/php/apache2-php5.6/ext-active/ /etc/php/cgi-php5.5/ext-active/ /etc/php/cgi-php5.6/ext-active/ /etc/php/cli-php5.5/ext-active/ /etc/php/cli-php5.6/ext-active/ /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 -pipe -march=native -mfpmath=sse -flto" DISTDIR="/usr/portage/distfiles" EMERGE_DEFAULT_OPTS="--autounmask=y --keep-going --jobs=10 --rebuild-if-new-slot=y --autounmask-keep-masks=y" FCFLAGS="-O2 -pipe" FEATURES="assume-digests binpkg-logs candy ccache config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch parallel-install protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync" FFLAGS="-O2 -pipe" GENTOO_MIRRORS="http://ftp.lecl.net/pub/gentoo/ ftp://ftp.las.ic.unicamp.br/pub/gentoo/ http://mirror.qubenet.net/mirror/gentoo/ ftp://ftp.lecl.net/pub/gentoo/ ftp://ftp.twaren.net/Linux/Gentoo/" LANG="de" LC_ALL="de_DE.UTF-8" LDFLAGS="-Wl,-O1 -Wl,--as-needed" MAKEOPTS="--jobs=10 --load-average=25" PKGDIR="/usr/portage/packages" PORTAGE_CONFIGROOT="/" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages" PORTAGE_TMPDIR="/var/tmp" USE="X a52 aac acl acpi afs akonadi alsa amd64 bash-completion berkdb branding bzip2 cairo cdda cdr cli consolekit cracklib crypt cups cxx dbus declarative dri dts dvd dvdr emboss encode exif faac fam firefox flac fortran fuse gdbm gif git glamor gpm gstreamer gtk iconv icu idn inotify ipv6 jit jpeg kde kipi lame lcms ldap libnotify lm_sensors lto mad mmx mmxext mng modules mp3 mp4 mpeg ncurses nepomuk networkmanager nls nptl nsplugin nvidia offensive ogg opengl openmp pam pango pch pcre pdf pgo phonon plasma png policykit ppds pypy2_0 qt3support qt4 readline sdl seccomp semantic-desktop session spell sse sse2 ssl startup-notification svg taglib tcpd telepathy threads thumbnail tiff truetype udev udisks unicode upower usb v4l2 vhosts vim-syntax vorbis wxwidgets x264 xcb xcomposite xml xscreensaver xv xvid zlib" ABI_X86="64" 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" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd 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" APACHE2_MPMS="worker" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="mmx mmxext sse sse2 sse3 ssse3 sse4_1 sse4_2" 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 ublox ubx" GRUB_PLATFORMS="pc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="de en" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_4 pypy pypy2_0" RUBY_TARGETS="ruby20 ruby21" USERLAND="GNU" VIDEO_CARDS="nvidia" 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" USE_PYTHON="2.7 3.4 2.7-pypy-2.0" Unset: CC, CPPFLAGS, CTARGET, CXX, INSTALL_MASK, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Created attachment 412260 [details] Build log
Steps to Reproduce: 1. emerge '=sys-devel/gcc-4.8.4' 2. echo '=sys-devel/gcc-4.8.5::gentoo abi_x86_32 abi_x86_84' >> /etc/portage/package.use 3. emerge '=sys-devel/gcc-4.8.5' Sorry.
are you sure the package.use setting matters ? gcc shouldn't be checking those flags currently. you can check the file type by doing: find /usr/lib/gcc/x86_64-pc-linux-gnu/ -exec file -L {} +
I'm sorry, I was mislead by the 32bit files having a /32 subdir, while the 64 bit libs not. I tried it again, the files are all there, they are just not found. In a shell "source /etc/profile" fixes the problem. Also, autoclean seems to have succeeded, as the old libs were gone. I dont know why postinst fails, maybe it tries to execute some programs without doing an equivalent of "source /etc/profile" after the old libs are already gone.
it might be related to bug 529608. but with that fix and all the multislot logic shaking out, i'd say this has just resolved itself unless you can show that it's still happening. i.e. try to do: - install gcc-4.9.3 - remove all other versions - upgrade to gcc-5.3.0 - see if you get libgcc_s.so.1 errors