public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug target/111892] New: [SH] [13 Regression] internal compiler error: Illegal instruction when building e2fsprogs
@ 2023-10-20 9:35 glaubitz at physik dot fu-berlin.de
2023-10-20 9:37 ` [Bug target/111892] " glaubitz at physik dot fu-berlin.de
` (6 more replies)
0 siblings, 7 replies; 8+ messages in thread
From: glaubitz at physik dot fu-berlin.de @ 2023-10-20 9:35 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111892
Bug ID: 111892
Summary: [SH] [13 Regression] internal compiler error: Illegal
instruction when building e2fsprogs
Product: gcc
Version: 13.2.1
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: target
Assignee: unassigned at gcc dot gnu.org
Reporter: glaubitz at physik dot fu-berlin.de
CC: olegendo at gcc dot gnu.org, ysato at users dot sourceforge.jp
Target Milestone: ---
Target: sh-*-*-*
Created attachment 56156
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=56156&action=edit
Preprocessed source from building rw_bitmaps.c with gcc-13
Since gcc-13, there is a regression in the SH backend which results in an
internal compiler error with the error message "Illegal instruction":
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>
gcc-12 works fine:
root@tirpitz:..lib/ext2fs> gcc-12 -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
root@tirpitz:..lib/ext2fs>
Attaching the pre-processed source generated with -save-temps.
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug target/111892] [SH] [13 Regression] internal compiler error: Illegal instruction when building e2fsprogs
2023-10-20 9:35 [Bug target/111892] New: [SH] [13 Regression] internal compiler error: Illegal instruction when building e2fsprogs glaubitz at physik dot fu-berlin.de
@ 2023-10-20 9:37 ` glaubitz at physik dot fu-berlin.de
2023-10-20 10:07 ` rguenth at gcc dot gnu.org
` (5 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: glaubitz at physik dot fu-berlin.de @ 2023-10-20 9:37 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111892
--- Comment #1 from John Paul Adrian Glaubitz <glaubitz at physik dot fu-berlin.de> ---
Full source code tree available here:
https://people.debian.org/~glaubitz/e2fsprogs-5VkWTa.tgz
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug target/111892] [SH] [13 Regression] internal compiler error: Illegal instruction when building e2fsprogs
2023-10-20 9:35 [Bug target/111892] New: [SH] [13 Regression] internal compiler error: Illegal instruction when building e2fsprogs glaubitz at physik dot fu-berlin.de
2023-10-20 9:37 ` [Bug target/111892] " glaubitz at physik dot fu-berlin.de
@ 2023-10-20 10:07 ` rguenth at gcc dot gnu.org
2023-10-20 10:17 ` glaubitz at physik dot fu-berlin.de
` (4 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: rguenth at gcc dot gnu.org @ 2023-10-20 10:07 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111892
Richard Biener <rguenth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Last reconfirmed| |2023-10-20
Status|UNCONFIRMED |WAITING
Ever confirmed|0 |1
--- Comment #2 from Richard Biener <rguenth at gcc dot gnu.org> ---
Is that on a native sh system or are you cross-compiling? From which host?
Do you build GCC with --disable-checking by chance?
Can you provide a backtrace?
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug target/111892] [SH] [13 Regression] internal compiler error: Illegal instruction when building e2fsprogs
2023-10-20 9:35 [Bug target/111892] New: [SH] [13 Regression] internal compiler error: Illegal instruction when building e2fsprogs glaubitz at physik dot fu-berlin.de
2023-10-20 9:37 ` [Bug target/111892] " glaubitz at physik dot fu-berlin.de
2023-10-20 10:07 ` rguenth at gcc dot gnu.org
@ 2023-10-20 10:17 ` glaubitz at physik dot fu-berlin.de
2023-10-20 10:28 ` olegendo at gcc dot gnu.org
` (3 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: glaubitz at physik dot fu-berlin.de @ 2023-10-20 10:17 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111892
--- Comment #3 from John Paul Adrian Glaubitz <glaubitz at physik dot fu-berlin.de> ---
(In reply to Richard Biener from comment #2)
> Is that on a native sh system or are you cross-compiling? From which host?
Yes, building on a native system (SH7785LCR) running Debian unstable on kernel
6.5.0. Host is sh4-linux-gnu.
> Do you build GCC with --disable-checking by chance?
No, it's built with "--enable-checking=release", see:
> https://buildd.debian.org/status/fetch.php?pkg=gcc-13&arch=sh4&ver=13.2.0-2&stamp=1691861588&raw=0
It's Debian's distribution gcc.
> Can you provide a backtrace?
So, just run the above gcc command inside gdb and print the backtrace?
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug target/111892] [SH] [13 Regression] internal compiler error: Illegal instruction when building e2fsprogs
2023-10-20 9:35 [Bug target/111892] New: [SH] [13 Regression] internal compiler error: Illegal instruction when building e2fsprogs glaubitz at physik dot fu-berlin.de
` (2 preceding siblings ...)
2023-10-20 10:17 ` glaubitz at physik dot fu-berlin.de
@ 2023-10-20 10:28 ` olegendo at gcc dot gnu.org
2023-10-21 4:12 ` olegendo at gcc dot gnu.org
` (2 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: olegendo at gcc dot gnu.org @ 2023-10-20 10:28 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111892
Oleg Endo <olegendo at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|WAITING |NEW
--- Comment #4 from Oleg Endo <olegendo at gcc dot gnu.org> ---
This seems to be a dup of PR 111001.
Compiling the pre processed source with GCC-13 sh-elf cross compiler with
sh-elf-gcc -m4 -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fPIE
-fstack-protector-strong -Wformat -Werror=format-security -DHAVE_CONFIG_H -c
-dp -fdump-rtl-all -fdump-rtl-all-details rw_bitmaps.i
shows that the sh_treg_combine2 pass is hitting an infinite loop.
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug target/111892] [SH] [13 Regression] internal compiler error: Illegal instruction when building e2fsprogs
2023-10-20 9:35 [Bug target/111892] New: [SH] [13 Regression] internal compiler error: Illegal instruction when building e2fsprogs glaubitz at physik dot fu-berlin.de
` (3 preceding siblings ...)
2023-10-20 10:28 ` olegendo at gcc dot gnu.org
@ 2023-10-21 4:12 ` olegendo at gcc dot gnu.org
2023-10-22 9:39 ` glaubitz at physik dot fu-berlin.de
2023-10-22 23:04 ` glaubitz at physik dot fu-berlin.de
6 siblings, 0 replies; 8+ messages in thread
From: olegendo at gcc dot gnu.org @ 2023-10-21 4:12 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111892
--- Comment #5 from Oleg Endo <olegendo at gcc dot gnu.org> ---
Adrian, can you please give it another go with the patch I've posted in PR
111001 ?
https://gcc.gnu.org/bugzilla/attachment.cgi?id=56164
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug target/111892] [SH] [13 Regression] internal compiler error: Illegal instruction when building e2fsprogs
2023-10-20 9:35 [Bug target/111892] New: [SH] [13 Regression] internal compiler error: Illegal instruction when building e2fsprogs glaubitz at physik dot fu-berlin.de
` (4 preceding siblings ...)
2023-10-21 4:12 ` olegendo at gcc dot gnu.org
@ 2023-10-22 9:39 ` glaubitz at physik dot fu-berlin.de
2023-10-22 23:04 ` glaubitz at physik dot fu-berlin.de
6 siblings, 0 replies; 8+ messages in thread
From: glaubitz at physik dot fu-berlin.de @ 2023-10-22 9:39 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111892
--- Comment #6 from John Paul Adrian Glaubitz <glaubitz at physik dot fu-berlin.de> ---
(In reply to Oleg Endo from comment #5)
> Adrian, can you please give it another go with the patch I've posted in PR
> 111001 ?
>
> https://gcc.gnu.org/bugzilla/attachment.cgi?id=56164
I'll rebuild gcc-13 with the patch now and report back. Could take 1-2 days.
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug target/111892] [SH] [13 Regression] internal compiler error: Illegal instruction when building e2fsprogs
2023-10-20 9:35 [Bug target/111892] New: [SH] [13 Regression] internal compiler error: Illegal instruction when building e2fsprogs glaubitz at physik dot fu-berlin.de
` (5 preceding siblings ...)
2023-10-22 9:39 ` glaubitz at physik dot fu-berlin.de
@ 2023-10-22 23:04 ` glaubitz at physik dot fu-berlin.de
6 siblings, 0 replies; 8+ messages in thread
From: glaubitz at physik dot fu-berlin.de @ 2023-10-22 23:04 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111892
John Paul Adrian Glaubitz <glaubitz at physik dot fu-berlin.de> changed:
What |Removed |Added
----------------------------------------------------------------------------
Resolution|--- |DUPLICATE
Status|NEW |RESOLVED
--- Comment #7 from John Paul Adrian Glaubitz <glaubitz at physik dot fu-berlin.de> ---
(In reply to John Paul Adrian Glaubitz from comment #6)
> (In reply to Oleg Endo from comment #5)
> > Adrian, can you please give it another go with the patch I've posted in PR
> > 111001 ?
> >
> > https://gcc.gnu.org/bugzilla/attachment.cgi?id=56164
>
> I'll rebuild gcc-13 with the patch now and report back. Could take 1-2 days.
I can confirm that this patch fixes the e2fsprogs build for me.
Also, marking this as duplicate of PR111001.
*** This bug has been marked as a duplicate of bug 111001 ***
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2023-10-22 23:04 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-10-20 9:35 [Bug target/111892] New: [SH] [13 Regression] internal compiler error: Illegal instruction when building e2fsprogs glaubitz at physik dot fu-berlin.de
2023-10-20 9:37 ` [Bug target/111892] " glaubitz at physik dot fu-berlin.de
2023-10-20 10:07 ` rguenth at gcc dot gnu.org
2023-10-20 10:17 ` glaubitz at physik dot fu-berlin.de
2023-10-20 10:28 ` olegendo at gcc dot gnu.org
2023-10-21 4:12 ` olegendo at gcc dot gnu.org
2023-10-22 9:39 ` glaubitz at physik dot fu-berlin.de
2023-10-22 23:04 ` glaubitz at physik dot fu-berlin.de
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).