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

            Bug ID: 93758
           Summary: Building x86_64-w64-mingw32-gcc (mingw-w64) on macOS
                    Catalina results in "internal compiler error:
                    Segmentation fault"
           Product: gcc
           Version: 9.2.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: bootstrap
          Assignee: unassigned at gcc dot gnu.org
          Reporter: mojca at macports dot org
  Target Milestone: ---

See:
* https://trac.macports.org/ticket/60091
* https://ports.macports.org/port/i686-w64-mingw32-gcc-nothreads/builds

Since macOS Catalina (10.5) we are apparently no longer able to build
x86_64-w64-mingw32-gcc.

Bootstrapping (make all-gcc && make install-gcc) is performed with clang and
succeeds (but I'm not excluding the chance that there is a bug in the clang
compiler as shipped on Catalina; we had numerous issues which required using
-fno-stack-check).

libtool: compile:  /path/to/build/./gcc/xgcc -B/path/to/build/./gcc/
-L/opt/local/i686-w64-mingw32/lib -L/opt/local/mingw/lib -isystem
/opt/local/i686-w64-mingw32/include -isystem /opt/local/mingw/include
-B/opt/local/i686-w64-mingw32/bin/ -B/opt/local/i686-w64-mingw32/lib/ -isystem
/opt/local/i686-w64-mingw32/include -isystem
/opt/local/i686-w64-mingw32/sys-include -DHAVE_CONFIG_H -I.
-I/path/to/gcc-9.2.0/libgfortran -iquote/path/to/gcc-9.2.0/libgfortran/io
-I/path/to/gcc-9.2.0/libgfortran/../gcc
-I/path/to/gcc-9.2.0/libgfortran/../gcc/config
-I/path/to/gcc-9.2.0/libgfortran/../libquadmath -I../.././gcc
-I/path/to/gcc-9.2.0/libgfortran/../libgcc -I../libgcc
-I/path/to/gcc-9.2.0/libgfortran/../libbacktrace -I../libbacktrace
-I../libbacktrace -std=gnu11 -Wall -Wstrict-prototypes -Wmissing-prototypes
-Wold-style-definition -Wextra -Wwrite-strings
-Werror=implicit-function-declaration -Werror=vla -fcx-fortran-rules
-ffunction-sections -fdata-sections -g -O2 -MT norm2_r4.lo -MD -MP -MF
.deps/norm2_r4.Tpo -c /path/to/gcc-9.2.0/libgfortran/generated/norm2_r4.c 
-DDLL_EXPORT -DPIC -o .libs/norm2_r4.o
during GIMPLE pass: ccp
/path/to/gcc-9.2.0/libgfortran/generated/norm2_r4.c: In function ‘norm2_r4’:
/path/to/gcc-9.2.0/libgfortran/generated/norm2_r4.c:213:1: internal compiler
error: Segmentation fault: 11

Reply via email to