Source: gcc-13 Version: 13.2.0-5 Severity: normal Tags: upstream User: debian-sup...@lists.debian.org Usertags: sh4 X-Debbugs-Cc: debian-sup...@lists.debian.org
Hello! There is currently a known regression in gcc-13 which causes binutils and e2fsprogs to FTBFS on sh4 [1][2]: libtool: compile: sh4-linux-gnu-gcc (...) .deps/elf64-aarch64.Tpo -c elf64-aarch64.c -fPIC -DPIC -o .libs/elf64-aarch64.o elfnn-aarch64.c: In function ‘elf64_aarch64_merge_gnu_properties’: elfnn-aarch64.c:10408: warning: ‘/<<PKGBUILDDIR>>/builddir-multi/bfd/.libs/elf64-aarch64.gcda’ profile count data file not found [-Wmissing-profile] terminate called after throwing an instance of 'std::bad_alloc' what(): std::bad_alloc Unhandled trap: 0x180 pc=0x3f9a38e0 sr=0x00000001 pr=0x3f9a38d2 fpscr=0x00080004 spc=0x00000000 ssr=0x00000000 gbr=0x3f975aa0 vbr=0x00000000 sgr=0x00000000 dbr=0x00000000 delayed_pc=0x3f9a38d2 fpul=0x00000064 r0=0x00000004 r1=0x3fb01170 r2=0x00000005 r3=0x00000000 r4=0x002e5a00 r5=0x002e5a00 r6=0x00000006 r7=0x0000011c r8=0x3fb01164 r9=0x00000518 r10=0x3f9755e0 r11=0x000009bc r12=0x3fb00c58 r13=0x01766344 r14=0x01bed424 r15=0x407fb580 r16=0x00000000 r17=0x00000000 r18=0x00000000 r19=0x00000000 r20=0x00000000 r21=0x00000000 r22=0x00000000 r23=0x00000000 Testing on real hardware reveals the actual bug: root@tirpitz:..lib/ext2fs> gcc-13 -I. -I../../lib -I../../../../lib -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=$(pwd)=. -specs=/usr/share/dpkg/pie-compile.specs -fstack-protector-strong -Wformat -Werror=format-security -pthread -DHAVE_CONFIG_H -c ../../../../lib/ext2fs/rw_bitmaps.c -o rw_bitmaps.o terminate called after throwing an instance of 'std::bad_alloc' what(): std::bad_alloc during RTL pass: sh_treg_combine2 ../../../../lib/ext2fs/rw_bitmaps.c: In function ‘read_bitmaps_range_start’: ../../../../lib/ext2fs/rw_bitmaps.c:447:1: internal compiler error: Illegal instruction 447 | } | ^ 0x29a738e0 __GI_abort ./stdlib/abort.c:107 Please submit a full bug report, with preprocessed source (by using -freport-bug). Please include the complete backtrace with any bug report. See <file:///usr/share/doc/gcc-13/README.Bugs> for instructions. root@tirpitz:..lib/ext2fs> which has been been reported upstream [3]. The issue does not reproduce on gcc-12. This bug report has been created to raise awareness within Debian. Thanks, Adrian > [1] > https://buildd.debian.org/status/fetch.php?pkg=binutils&arch=sh4&ver=2.41-6&stamp=1697044502&raw=0 > [2] > https://buildd.debian.org/status/fetch.php?pkg=e2fsprogs&arch=sh4&ver=1.47.0-2%2Bb1&stamp=1697478803&raw=0 > [3] https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111892 -- .''`. John Paul Adrian Glaubitz : :' : Debian Developer `. `' Physicist `- GPG: 62FF 8A75 84E0 2956 9546 0006 7426 3B37 F5B5 F913