https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87836

--- Comment #31 from Gary Mills <gary_mills at fastmail dot fm> ---
When I built gcc-7 with even more configuration options, including
--enable-initfini-array, I got this segmentation fault on SPARC hardware:

configure:3662: checking for suffix of object files
configure:3684:
/export/home/mills/Downloads/code/oi-userland/components/developer/gcc-7/build/sparcv7/./gcc/xgcc
-B/export/home/mills/Downloads/code/oi-userland/components/developer/gcc-7/build/sparcv7/./gcc/
-B/usr/gcc/7/sparc-sun-solaris2.11/bin/
-B/usr/gcc/7/sparc-sun-solaris2.11/lib/ -isystem
/usr/gcc/7/sparc-sun-solaris2.11/include -isystem
/usr/gcc/7/sparc-sun-solaris2.11/sys-include -c -g -O2 -mno-app-regs
conftest.c >&5
conftest.c: In function 'main':
conftest.c:11:1: internal compiler error: Segmentation Fault
 main ()
 ^~~~

conftest.c:11:1: internal compiler error: Abort
xgcc: internal compiler error: Abort (program cc1)

This is a known problem, and an old one.  The --enable-initfini-array option is
not shown in the help output from gcc-7 configure.  When I did a subsequent
build without that option, I got a successful build.  It's quite possible that
this option was the source of all the problems.

Reply via email to