Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 811867 - <sys-devel/gcc-11.2.1_p20211127: ICE (unsquash-1.c:244:1: internal compiler error: in extract_insn, at recog.c:2770) when compiling sys-fs/squashfs-tools-4.5 on s390
Summary: <sys-devel/gcc-11.2.1_p20211127: ICE (unsquash-1.c:244:1: internal compiler e...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: s390 Linux
: Normal normal (vote)
Assignee: Gentoo Toolchain Maintainers
URL: https://gcc.gnu.org/bugzilla/show_bug...
Whiteboard: Fixed in 11.2.1_p20211127
Keywords: PATCH
Depends on: 833357
Blocks: gcc-11
  Show dependency tree
 
Reported: 2021-09-06 17:41 UTC by Sam James
Modified: 2022-05-11 01:51 UTC (History)
1 user (show)

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


Attachments
build.log (file_811867.txt,10.79 KB, text/plain)
2021-09-06 17:41 UTC, Sam James
Details
unsquash-1.i (file_811867.txt,413.89 KB, text/plain)
2021-09-06 17:44 UTC, Sam James
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Sam James archtester Gentoo Infrastructure gentoo-dev Security 2021-09-06 17:41:44 UTC
Created attachment 737941 [details]
build.log

s390-ibm-linux-gnu-gcc -O2 -pipe -march=z10 -Wimplicit-function-declaration -Wnonnull -Wstrict-aliasing -Wparentheses -Warray-bounds -Wfree-nonheap-object -Wreturn-local-addr  -I. -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_GNU_SOURCE -DCOMP_DEFAULT=\"gzip\" -Wall -DGZIP_SUPPORT -DXATTR_SUPPORT -DXATTR_DEFAULT -DREPRODUCIBLE_DEFAULT -DVERSION=\"4.5\" -DDATE=\"2021/07/22\"   -c -o unsquash-1.o unsquash-1.c
unsquash-1.c: In function �read_inode�:
unsquash-1.c:244:1: error: unrecognizable insn:
  244 | }
      | ^
(insn 747 746 748 46 (set (strict_low_part (reg:SI 801))
        (mem/c:SI (plus:SI (reg/f:SI 55 virtual-stack-vars)
                (const_int -36 [0xffffffffffffffdc])) [10 MEM[(long long unsigned int *)_12]+4 S4 A32])) "unsquash-1.c":162:6 -1
     (nil))
during RTL pass: vregs
unsquash-1.c:244:1: internal compiler error: in extract_insn, at recog.c:2770
0x7af5f4c7 __libc_start_main
        /var/tmp/portage/sys-libs/glibc-2.33-r7/work/glibc-2.33/csu/libc-start.c:332
Please submit a full bug report,
with preprocessed source if appropriate.
Please include the complete backtrace with any bug report.
See <https://bugs.gentoo.org/> for instructions.
make: *** [<builtin>: unsquash-1.o] Error 1
make: *** Waiting for unfinished jobs....
make: Leaving directory '/var/tmp/portage/sys-fs/squashfs-tools-4.5/work/squashfs-tools-4.5/squashfs-tools'
 * ERROR: sys-fs/squashfs-tools-4.5::gentoo failed (compile phase):
 *   emake failed
 *
 * If you need support, post the output of `emerge --info '=sys-fs/squashfs-tools-4.5::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=sys-fs/squashfs-tools-4.5::gentoo'`.
 * The complete build log is located at '/var/tmp/portage/sys-fs/squashfs-tools-4.5/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/sys-fs/squashfs-tools-4.5/temp/environment'.
 * Working directory: '/var/tmp/portage/sys-fs/squashfs-tools-4.5/work/squashfs-tools-4.5'
 * S: '/var/tmp/portage/sys-fs/squashfs-tools-4.5/work/squashfs-tools-4.5'

----
Portage 3.0.22 (python 3.9.7-final-0, default/linux/s390/17.0, gcc-11.2.0, glibc-2.33-r7, 5.10.7 s390)
=================================================================
System uname: Linux-5.10.7-s390-8561-with-glibc2.33
KiB Mem:     2055988 total,    416500 free
KiB Swap:      99160 total,     86624 free
Timestamp of repository gentoo: Mon, 06 Sep 2021 16:21:25 +0000
Head commit of repository gentoo: 9f7fd9d36709fd8be2bd7605d29f9ad5124b1f73

sh bash 5.1_p8
ld GNU ld (Gentoo 2.36.1 p3) 2.36.1
app-shells/bash:          5.1_p8::gentoo
dev-lang/perl:            5.34.0-r2::gentoo
dev-lang/python:          3.9.7::gentoo, 3.10.0_rc1_p2::gentoo
dev-util/cmake:           3.21.2::gentoo
sys-apps/baselayout:      2.7-r3::gentoo
sys-apps/openrc:          0.43.5::gentoo
sys-apps/sandbox:         2.24::gentoo
sys-devel/autoconf:       2.69-r5::gentoo, 2.71-r1::gentoo
sys-devel/automake:       1.16.4::gentoo
sys-devel/binutils:       2.36.1-r1::gentoo, 2.37_p1::gentoo
sys-devel/gcc:            11.2.0::gentoo
sys-devel/gcc-config:     2.4::gentoo
sys-devel/libtool:        2.4.6-r6::gentoo
sys-devel/make:           4.3::gentoo
sys-kernel/linux-headers: 5.13::gentoo (virtual/os-headers)
sys-libs/glibc:           2.33-r7::gentoo
Repositories:

gentoo
    location: /var/db/repos/gentoo
    sync-type: git
    sync-uri: https://anongit.gentoo.org/git/repo/sync/gentoo.git
    priority: -1000
    sync-git-verify-commit-signature: true
    sync-git-clone-extra-opts: -b master

ACCEPT_KEYWORDS="s390 ~s390"
ACCEPT_LICENSE="@FREE"
CBUILD="s390-ibm-linux-gnu"
CFLAGS="-O2 -pipe -march=z10 -Wimplicit-function-declaration -Wnonnull -Wstrict-aliasing -Wparentheses -Warray-bounds -Wfree-nonheap-object -Wreturn-local-addr"
CHOST="s390-ibm-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O2 -pipe -march=z10"
DISTDIR="/var/cache/distfiles"
EMERGE_DEFAULT_OPTS="--keep-going"
ENV_UNSET="CARGO_HOME DBUS_SESSION_BUS_ADDRESS DISPLAY GOBIN GOPATH 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 config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news nodoc noinfo parallel-fetch pid-sandbox preserve-libs protect-owned qa-unresolved-soname-deps sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://gentoo.osuosl.org"
LANG="en_US.UTF8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j2"
PKGDIR="/var/cache/binpkgs"
PORTAGE_COMPRESS="xz"
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="acl big-endian bzip2 cli crypt dri fortran gdbm iconv ipv6 multislot ncurses nls nptl openmp pam pcre readline s390 seccomp split-usr ssl tcpd unicode xattr zlib" ABI_S390="32" ADA_TARGET="gnat_2018" 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 sheets words" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock greis isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="void libinput" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LUA_SINGLE_TARGET="lua5-1" LUA_TARGETS="lua5-1" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php7-3 php7-4" POSTGRES_TARGETS="postgres12 postgres13" PYTHON_SINGLE_TARGET="python3_9" PYTHON_TARGETS="python3_9" RUBY_TARGETS="ruby26" USERLAND="GNU" VIDEO_CARDS="dummy v4l" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq proto steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CC, CPPFLAGS, CTARGET, CXX, INSTALL_MASK, LC_ALL, LINGUAS, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, RUSTFLAGS
Comment 1 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2021-09-06 17:44:04 UTC
Created attachment 737944 [details]
unsquash-1.i

Following https://wiki.gentoo.org/wiki/Gcc-ICE-reporting-guide.

# gcc -v
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/libexec/gcc/s390-ibm-linux-gnu/11.2.0/lto-wrapper
Target: s390-ibm-linux-gnu
Configured with: /var/tmp/portage/sys-devel/gcc-11.2.0/work/gcc-11.2.0/configure --host=s390-ibm-linux-gnu --build=s390-ibm-linux-gnu --prefix=/usr --bindir=/usr/s390-ibm-linux-gnu/gcc-bin/11.2.0 --includedir=/usr/lib/gcc/s390-ibm-linux-gnu/11.2.0/include --datadir=/usr/share/gcc-data/s390-ibm-linux-gnu/11.2.0 --mandir=/usr/share/gcc-data/s390-ibm-linux-gnu/11.2.0/man --infodir=/usr/share/gcc-data/s390-ibm-linux-gnu/11.2.0/info --with-gxx-include-dir=/usr/lib/gcc/s390-ibm-linux-gnu/11.2.0/include/g++-v11 --with-python-dir=/share/gcc-data/s390-ibm-linux-gnu/11.2.0/python --enable-languages=c,c++,fortran --enable-obsolete --enable-secureplt --disable-werror --with-system-zlib --enable-nls --without-included-gettext --disable-libunwind-exceptions --enable-checking=release --with-bugurl=https://bugs.gentoo.org/ --with-pkgversion='Gentoo 11.2.0 p1' --disable-esp --enable-libstdcxx-time --enable-shared --enable-threads=posix --enable-__cxa_atexit --enable-clocale=gnu --disable-multilib --disable-fixed-point --enable-libgomp --disable-libssp --disable-libada --disable-systemtap --disable-valgrind-annotations --disable-vtable-verify --disable-libvtv --without-zstd --enable-lto --without-isl --disable-libsanitizer --disable-default-pie --enable-default-ssp
Thread model: posix
Supported LTO compression algorithms: zlib
gcc version 11.2.0 (Gentoo 11.2.0 p1)
Comment 2 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2021-10-15 03:10:52 UTC
Patch: https://gcc.gnu.org/git/gitweb.cgi?p=gcc.git;h=22b25535b8b2f9961e4772b1cc7cce5dc2f60719

It's been backported upstream.
Comment 3 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2021-11-28 18:33:03 UTC
commit c397cbff26bf100ae36eefe886497e8238e53515
Author: David Seifert <soap@gentoo.org>
Date:   Sun Nov 28 00:04:10 2021 +0100

    sys-devel/gcc: add 11.2.1_p20211127

    upstream has indicated that 11.3 is unlikely to be
    released soon, and 11.2 has accumulated enough bugs
    to require an intermediate release for Gentoo.

    Bug: https://bugs.gentoo.org/806482
    Bug: https://bugs.gentoo.org/811867
    Bug: https://bugs.gentoo.org/823780
    Signed-off-by: David Seifert <soap@gentoo.org>
    Signed-off-by: Sam James <sam@gentoo.org>