Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 675918 - >=sys-devel/gcc-6 miscompiles app-shells/bash with -fipa-pta - configure: checking build system type... Invalid configuration `x86_64-pc-linux-gnu': machine `x86_64-pc' not recognized
Summary: >=sys-devel/gcc-6 miscompiles app-shells/bash with -fipa-pta - configure: che...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo's Team for Core System packages
URL: https://gcc.gnu.org/PR88936
Whiteboard:
Keywords:
Depends on:
Blocks: 915000
  Show dependency tree
 
Reported: 2019-01-20 16:08 UTC by n05ph3r42
Modified: 2023-10-01 05:58 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description n05ph3r42 2019-01-20 16:08:39 UTC
sys-libs/readline-8.0 compiled with lto and bash-5.0 (with lto) produces false trigger in config.sub, resulting systtm to unable emerge any packet.

sample:
. /usr/share/gnuconfig/config.sub x86_64-pc-linux-gnu 
Invalid configuration `x86_64-pc-linux-gnu': machine `x86_64-pc' not recognized

more https://forums.gentoo.org/viewtopic-t-1091880.html

Reproducible: Always

Steps to Reproduce:
1.emerge bash-5.0 with -flto
2.emerge sys-libs/readline-8.0 with -flto
3.. /usr/share/gnuconfig/config.sub x86_64-pc-linux-gnu or emerge any pkg
Actual Results:  
Invalid configuration `x86_64-pc-linux-gnu': machine `x86_64-pc' not recognized

Expected Results:  
correct config.sub result

sample with "emerge tor"
https://paste.pound-python.org/show/9OcqgfBufzEfzZFfaNWx/

forum topic
more https://forums.gentoo.org/viewtopic-t-1091880.html

# emerge --info
    Portage 2.3.54 (python 3.6.6-final-0, default/linux/amd64/17.0, gcc-8.2.0, glibc-2.28-r5, 4.20.0-gentoo_intel x86_64)
    =================================================================
    System uname: Linux-4.20.0-gentoo_intel-x86_64-Intel-R-_Core-TM-_i7-2860QM_CPU_@_2.50GHz-with-gentoo-2.6
    KiB Mem:    16211808 total,  11606316 free
    KiB Swap:   15625212 total,  15625212 free
    Timestamp of repository gentoo: Tue, 15 Jan 2019 00:45:01 +0000
    sh bash 5.0
    ld GNU ld (Gentoo 2.31.1 p5) 2.31.1
    ccache version 3.5.1 [disabled]
    app-shells/bash:          5.0::gentoo
    dev-java/java-config:     2.2.0-r4::gentoo
    dev-lang/perl:            5.26.2::gentoo
    dev-lang/python:          2.7.15::gentoo, 3.6.6::gentoo
    dev-util/ccache:          3.5.1a::gentoo
    dev-util/cmake:           3.13.2::gentoo
    dev-util/pkgconfig:       0.29.2::gentoo
    sys-apps/baselayout:      2.6-r1::gentoo
    sys-apps/openrc:          0.40.3::gentoo
    sys-apps/sandbox:         2.15::gentoo
    sys-devel/autoconf:       2.13-r1::gentoo, 2.69-r4::gentoo
    sys-devel/automake:       1.16.1-r1::gentoo
    sys-devel/binutils:       2.31.1-r3::gentoo
    sys-devel/gcc:            8.2.0-r6::gentoo
    sys-devel/gcc-config:     2.0::gentoo
    sys-devel/libtool:        2.4.6-r5::gentoo
    sys-devel/make:           4.2.1-r4::gentoo
    sys-kernel/linux-headers: 4.20::gentoo (virtual/os-headers)
    sys-libs/glibc:           2.28-r5::gentoo
    Repositories:

    gentoo
        location: /usr/portage
        sync-type: webrsync
        sync-uri: rsync://rsync.gentoo.org/gentoo-portage
        priority: -1000

    paz00
        location: /usr/local/paz00
        masters: gentoo
        priority: 10

    palemoon
        location: /var/lib/layman/palemoon
        sync-type: laymansync
        sync-uri: https://github.com/deu/palemoon-overlay.git
        masters: gentoo
        priority: 50

    ACCEPT_KEYWORDS="amd64 ~amd64"
    ACCEPT_LICENSE="* -@EULA"
    CBUILD="x86_64-pc-linux-gnu"
    CFLAGS="-O2 -pipe 	-flto=8 	-fuse-linker-plugin 	-fipa-pta -fno-semantic-interposition 	-malign-data=cacheline -mtls-dialect=gnu2 	-falign-functions=32 	-fomit-frame-pointer -ftree-vectorize 	-march=sandybridge -mtune=sandybridge -mmmx -msse -msse2 -msse3 -mssse3 -mcx16 	-msahf -maes -mpclmul -mpopcnt -mavx -msse4.2 -msse4.1 -mfxsr -mxsave -mxsaveopt 	--param l1-cache-size=32 --param l1-cache-line-size=64 --param l2-cache-size=8192"
    CHOST="x86_64-pc-linux-gnu"
    CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt /var/lib/i2pd/certificates"
    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"
    CXXFLAGS="-O2 -pipe 	-flto=8 	-fuse-linker-plugin 	-fipa-pta -fno-semantic-interposition 	-malign-data=cacheline -mtls-dialect=gnu2 	-falign-functions=32 	-fomit-frame-pointer -ftree-vectorize 	-march=sandybridge -mtune=sandybridge -mmmx -msse -msse2 -msse3 -mssse3 -mcx16 	-msahf -maes -mpclmul -mpopcnt -mavx -msse4.2 -msse4.1 -mfxsr -mxsave -mxsaveopt 	--param l1-cache-size=32 --param l1-cache-line-size=64 --param l2-cache-size=8192"
    DISTDIR="/usr/portage/distfiles"
    ENV_UNSET="DBUS_SESSION_BUS_ADDRESS DISPLAY GOBIN PERL5LIB PERL5OPT PERLPREFIX PERL_CORE PERL_MB_OPT PERL_MM_OPT XAUTHORITY XDG_CACHE_HOME XDG_CONFIG_HOME XDG_DATA_HOME XDG_RUNTIME_DIR"
    FCFLAGS="-O2 -pipe"
    FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs candy cgroup config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news nodoc noinfo noman parallel-fetch parallel-install pid-sandbox preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync webrsync-gpg xattr"
    FFLAGS="-O2 -pipe"
    GENTOO_MIRRORS="http://mirror.yandex.ru/gentoo-distfiles/ 	ftp://mirror.yandex.ru/gentoo-distfiles/ 	ftp://ftp.snt.utwente.nl/pub/os/linux/gentoo 	http://ftp.romnet.org/gentoo/ 	http://gentoo.supp.name/ 	http://tux.rainside.sk/gentoo/"
    LANG="en_US.utf8"
    LDFLAGS="-Wl,-O1 -Wl,--as-needed"
    LINGUAS="en ru ua"
    MAKEOPTS="-j8"
    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 --exclude=/.git"
    PORTAGE_TMPDIR="/var/tmp"
    USE="#chromium #graphite #link X a aac acl acpi adjust alsa amd64 and avx based bash-completion berkdb branding break, bzip2 cairo can check cli consolekit crypt custom-cflags custom-optimization cxx dbus dri dri3 ffmpeg fortran gallium gdbm gif glamor gnome-keyring graphite gstreamer gtk gtk3 https://forums.gentoo.org/viewtopic-t-1074724.html, iconv icu intermediate jemalloc jit jpeg jpeg2k jumbo-build jumbo_file_merge_limit libnotify libsamplerate libtirpc llvm lm_sensors lock loop lto lzma lzo make matroska mime mmx mmxext mng mp3 mp4 mtp multilib ncurses networkmanager nls nptl ntp ogg on opengl openmp optimization optimizations pam pclmul pcre png policykit polyhedral popcnt rdesktop readline representation scrypt seccomp session shenandoah sndfile socks5 sound speedup, sqlite sse sse2 sse3 sse4_1 sse4_2 ssl ssse3 startup-notification svg system-bzip2 system-ffmpeg system-harfbuzz system-icu system-jpeg system-libevent system-libvpx system-libwebp system-lua system-sqlite system-zlib tcpd theora threads thunar tiff time truetype udev udisks unicode upower usb uvm v4l vaapi vdpau vorbis vpx vulkan webp wifi wmf x264 xa xattr xcb xpm xscreensaver xvid xvmc zlib zstd" 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" CALLIGRA_FEATURES="karbon plan sheets words" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="aes avx mmx mmxext pclmul popcnt sse sse2 sse3 sse4_1 sse4_2 ssse3" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="evdev synaptics" KERNEL="linux" L10N="en ru ua" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-6 php7-1" POSTGRES_TARGETS="postgres9_5 postgres10" PYTHON_SINGLE_TARGET="python3_6" PYTHON_TARGETS="python2_7 python3_6" QEMU_SOFTMMU_TARGETS="arm" QEMU_USER_TARGETS="arm" RUBY_TARGETS="ruby25" USERLAND="GNU" VIDEO_CARDS="intel i965" XFCE_PLUGINS="brightness clock power trash" 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:  CC, CPPFLAGS, CTARGET, CXX, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Jeroen Roovers (RETIRED) gentoo-dev 2019-01-20 18:23:09 UTC
Please attach the entire build log to this bug report.
Comment 2 n05ph3r42 2019-01-20 21:16:42 UTC
sample with "emerge tor":
[32;01m * [39;49;00mPackage:    net-vpn/tor-0.3.5.7
[32;01m * [39;49;00mRepository: gentoo
[32;01m * [39;49;00mMaintainer: blueness@gentoo.org
[32;01m * [39;49;00mUSE:        abi_x86_64 amd64 elibc_glibc kernel_linux lzma scrypt seccomp userland_GNU zstd
[32;01m * [39;49;00mFEATURES:   network-sandbox preserve-libs sandbox userpriv usersandbox
>>> Unpacking source...
>>> Unpacking tor-0.3.5.7.tar.gz to /var/tmp/portage/net-vpn/tor-0.3.5.7/work
>>> Source unpacked in /var/tmp/portage/net-vpn/tor-0.3.5.7/work
>>> Preparing source in /var/tmp/portage/net-vpn/tor-0.3.5.7/work/tor-0.3.5.7 ...
 [32;01m*[0m Applying tor-0.2.7.4-torrc.sample.patch ...
[A[198C [34;01m[ [32;01mok[34;01m ][0m
 [32;01m*[0m Applying tor-0.3.3.2-alpha-tor.service.in.patch ...
[A[198C [34;01m[ [32;01mok[34;01m ][0m
>>> Source prepared.
>>> Configuring source in /var/tmp/portage/net-vpn/tor-0.3.5.7/work/tor-0.3.5.7 ...
 * econf: updating tor-0.3.5.7/config.sub with /usr/share/gnuconfig/config.sub
 * econf: updating tor-0.3.5.7/config.guess with /usr/share/gnuconfig/config.guess
./configure --prefix=/usr --build=x86_64-pc-linux-gnu --host=x86_64-pc-linux-gnu --mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc --localstatedir=/var/lib --disable-dependency-tracking --disable-silent-rules --docdir=/usr/share/doc/tor-0.3.5.7 --htmldir=/usr/share/doc/tor-0.3.5.7/html --libdir=/usr/lib64 --localstatedir=/var --enable-system-torrc --enable-asciidoc --disable-android --disable-libfuzzer --disable-module-dirauth --enable-pic --disable-rust --disable-restart-debugging --disable-zstd-advanced-apis --enable-lzma --enable-libscrypt --enable-seccomp --disable-systemd --disable-gcc-hardening --disable-linker-hardening --disable-unittests --disable-coverage --enable-zstd
configure: loading site script /usr/share/config.site
checking for a BSD-compatible install... /usr/lib/portage/python3.6/ebuild-helpers/xattr/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking whether make supports nested variables... (cached) yes
checking whether make supports the include directive... yes (GNU style)
checking for x86_64-pc-linux-gnu-gcc... x86_64-pc-linux-gnu-gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables... 
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether x86_64-pc-linux-gnu-gcc accepts -g... yes
checking for x86_64-pc-linux-gnu-gcc option to accept ISO C89... none needed
checking whether x86_64-pc-linux-gnu-gcc understands -c and -o together... yes
checking dependency style of x86_64-pc-linux-gnu-gcc... none
checking how to run the C preprocessor... x86_64-pc-linux-gnu-gcc -E
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking minix/config.h usability... no
checking minix/config.h presence... no
checking for minix/config.h... no
checking whether it is safe to define __EXTENSIONS__... yes
checking build system type... Invalid configuration `x86_64-pc-linux-gnu': machine `x86_64-pc' not recognized
configure: error: /bin/sh ./config.sub x86_64-pc-linux-gnu failed

!!! Please attach the following file when seeking support:
!!! /var/tmp/portage/net-vpn/tor-0.3.5.7/work/tor-0.3.5.7/config.log
 [31;01m*[0m ERROR: net-vpn/tor-0.3.5.7::gentoo failed (configure phase):
 [31;01m*[0m   econf failed
 [31;01m*[0m 
 [31;01m*[0m Call stack:
 [31;01m*[0m               ebuild.sh, line  124:  Called src_configure
 [31;01m*[0m             environment, line 1964:  Called econf '--localstatedir=/var' '--enable-system-torrc' '--enable-asciidoc' '--disable-android' '--disable-libfuzzer' '--disable-module-dirauth' '--enable-pic' '--disable-rust' '--disable-restart-debugging' '--disable-zstd-advanced-apis' '--enable-lzma' '--enable-libscrypt' '--enable-seccomp' '--disable-systemd' '--disable-gcc-hardening' '--disable-linker-hardening' '--disable-unittests' '--disable-coverage' '--enable-zstd'
 [31;01m*[0m        phase-helpers.sh, line  718:  Called __helpers_die 'econf failed'
 [31;01m*[0m   isolated-functions.sh, line  119:  Called die
 [31;01m*[0m The specific snippet of code:
 [31;01m*[0m   		die "$@"
 [31;01m*[0m 
 [31;01m*[0m If you need support, post the output of `emerge --info '=net-vpn/tor-0.3.5.7::gentoo'`,
 [31;01m*[0m the complete build log and the output of `emerge -pqv '=net-vpn/tor-0.3.5.7::gentoo'`.
 [31;01m*[0m The complete build log is located at '/var/tmp/portage/net-vpn/tor-0.3.5.7/temp/build.log'.
 [31;01m*[0m The ebuild environment file is located at '/var/tmp/portage/net-vpn/tor-0.3.5.7/temp/environment'.
 [31;01m*[0m Working directory: '/var/tmp/portage/net-vpn/tor-0.3.5.7/work/tor-0.3.5.7'
 [31;01m*[0m S: '/var/tmp/portage/net-vpn/tor-0.3.5.7/work/tor-0.3.5.7'
Comment 3 Marek Bartosiewicz 2019-01-21 07:31:43 UTC
I also confirm this.
For the last two days I'm trying to install Gentoo from scratch on a new computer. I have "lto" in USE but my CFLAGS are more neutral (only native and O3).
Gentoo hoses itself at about ~300 package out of ~400 on a emerge -e @world from stage 3. The error message is the same (checking build system type... Invalid configuration `x86_64-pc-linux-gnu': machine `x86_64-pc' not recognized) but during emerge of gettext.
Comment 4 Marek Bartosiewicz 2019-01-21 09:14:03 UTC
OK, so how do I fix this? ~amd64 is can't be installed at the moment.
Should I mask bash-5.0?

make[2]: Leaving directory '/var/tmp/portage/app-shells/bash-5.0/work/bash-5.0/po'
touch stamp-po
/bin/sh /var/tmp/portage/app-shells/bash-5.0/work/bash-5.0/./support/mkinstalldirs /var/tmp/portage/app-shells/bash-5.0/image//usr/share
installing en@quot.gmo as /var/tmp/portage/app-shells/bash-5.0/image//usr/share/locale/en@quot/LC_MESSAGES/bash.mo
installing en@boldquot.gmo as /var/tmp/portage/app-shells/bash-5.0/image//usr/share/locale/en@boldquot/LC_MESSAGES/bash.mo
installing af.gmo as /var/tmp/portage/app-shells/bash-5.0/image//usr/share/locale/af/LC_MESSAGES/bash.mo
installing bg.gmo as /var/tmp/portage/app-shells/bash-5.0/image//usr/share/locale/bg/LC_MESSAGES/bash.mo
installing ca.gmo as /var/tmp/portage/app-shells/bash-5.0/image//usr/share/locale/ca/LC_MESSAGES/bash.mo
installing cs.gmo as /var/tmp/portage/app-shells/bash-5.0/image//usr/share/locale/cs/LC_MESSAGES/bash.mo
installing da.gmo as /var/tmp/portage/app-shells/bash-5.0/image//usr/share/locale/da/LC_MESSAGES/bash.mo
installing de.gmo as /var/tmp/portage/app-shells/bash-5.0/image//usr/share/locale/de/LC_MESSAGES/bash.mo
installing el.gmo as /var/tmp/portage/app-shells/bash-5.0/image//usr/share/locale/el/LC_MESSAGES/bash.mo
installing eo.gmo as /var/tmp/portage/app-shells/bash-5.0/image//usr/share/locale/eo/LC_MESSAGES/bash.mo
installing es.gmo as /var/tmp/portage/app-shells/bash-5.0/image//usr/share/locale/es/LC_MESSAGES/bash.mo
installing et.gmo as /var/tmp/portage/app-shells/bash-5.0/image//usr/share/locale/et/LC_MESSAGES/bash.mo
installing fi.gmo as /var/tmp/portage/app-shells/bash-5.0/image//usr/share/locale/fi/LC_MESSAGES/bash.mo
installing fr.gmo as /var/tmp/portage/app-shells/bash-5.0/image//usr/share/locale/fr/LC_MESSAGES/bash.mo
installing ga.gmo as /var/tmp/portage/app-shells/bash-5.0/image//usr/share/locale/ga/LC_MESSAGES/bash.mo
installing gl.gmo as /var/tmp/portage/app-shells/bash-5.0/image//usr/share/locale/gl/LC_MESSAGES/bash.mo
installing hr.gmo as /var/tmp/portage/app-shells/bash-5.0/image//usr/share/locale/hr/LC_MESSAGES/bash.mo
installing hu.gmo as /var/tmp/portage/app-shells/bash-5.0/image//usr/share/locale/hu/LC_MESSAGES/bash.mo
installing id.gmo as /var/tmp/portage/app-shells/bash-5.0/image//usr/share/locale/id/LC_MESSAGES/bash.mo
installing it.gmo as /var/tmp/portage/app-shells/bash-5.0/image//usr/share/locale/it/LC_MESSAGES/bash.mo
installing ja.gmo as /var/tmp/portage/app-shells/bash-5.0/image//usr/share/locale/ja/LC_MESSAGES/bash.mo
installing lt.gmo as /var/tmp/portage/app-shells/bash-5.0/image//usr/share/locale/lt/LC_MESSAGES/bash.mo
installing nb.gmo as /var/tmp/portage/app-shells/bash-5.0/image//usr/share/locale/nb/LC_MESSAGES/bash.mo
installing nl.gmo as /var/tmp/portage/app-shells/bash-5.0/image//usr/share/locale/nl/LC_MESSAGES/bash.mo
installing pl.gmo as /var/tmp/portage/app-shells/bash-5.0/image//usr/share/locale/pl/LC_MESSAGES/bash.mo
installing pt.gmo as /var/tmp/portage/app-shells/bash-5.0/image//usr/share/locale/pt/LC_MESSAGES/bash.mo
installing pt_BR.gmo as /var/tmp/portage/app-shells/bash-5.0/image//usr/share/locale/pt_BR/LC_MESSAGES/bash.mo
installing ro.gmo as /var/tmp/portage/app-shells/bash-5.0/image//usr/share/locale/ro/LC_MESSAGES/bash.mo
installing ru.gmo as /var/tmp/portage/app-shells/bash-5.0/image//usr/share/locale/ru/LC_MESSAGES/bash.mo
installing sk.gmo as /var/tmp/portage/app-shells/bash-5.0/image//usr/share/locale/sk/LC_MESSAGES/bash.mo
installing sl.gmo as /var/tmp/portage/app-shells/bash-5.0/image//usr/share/locale/sl/LC_MESSAGES/bash.mo
installing sr.gmo as /var/tmp/portage/app-shells/bash-5.0/image//usr/share/locale/sr/LC_MESSAGES/bash.mo
installing sv.gmo as /var/tmp/portage/app-shells/bash-5.0/image//usr/share/locale/sv/LC_MESSAGES/bash.mo
installing tr.gmo as /var/tmp/portage/app-shells/bash-5.0/image//usr/share/locale/tr/LC_MESSAGES/bash.mo
installing uk.gmo as /var/tmp/portage/app-shells/bash-5.0/image//usr/share/locale/uk/LC_MESSAGES/bash.mo
installing vi.gmo as /var/tmp/portage/app-shells/bash-5.0/image//usr/share/locale/vi/LC_MESSAGES/bash.mo
installing zh_CN.gmo as /var/tmp/portage/app-shells/bash-5.0/image//usr/share/locale/zh_CN/LC_MESSAGES/bash.mo
installing zh_TW.gmo as /var/tmp/portage/app-shells/bash-5.0/image//usr/share/locale/zh_TW/LC_MESSAGES/bash.mo
if test "bash" = "gettext-tools"; then \
  /bin/sh /var/tmp/portage/app-shells/bash-5.0/work/bash-5.0/./support/mkinstalldirs /var/tmp/portage/app-shells/bash-5.0/image//usr/share/gettext/po; \
  for file in Makefile.in.in remove-potcdate.sin quot.sed boldquot.sed en@quot.header en@boldquot.header insert-header.sin Rules-quot   Makevars.template; do \
    /usr/lib/portage/python3.6/ebuild-helpers/xattr/install -c -m 644 ./$file \
                    /var/tmp/portage/app-shells/bash-5.0/image//usr/share/gettext/po/$file; \
  done; \
  for file in Makevars; do \
    rm -f /var/tmp/portage/app-shells/bash-5.0/image//usr/share/gettext/po/$file; \
  done; \
else \
  : ; \
fi
make[1]: Leaving directory '/var/tmp/portage/app-shells/bash-5.0/work/bash-5.0/po'
( cd /var/tmp/portage/app-shells/bash-5.0/work/bash-5.0/examples/loadables && make -j16 --jobserver-auth=3,4 DESTDIR=/var/tmp/portage/app-shells/bash-5.0/image/ install )
make[1]: warning: -jN forced in submake: disabling jobserver mode.
make[1]: Entering directory '/var/tmp/portage/app-shells/bash-5.0/work/bash-5.0/examples/loadables'
make[1]: Nothing to be done for 'install'.
make[1]: Leaving directory '/var/tmp/portage/app-shells/bash-5.0/work/bash-5.0/examples/loadables'
>>> Completed installing bash-5.0 into /var/tmp/portage/app-shells/bash-5.0/image/

 * Final size of build directory: 38016 KiB (37.1 MiB)
 * Final size of installed tree:   8684 KiB ( 8.4 MiB)

strip: x86_64-pc-linux-gnu-strip --strip-unneeded -R .comment -R .GCC.command.line -R .note.gnu.gold-version
   bin/bash

>>> Installing (11 of 54) app-shells/bash-5.0::gentoo

>>> Emerging (12 of 54) dev-libs/libpcre2-10.32::gentoo
 * pcre2-10.32.tar.bz2 BLAKE2B SHA512 size ;-) ...                                                                                                                                                                                    [ ok ]
>>> Unpacking source...
>>> Unpacking pcre2-10.32.tar.bz2 to /var/tmp/portage/dev-libs/libpcre2-10.32/work
>>> Source unpacked in /var/tmp/portage/dev-libs/libpcre2-10.32/work
>>> Preparing source in /var/tmp/portage/dev-libs/libpcre2-10.32/work/pcre2-10.32 ...
 * Running elibtoolize in: pcre2-10.32/
 *   Applying portage/1.2.0 patch ...
 *   Applying sed/1.5.6 patch ...
 *   Applying as-needed/2.4.3 patch ...
 *   Applying ppc64le/2.4.4 patch ...
>>> Source prepared.
>>> Configuring source in /var/tmp/portage/dev-libs/libpcre2-10.32/work/pcre2-10.32 ...
 * abi_x86_64.amd64: running multilib-minimal_abi_src_configure
 * econf: updating pcre2-10.32/config.guess with /usr/share/gnuconfig/config.guess
 * econf: updating pcre2-10.32/config.sub with /usr/share/gnuconfig/config.sub
/var/tmp/portage/dev-libs/libpcre2-10.32/work/pcre2-10.32/configure --prefix=/usr --build=x86_64-pc-linux-gnu --host=x86_64-pc-linux-gnu --mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc --localstatedir=/var/lib --disable-dependency-tracking --disable-silent-rules --docdir=/usr/share/doc/libpcre2-10.32 --htmldir=/usr/share/doc/libpcre2-10.32/html --libdir=/usr/lib64 --enable-pcre2-8 --enable-shared --htmldir=/usr/share/doc/libpcre2-10.32/html --with-match-limit-depth=8192 --enable-pcre2grep-libbz2 --disable-pcre2test-libedit --enable-pcre2test-libreadline --enable-pcre2grep-libz --enable-jit --enable-pcre2grep-jit --enable-pcre2-16 --disable-pcre2-32 --disable-static --enable-unicode
checking for a BSD-compatible install... /usr/lib/portage/python3.6/ebuild-helpers/xattr/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking whether make supports nested variables... (cached) yes
checking for x86_64-pc-linux-gnu-gcc... x86_64-pc-linux-gnu-gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether x86_64-pc-linux-gnu-gcc accepts -g... yes
checking for x86_64-pc-linux-gnu-gcc option to accept ISO C89... none needed
checking whether x86_64-pc-linux-gnu-gcc understands -c and -o together... yes
checking for style of include used by make... GNU
checking dependency style of x86_64-pc-linux-gnu-gcc... none
checking how to run the C preprocessor... x86_64-pc-linux-gnu-gcc -E
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking minix/config.h usability... no
checking minix/config.h presence... no
checking for minix/config.h... no
checking whether it is safe to define __EXTENSIONS__... yes
checking for x86_64-pc-linux-gnu-ar... x86_64-pc-linux-gnu-ar
checking the archiver (x86_64-pc-linux-gnu-ar) interface... ar
checking for int64_t... yes
checking build system type... Invalid configuration `x86_64-pc-linux-gnu': machine `x86_64-pc' not recognized
configure: error: /bin/sh /var/tmp/portage/dev-libs/libpcre2-10.32/work/pcre2-10.32/config.sub x86_64-pc-linux-gnu failed

!!! Please attach the following file when seeking support:
!!! /var/tmp/portage/dev-libs/libpcre2-10.32/work/pcre2-10.32-abi_x86_64.amd64/config.log
 * ERROR: dev-libs/libpcre2-10.32::gentoo failed (configure phase):
 *   econf failed
 *
 * Call stack:
 *               ebuild.sh, line  124:  Called src_configure
 *             environment, line 2720:  Called multilib-minimal_src_configure
 *             environment, line 1940:  Called multilib_foreach_abi 'multilib-minimal_abi_src_configure'
 *             environment, line 2155:  Called multibuild_foreach_variant '_multilib_multibuild_wrapper' 'multilib-minimal_abi_src_configure'
 *             environment, line 1870:  Called _multibuild_run '_multilib_multibuild_wrapper' 'multilib-minimal_abi_src_configure'
 *             environment, line 1868:  Called _multilib_multibuild_wrapper 'multilib-minimal_abi_src_configure'
 *             environment, line  382:  Called multilib-minimal_abi_src_configure
 *             environment, line 1934:  Called multilib_src_configure
 *             environment, line 2372:  Called econf '--enable-pcre2-8' '--enable-shared' '--htmldir=/usr/share/doc/libpcre2-10.32/html' '--with-match-limit-depth=8192' '--enable-pcre2grep-libbz2' '--disable-pcre2test-libedit' '--enable-pcre2test-libreadline' '--enable-pcre2grep-libz' '--enable-jit' '--enable-pcre2grep-jit' '--enable-pcre2-16' '--disable-pcre2-32' '--disable-static' '--enable-unicode'
 *        phase-helpers.sh, line  718:  Called __helpers_die 'econf failed'
 *   isolated-functions.sh, line  119:  Called die
 * The specific snippet of code:
 *              die "$@"
 *
 * If you need support, post the output of `emerge --info '=dev-libs/libpcre2-10.32::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=dev-libs/libpcre2-10.32::gentoo'`.
 * The complete build log is located at '/var/tmp/portage/dev-libs/libpcre2-10.32/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/dev-libs/libpcre2-10.32/temp/environment'.
 * Working directory: '/var/tmp/portage/dev-libs/libpcre2-10.32/work/pcre2-10.32-abi_x86_64.amd64'
 * S: '/var/tmp/portage/dev-libs/libpcre2-10.32/work/pcre2-10.32'

>>> Failed to emerge dev-libs/libpcre2-10.32, Log file:

>>>  '/var/tmp/portage/dev-libs/libpcre2-10.32/temp/build.log'

 * Messages for package dev-libs/libpcre2-10.32:

 * ERROR: dev-libs/libpcre2-10.32::gentoo failed (configure phase):
 *   econf failed
 *
 * Call stack:
 *               ebuild.sh, line  124:  Called src_configure
 *             environment, line 2720:  Called multilib-minimal_src_configure
 *             environment, line 1940:  Called multilib_foreach_abi 'multilib-minimal_abi_src_configure'
 *             environment, line 2155:  Called multibuild_foreach_variant '_multilib_multibuild_wrapper' 'multilib-minimal_abi_src_configure'
 *             environment, line 1870:  Called _multibuild_run '_multilib_multibuild_wrapper' 'multilib-minimal_abi_src_configure'
 *             environment, line 1868:  Called _multilib_multibuild_wrapper 'multilib-minimal_abi_src_configure'
 *             environment, line  382:  Called multilib-minimal_abi_src_configure
 *             environment, line 1934:  Called multilib_src_configure
 *             environment, line 2372:  Called econf '--enable-pcre2-8' '--enable-shared' '--htmldir=/usr/share/doc/libpcre2-10.32/html' '--with-match-limit-depth=8192' '--enable-pcre2grep-libbz2' '--disable-pcre2test-libedit' '--enable-pcre2test-libreadline' '--enable-pcre2grep-libz' '--enable-jit' '--enable-pcre2grep-jit' '--enable-pcre2-16' '--disable-pcre2-32' '--disable-static' '--enable-unicode'
 *        phase-helpers.sh, line  718:  Called __helpers_die 'econf failed'
 *   isolated-functions.sh, line  119:  Called die
 * The specific snippet of code:
 *              die "$@"
 *
 * If you need support, post the output of `emerge --info '=dev-libs/libpcre2-10.32::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=dev-libs/libpcre2-10.32::gentoo'`.
 * The complete build log is located at '/var/tmp/portage/dev-libs/libpcre2-10.32/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/dev-libs/libpcre2-10.32/temp/environment'.
 * Working directory: '/var/tmp/portage/dev-libs/libpcre2-10.32/work/pcre2-10.32-abi_x86_64.amd64'
 * S: '/var/tmp/portage/dev-libs/libpcre2-10.32/work/pcre2-10.32'

 * Regenerating GNU info directory index...
 * Processed 79 info files.

!!! existing preserved libs:
>>> package: sys-libs/readline-8.0
 *  - /lib64/libreadline.so.7
 *  - /lib64/libreadline.so.7.0
 *      used by /sbin/fdisk (sys-apps/util-linux-2.33-r1)
 *      used by /sbin/sfdisk (sys-apps/util-linux-2.33-r1)
 *      used by /usr/bin/gawk (sys-apps/gawk-4.1.4)
 *      used by 11 other files
Use emerge @preserved-rebuild to rebuild packages using these libraries
Comment 5 Sergei Trofimovich (RETIRED) gentoo-dev 2019-01-21 20:01:13 UTC
The failure might not be related to bash but to -flto in general. I suggest disabling flto at least for bash.

We saw a similar bash miscompilation in https://gcc.gnu.org/PR88936 where -fipa-pta managed to break case matching code in bash. I suspect you see the same symptoms.
Comment 6 Sergei Trofimovich (RETIRED) gentoo-dev 2019-01-21 20:02:56 UTC
(In reply to Sergei Trofimovich from comment #5)
> The failure might not be related to bash but to -flto in general. I suggest
> disabling flto at least for bash.
> 
> We saw a similar bash miscompilation in https://gcc.gnu.org/PR88936 where
> -fipa-pta managed to break case matching code in bash. I suspect you see the
> same symptoms.

Oh, you actually use -fipa-pta.
Comment 7 Sergei Trofimovich (RETIRED) gentoo-dev 2019-01-21 21:27:50 UTC
To clarify: the workaround is to drop -fipa-pta flag and rebuild at least bash.

I don't think it's an LTO bug. Dropping from deps and renaming the bug.
Comment 8 n05ph3r42 2019-01-22 09:14:59 UTC
(In reply to Sergei Trofimovich from comment #5)
> The failure might not be related to bash but to -flto in general. I suggest
> disabling flto at least for bash.
> 
> We saw a similar bash miscompilation in https://gcc.gnu.org/PR88936 where
> -fipa-pta managed to break case matching code in bash. I suspect you see the
> same symptoms.
Good day,
AFAIK symptoms appear after readline was emerged, not bash. I mean, bash 5.0 was emerged before readline 8.0, and was working fine. There is something with readline definitely. You can downgrade readline to check that.
Comment 9 Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2019-01-22 09:42:09 UTC
(In reply to n05ph3r42 from comment #8)
> (In reply to Sergei Trofimovich from comment #5)
> > The failure might not be related to bash but to -flto in general. I suggest
> > disabling flto at least for bash.
> > 
> > We saw a similar bash miscompilation in https://gcc.gnu.org/PR88936 where
> > -fipa-pta managed to break case matching code in bash. I suspect you see the
> > same symptoms.
> Good day,
> AFAIK symptoms appear after readline was emerged, not bash. I mean, bash 5.0
> was emerged before readline 8.0, and was working fine. There is something
> with readline definitely. You can downgrade readline to check that.

Wrong. >=bash-5.0 depends on >=readline-8.0 so readline got installed first.
Comment 10 n05ph3r42 2019-01-22 09:55:52 UTC
(In reply to Lars Wendler (Polynomial-C) from comment #9)
> (In reply to n05ph3r42 from comment #8)
> > (In reply to Sergei Trofimovich from comment #5)
> > > The failure might not be related to bash but to -flto in general. I suggest
> > > disabling flto at least for bash.
> > > 
> > > We saw a similar bash miscompilation in https://gcc.gnu.org/PR88936 where
> > > -fipa-pta managed to break case matching code in bash. I suspect you see the
> > > same symptoms.
> > Good day,
> > AFAIK symptoms appear after readline was emerged, not bash. I mean, bash 5.0
> > was emerged before readline 8.0, and was working fine. There is something
> > with readline definitely. You can downgrade readline to check that.
> 
> Wrong. >=bash-5.0 depends on >=readline-8.0 so readline got installed first.

Well, indeed. 
But check gcc manual:"
-fipa-pta

    Perform interprocedural pointer analysis and interprocedural modification and reference analysis. This option can cause excessive memory and compile-time usage on large compilation units. It is not enabled by default at any optimization level."

 It is not enabled by default at any optimization level. 
Marek Bartosiewicz (comment#3 https://bugs.gentoo.org/675918#c3) says he have native lto and O3, and also experiencing same problems.
Comment 11 n05ph3r42 2019-01-22 20:46:22 UTC
yes, disabling fipa-pta for bash-5.0 solves issue. updated @world with readline-8.0
Comment 12 Sergei Trofimovich (RETIRED) gentoo-dev 2019-01-22 22:56:00 UTC
If there are other issues with -O3 -match=native (without -fipa-pta) please file a new bug. We'll investigate there.
Comment 13 Sergei Trofimovich (RETIRED) gentoo-dev 2019-05-22 09:09:39 UTC
Fixed in =sys-devel/gcc-9.1.0.