Summary: | >=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 | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | n05ph3r42 <official.contacts> |
Component: | Current packages | Assignee: | Gentoo's Team for Core System packages <base-system> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | slyfox |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
URL: | https://gcc.gnu.org/PR88936 | ||
See Also: | https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88936 | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Bug Depends on: | |||
Bug Blocks: | 915000 |
Description
n05ph3r42
2019-01-20 16:08:39 UTC
Please attach the entire build log to this bug report. 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' 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. 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 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. (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. 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. (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. (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. (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. yes, disabling fipa-pta for bash-5.0 solves issue. updated @world with readline-8.0 If there are other issues with -O3 -match=native (without -fipa-pta) please file a new bug. We'll investigate there. Fixed in =sys-devel/gcc-9.1.0. |