Attaching a build log with MAKEOPTS=-j1. [ebuild NS *] sys-devel/gcc-6.2.0-r1:6.2.0::gentoo [4.9.3:4.9.3::gentoo, 5.4.0:5.4.0::gentoo] USE="cxx fortran graphite (multilib) nls nptl obj objc++ objc-gc openmp pch sanitize vtv (-altivec) (-awt) -cilk -debug -doc (-fixed-point) -gcj -go (-hardened) (-jit) (-libssp) -mpx (-pie) -regression-test -ssp -vanilla" emerge --info: Portage 2.3.0 (python 3.5.2-final-0, default/linux/amd64/13.0/desktop, gcc-5.4.0, glibc-2.23-r2, 4.6.0-pf1-pomiocik+ x86_64) ================================================================= System uname: Linux-4.6.0-pf1-pomiocik+-x86_64-Intel-R-_Core-TM-_i3-3217U_CPU_@_1.80GHz-with-gentoo-2.3 KiB Mem: 3930824 total, 1285168 free KiB Swap: 4194300 total, 4136032 free Timestamp of repository gentoo: Fri, 23 Sep 2016 05:47:25 +0000 sh bash 4.3_p46-r1 ld GNU ld (Gentoo 2.26.1 p1.0) 2.26.1 distcc 3.2rc1 x86_64-pc-linux-gnu [enabled] app-shells/bash: 4.3_p46-r1::gentoo dev-java/java-config: 2.2.0-r3::gentoo dev-lang/perl: 5.24.0-r1::gentoo dev-lang/python: 2.7.12::gentoo, 3.4.5::gentoo, 3.5.2::gentoo dev-util/cmake: 3.6.2::gentoo dev-util/pkgconfig: 0.29.1::gentoo sys-apps/baselayout: 2.3::gentoo sys-apps/openrc: 0.21.7::gentoo sys-apps/sandbox: 2.10-r2::gentoo sys-devel/autoconf: 2.13::gentoo, 2.69-r2::gentoo sys-devel/automake: 1.11.6-r2::gentoo, 1.12.6-r1::gentoo, 1.13.4-r1::gentoo, 1.14.1-r1::gentoo, 1.15-r2::gentoo sys-devel/binutils: 2.26.1::gentoo sys-devel/gcc: 4.9.3::gentoo, 5.4.0::gentoo sys-devel/gcc-config: 1.8-r1::gentoo sys-devel/libtool: 2.4.6-r2::gentoo sys-devel/make: 4.2.1::gentoo sys-kernel/linux-headers: 4.7::gentoo (virtual/os-headers) sys-libs/glibc: 2.23-r2::gentoo Repositories: gentoo location: /var/db/repos/gentoo sync-type: git sync-umask: 027 sync-uri: https://github.com/swegener/gentoo-portage priority: -1000 gentoo-cvs location: /usr/src/gentoo-x86 sync-umask: 027 masters: gentoo priority: 9999 mgorny location: /home/mgorny/mgorny-repo sync-umask: 027 masters: gentoo priority: 10000 Installed sets: @mg_cb_agent, @mg_gamebot, @mg_qanalytics ACCEPT_KEYWORDS="amd64 ~amd64" ACCEPT_LICENSE="* -@EULA" CBUILD="x86_64-pc-linux-gnu" CC="x86_64-pc-linux-gnu-gcc-5.4.0" CFLAGS="-O2 -pipe -march=core-avx-i --param l1-cache-size=32 --param l1-cache-line-size=64 --param l2-cache-size=3072" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /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" CXX="x86_64-pc-linux-gnu-g++-5.4.0" CXXFLAGS="-O2 -pipe -march=core-avx-i --param l1-cache-size=32 --param l1-cache-line-size=64 --param l2-cache-size=3072" DISTDIR="/var/cache/portage/distfiles" EMERGE_DEFAULT_OPTS="--with-bdeps y --keep-going --ask" FCFLAGS="-O2 -pipe" FEATURES="assume-digests binpkg-logs buildpkg cgroup collision-protect config-protect-if-modified distcc distlocks ebuild-locks fixlafiles ipc-sandbox lmirror merge-sync multilib-strict news parallel-fetch preserve-libs protect-owned sandbox sfperms sign strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync" FFLAGS="-O2 -pipe" GENTOO_MIRRORS="http://pomiot.local/ http://mirror.netcologne.de/gentoo/ http://gentoo.mirror.web4u.cz/ http://ftp.snt.utwente.nl/pub/os/linux/gentoo http://gd.tuwien.ac.at/opsys/linux/gentoo/ http://gentoo.mirror.pw.edu.pl/ http://ftp.vectranet.pl/gentoo/ http://ftp.fi.muni.cz/pub/linux/gentoo/" LANG="pl_PL.UTF-8" LDFLAGS="-Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed -Wl,-z,defs" MAKEOPTS="-j12" PKGDIR="/var/cache/portage/packages" PORTAGE_COMPRESS="lzip" PORTAGE_COMPRESS_FLAGS="-9" 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 --exclude=/.git" PORTAGE_TMPDIR="/var/tmp" USE="X a52 aac acl acpi adns alsa amd64 amr avx bash-completion berkdb bluetooth branding bzip2 cairo caps cdda cdr cli cracklib crypt cups cxx dbus djvu dri dts dvd dvdr emboss encode exif fam fftw firefox flac fortran gd gdbm gif glamor gmp gnome-keyring gnutls gphoto2 gtk hdri iconv icu id3tag idn imagemagick ipv6 jbig jit jpeg jpeg2k lapack lcms libedit liblockfile libnotify libsecret lzma lzo mad mmx mmxext mng modules mp3 mp4 mpeg mpfr mtp multilib ncurses nls nptl ogg openexr opengl openmp opus pam pango pcre pdf png policykit ppds pulseaudio qt3support qt4 readline schroedinger sctp sdl seccomp session smp sndfile speex spell sse sse2 sse3 sse4_1 sse4_2 ssl ssse3 startup-notification svg systemd tcpd theora threads tiff truetype udev udisks unicode upnp upower usb v4l vaapi vdpau vim-syntax vorbis vpx webp wmf wxwidgets x264 xattr xcb xcomposite xml xpm xv xvid zeroconf zlib" ABI_X86="32 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" 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="avx mmx mmxext popcnt sse sse2 sse3 sse4_1 sse4_2 ssse3" 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" INPUT_DEVICES="evdev synaptics" KERNEL="linux" L10N="pl" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="pl" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-6" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_4 python3_5 pypy pypy3" RUBY_TARGETS="ruby20 ruby21" USERLAND="GNU" VIDEO_CARDS="nouveau intel" 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, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON
Created attachment 447488 [details] sys-devel:gcc-6.2.0-r1:20160923-063620.log.gz
Try rebuilding libtool.
(In reply to Ryan Hill from comment #2) > Try rebuilding libtool. Nope, doesn't help. I see crti.o in /usr/lib32 & /usr/lib64. I guess it doesn't respect libdir?
I believe it'll be looking in /usr/lib. Does that exist on your system? https://gcc.gnu.org/bugzilla/show_bug.cgi?id=36485
(In reply to Ryan Hill from comment #4) > I believe it'll be looking in /usr/lib. Does that exist on your system? > > https://gcc.gnu.org/bugzilla/show_bug.cgi?id=36485 Yes, and it contains no crt* files as no package installed them there.
How are you set up then if /usr/lib isn't a link to /usr/lib64?
(In reply to Ryan Hill from comment #6) > How are you set up then if /usr/lib isn't a link to /usr/lib64? SYMLINK_LIB=no.
(In reply to Michał Górny from comment #7) then you shouldn't have /usr/lib32. /usr/lib is the 32-bit lib path. gcc doesn't extract $(get_libdir) for ABIs and reconfigure its paths to match. the Gentoo profiles are set up to match gcc's settings instead. so if it only fails when you've disabled the /usr/lib symlink and you didn't migrate the content out of /usr/lib32, then it's not something we're going to bother supporting.
It's a supported option, and it worked with all previous versions. I'm opposed to breaking existing systems just because you don't use them.
(In reply to Michał Górny from comment #9) SYMLINK_LIB=no and having both /usr/lib and /usr/lib32 be dirs has not been a supported setup. if it accidentally worked in the past, then you got lucky. there's 0 value in wasting time on this setup when no one cares. and no, there are no "existing systems" to break here because no one has been running /usr/lib32 + SYMLINK_LIB=no. those profiles don't exist.
(In reply to SpanKY from comment #10) > (In reply to Michał Górny from comment #9) > > SYMLINK_LIB=no and having both /usr/lib and /usr/lib32 be dirs has not been > a supported setup. if it accidentally worked in the past, then you got > lucky. there's 0 value in wasting time on this setup when no one cares. You don't care != no one cares. It is a useful QA setup to find packages not respecting libdir. Bugs like #599570 are much harder to notice on any other profile. > and no, there are no "existing systems" to break here because no one has > been running /usr/lib32 + SYMLINK_LIB=no. those profiles don't exist. Yes, there are. The profiles were supposed to be added but we determined that it's simple enough to achieve via make.conf not to require additional profiles being processed by repoman. I withdrawn those with the guarantee that the setup will continue being supported. But you know, I don't care. I'll just waste another day migrating my system to your fancy supported setup. Who cares about QA anyway?
(In reply to Michał Górny from comment #11) you unilaterally inventing a setup that's never been used before does not suddenly mean it's a supported configuration, nor does it suddenly mean it's something people should start spending time on. it sure is convenient that every time someone disagrees with you, you get to yell "QA" and suddenly you're right. you'll have to find someone else to try and use that thin cudgel on. as for your actual underlying request (which you've never stated previously), that's already trivial to detect today when you have a native-only amd64 setup. nothing should be installing into /usr/lib/ which means that, when it does, it's probably broken. or install an x32-only system and watch when things install into /usr/lib/ or /usr/lib64/ and not /usr/libx32/.