public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug target/111898] New: [SH] [12 13 Regression] internal compiler error: Segmentation fault when building PostgreSQL 16
@ 2023-10-20 15:35 glaubitz at physik dot fu-berlin.de
2023-10-23 9:02 ` [Bug target/111898] [12/13/14 Regression][SH] " rguenth at gcc dot gnu.org
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: glaubitz at physik dot fu-berlin.de @ 2023-10-20 15:35 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111898
Bug ID: 111898
Summary: [SH] [12 13 Regression] internal compiler error:
Segmentation fault when building PostgreSQL 16
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 56158
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=56158&action=edit
Preprocessed source from building PostgreSQL 16 with gcc-13
Trying to build PostgreSQL 16 on Debian unstable sh4 with gcc-12 or gcc-13
results in the compiler crashing with a segmentation fault:
root@tirpitz:..backend/access> /usr/bin/sh4-linux-gnu-gcc-12 -Wall
-Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement -Werror=vla
-Wendif-labels -Wmissing-format-attribute -Wimplicit-fallthrough=3
-Wcast-function-type -Wshadow=compatible-local -Wformat-security
-fno-strict-aliasing -fwrapv -fexcess-precision=standard -Wno-format-truncation
-Wno-stringop-truncation -g -g -O2
-ffile-prefix-map=/build/postgresql-16-T1yJxb/postgresql-16-16.0/=.
-specs=/usr/share/dpkg/pie-compile.specs -fstack-protector-strong -Wformat
-Werror=format-security -I../../../../src/include
-I/build/postgresql-16-T1yJxb/postgresql-16-16.0/build/src/include -Wdate-time
-D_FORTIFY_SOURCE=2 -D_GNU_SOURCE -I/usr/include/libxml2 -c -o heapam.o
/build/postgresql-16-T1yJxb/postgresql-16-16.0/build/../src/backend/access/heap/heapam.c
-save-temps
sh4-linux-gnu-gcc-12: internal compiler error: Segmentation fault signal
terminated program cc1
Please submit a full bug report, with preprocessed source (by using
-freport-bug).
See <file:///usr/share/doc/gcc-12/README.Bugs> for instructions.
root@tirpitz:..backend/access> /usr/bin/sh4-linux-gnu-gcc-13 -Wall
-Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement -Werror=vla
-Wendif-labels -Wmissing-format-attribute -Wimplicit-fallthrough=3
-Wcast-function-type -Wshadow=compatible-local -Wformat-security
-fno-strict-aliasing -fwrapv -fexcess-precision=standard -Wno-format-truncation
-Wno-stringop-truncation -g -g -O2
-ffile-prefix-map=/build/postgresql-16-T1yJxb/postgresql-16-16.0/=.
-specs=/usr/share/dpkg/pie-compile.specs -fstack-protector-strong -Wformat
-Werror=format-security -I../../../../src/include
-I/build/postgresql-16-T1yJxb/postgresql-16-16.0/build/src/include -Wdate-time
-D_FORTIFY_SOURCE=2 -D_GNU_SOURCE -I/usr/include/libxml2 -c -o heapam.o
/build/postgresql-16-T1yJxb/postgresql-16-16.0/build/../src/backend/access/heap/heapam.c
-save-temps
sh4-linux-gnu-gcc-13: internal compiler error: Segmentation fault signal
terminated program cc1
Please submit a full bug report, with preprocessed source (by using
-freport-bug).
See <file:///usr/share/doc/gcc-13/README.Bugs> for instructions.
root@tirpitz:..backend/access>
Both gcc-10 and gcc-11 work fine:
root@tirpitz:..backend/access> /usr/bin/sh4-linux-gnu-gcc-10 -Wall
-Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement -Werror=vla
-Wendif-labels -Wmissing-format-attribute -Wimplicit-fallthrough=3
-Wcast-function-type -Wshadow=compatible-local -Wformat-security
-fno-strict-aliasing -fwrapv -fexcess-precision=standard -Wno-format-truncation
-Wno-stringop-truncation -g -g -O2
-ffile-prefix-map=/build/postgresql-16-T1yJxb/postgresql-16-16.0/=.
-specs=/usr/share/dpkg/pie-compile.specs -fstack-protector-strong -Wformat
-Werror=format-security -I../../../../src/include
-I/build/postgresql-16-T1yJxb/postgresql-16-16.0/build/src/include -Wdate-time
-D_FORTIFY_SOURCE=2 -D_GNU_SOURCE -I/usr/include/libxml2 -c -o heapam.o
/build/postgresql-16-T1yJxb/postgresql-16-16.0/build/../src/backend/access/heap/heapam.c
-save-temps
root@tirpitz:..backend/access> /usr/bin/sh4-linux-gnu-gcc-11 -Wall
-Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement -Werror=vla
-Wendif-labels -Wmissing-format-attribute -Wimplicit-fallthrough=3
-Wcast-function-type -Wshadow=compatible-local -Wformat-security
-fno-strict-aliasing -fwrapv -fexcess-precision=standard -Wno-format-truncation
-Wno-stringop-truncation -g -g -O2
-ffile-prefix-map=/build/postgresql-16-T1yJxb/postgresql-16-16.0/=.
-specs=/usr/share/dpkg/pie-compile.specs -fstack-protector-strong -Wformat
-Werror=format-security -I../../../../src/include
-I/build/postgresql-16-T1yJxb/postgresql-16-16.0/build/src/include -Wdate-time
-D_FORTIFY_SOURCE=2 -D_GNU_SOURCE -I/usr/include/libxml2 -c -o heapam.o
/build/postgresql-16-T1yJxb/postgresql-16-16.0/build/../src/backend/access/heap/heapam.c
-save-temps
root@tirpitz:..backend/access>
Attaching the preprocessed source generated with "-save-temps".
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug target/111898] [12/13/14 Regression][SH] internal compiler error: Segmentation fault when building PostgreSQL 16
2023-10-20 15:35 [Bug target/111898] New: [SH] [12 13 Regression] internal compiler error: Segmentation fault when building PostgreSQL 16 glaubitz at physik dot fu-berlin.de
@ 2023-10-23 9:02 ` rguenth at gcc dot gnu.org
2024-02-29 16:15 ` glaubitz at physik dot fu-berlin.de
2024-03-01 0:27 ` olegendo at gcc dot gnu.org
2 siblings, 0 replies; 4+ messages in thread
From: rguenth at gcc dot gnu.org @ 2023-10-23 9:02 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111898
Richard Biener <rguenth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Known to work| |11.4.0
Target Milestone|--- |12.4
Priority|P3 |P4
Summary|[SH] [12 13 Regression] |[12/13/14 Regression][SH]
|internal compiler error: |internal compiler error:
|Segmentation fault when |Segmentation fault when
|building PostgreSQL 16 |building PostgreSQL 16
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug target/111898] [12/13/14 Regression][SH] internal compiler error: Segmentation fault when building PostgreSQL 16
2023-10-20 15:35 [Bug target/111898] New: [SH] [12 13 Regression] internal compiler error: Segmentation fault when building PostgreSQL 16 glaubitz at physik dot fu-berlin.de
2023-10-23 9:02 ` [Bug target/111898] [12/13/14 Regression][SH] " rguenth at gcc dot gnu.org
@ 2024-02-29 16:15 ` glaubitz at physik dot fu-berlin.de
2024-03-01 0:27 ` olegendo at gcc dot gnu.org
2 siblings, 0 replies; 4+ messages in thread
From: glaubitz at physik dot fu-berlin.de @ 2024-02-29 16:15 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111898
--- Comment #1 from John Paul Adrian Glaubitz <glaubitz at physik dot fu-berlin.de> ---
Looks like that the issue no longer shows and postgresql-16 builds fine [1].
So, we can probably close this.
> [1] https://buildd.debian.org/status/fetch.php?pkg=postgresql-16&arch=sh4&ver=16.2-1&stamp=1707416240&raw=0
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug target/111898] [12/13/14 Regression][SH] internal compiler error: Segmentation fault when building PostgreSQL 16
2023-10-20 15:35 [Bug target/111898] New: [SH] [12 13 Regression] internal compiler error: Segmentation fault when building PostgreSQL 16 glaubitz at physik dot fu-berlin.de
2023-10-23 9:02 ` [Bug target/111898] [12/13/14 Regression][SH] " rguenth at gcc dot gnu.org
2024-02-29 16:15 ` glaubitz at physik dot fu-berlin.de
@ 2024-03-01 0:27 ` olegendo at gcc dot gnu.org
2 siblings, 0 replies; 4+ messages in thread
From: olegendo at gcc dot gnu.org @ 2024-03-01 0:27 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111898
Oleg Endo <olegendo at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Resolution|--- |WORKSFORME
Status|UNCONFIRMED |RESOLVED
--- Comment #2 from Oleg Endo <olegendo at gcc dot gnu.org> ---
OK, let's close it. Thanks for staying on it.
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2024-03-01 0:27 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-10-20 15:35 [Bug target/111898] New: [SH] [12 13 Regression] internal compiler error: Segmentation fault when building PostgreSQL 16 glaubitz at physik dot fu-berlin.de
2023-10-23 9:02 ` [Bug target/111898] [12/13/14 Regression][SH] " rguenth at gcc dot gnu.org
2024-02-29 16:15 ` glaubitz at physik dot fu-berlin.de
2024-03-01 0:27 ` olegendo at gcc dot gnu.org
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).