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

            Bug ID: 92296
           Summary: GCC build ICE on MinGW-w64. internal compiler error:
                    Segmentation fault  #pragma
                    push_macro("__has_builtin")
           Product: gcc
           Version: 10.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
          Assignee: unassigned at gcc dot gnu.org
          Reporter: euloanty at live dot com
  Target Milestone: ---

/d/mw/mingw-gcc-mcf-gthread/src/build-x86_64-w64-mingw32/./gcc/xgcc
-B/d/mw/mingw-gcc-mcf-gthread/src/build-x86_64-w64-mingw32/./gcc/
-L/mingw64/x86_64-w64-mingw32/lib -L/mingw64/lib -isystem
/mingw64/x86_64-w64-mingw32/include -isystem /mingw64/include
-B/mingw64/x86_64-w64-mingw32/bin/ -B/mingw64/x86_64-w64-mingw32/lib/ -isystem
/mingw64/x86_64-w64-mingw32/include -isystem
/mingw64/x86_64-w64-mingw32/sys-include   -fno-checking -g -march=x86-64
-mtune=generic -O2 -pipe -O2 -I../../../gcc-git/libgcc/../winsup/w32api/include
-g -march=x86-64 -mtune=generic -O2 -pipe -DIN_GCC    -W -Wall -Wno-narrowing
-Wwrite-strings -Wcast-qual -Wno-format -Wstrict-prototypes
-Wmissing-prototypes -Wold-style-definition  -isystem ./include   -g
-DIN_LIBGCC2 -fbuilding-libgcc -fno-stack-protector   -I. -I. -I../.././gcc
-I../../../gcc-git/libgcc -I../../../gcc-git/libgcc/.
-I../../../gcc-git/libgcc/../gcc -I../../../gcc-git/libgcc/../include
-I../../../gcc-git/libgcc/config/libbid -DENABLE_DECIMAL_BID_FORMAT   -o
_absvsi2.o -MT _absvsi2.o -MD -MP -MF _absvsi2.dep -DL_absvsi2 -c
../../../gcc-git/libgcc/libgcc2.c
/d/mw/mingw-gcc-mcf-gthread/src/build-x86_64-w64-mingw32/./gcc/xgcc
-B/d/mw/mingw-gcc-mcf-gthread/src/build-x86_64-w64-mingw32/./gcc/
-L/mingw64/x86_64-w64-mingw32/lib -L/mingw64/lib -isystem
/mingw64/x86_64-w64-mingw32/include -isystem /mingw64/include
-B/mingw64/x86_64-w64-mingw32/bin/ -B/mingw64/x86_64-w64-mingw32/lib/ -isystem
/mingw64/x86_64-w64-mingw32/include -isystem
/mingw64/x86_64-w64-mingw32/sys-include   -fno-checking -g -march=x86-64
-mtune=generic -O2 -pipe -O2 -I../../../gcc-git/libgcc/../winsup/w32api/include
-g -march=x86-64 -mtune=generic -O2 -pipe -DIN_GCC    -W -Wall -Wno-narrowing
-Wwrite-strings -Wcast-qual -Wno-format -Wstrict-prototypes
-Wmissing-prototypes -Wold-style-definition  -isystem ./include   -g
-DIN_LIBGCC2 -fbuilding-libgcc -fno-stack-protector   -I. -I. -I../.././gcc
-I../../../gcc-git/libgcc -I../../../gcc-git/libgcc/.
-I../../../gcc-git/libgcc/../gcc -I../../../gcc-git/libgcc/../include
-I../../../gcc-git/libgcc/config/libbid -DENABLE_DECIMAL_BID_FORMAT   -o
_absvdi2.o -MT _absvdi2.o -MD -MP -MF _absvdi2.dep -DL_absvdi2 -c
../../../gcc-git/libgcc/libgcc2.c
In file included from D:/msys64/mingw64/x86_64-w64-mingw32/include/winnt.h:27,
                 from
D:/msys64/mingw64/x86_64-w64-mingw32/include/minwindef.h:163,
                 from D:/msys64/mingw64/x86_64-w64-mingw32/include/windef.h:8,
                 from
D:/msys64/mingw64/x86_64-w64-mingw32/include/windows.h:69,
                 from ../../../gcc-git/libgcc/libgcc2.c:2183:
D:/msys64/mingw64/x86_64-w64-mingw32/include/psdk_inc/intrin-impl.h:65:9:
internal compiler error: Segmentation fault
   65 | #pragma push_macro("__has_builtin")
      |         ^~~~~~~~~~
libbacktrace could not find executable to open
Please submit a full bug report,
with preprocessed source if appropriate.
See <https://gcc-mcf.lhmouse.com/> for instructions.
/d/mw/mingw-gcc-mcf-gthread/src/build-x86_64-w64-mingw32/./gcc/xgcc
-B/d/mw/mingw-gcc-mcf-gthread/src/build-x86_64-w64-mingw32/./gcc/
-L/mingw64/x86_64-w64-mingw32/lib -L/mingw64/lib -isystem
/mingw64/x86_64-w64-mingw32/include -isystem /mingw64/include
-B/mingw64/x86_64-w64-mingw32/bin/ -B/mingw64/x86_64-w64-mingw32/lib/ -isystem
/mingw64/x86_64-w64-mingw32/include -isystem
/mingw64/x86_64-w64-mingw32/sys-include   -fno-checking -g -march=x86-64
-mtune=generic -O2 -pipe -O2 -I../../../gcc-git/libgcc/../winsup/w32api/include
-g -march=x86-64 -mtune=generic -O2 -pipe -DIN_GCC    -W -Wall -Wno-narrowing
-Wwrite-strings -Wcast-qual -Wno-format -Wstrict-prototypes
-Wmissing-prototypes -Wold-style-definition  -isystem ./include   -g
-DIN_LIBGCC2 -fbuilding-libgcc -fno-stack-protector   -I. -I. -I../.././gcc
-I../../../gcc-git/libgcc -I../../../gcc-git/libgcc/.
-I../../../gcc-git/libgcc/../gcc -I../../../gcc-git/libgcc/../include
-I../../../gcc-git/libgcc/config/libbid -DENABLE_DECIMAL_BID_FORMAT   -o
_addvsi3.o -MT _addvsi3.o -MD -MP -MF _addvsi3.dep -DL_addvsi3 -c
../../../gcc-git/libgcc/libgcc2.c
/d/mw/mingw-gcc-mcf-gthread/src/build-x86_64-w64-mingw32/./gcc/xgcc
-B/d/mw/mingw-gcc-mcf-gthread/src/build-x86_64-w64-mingw32/./gcc/
-L/mingw64/x86_64-w64-mingw32/lib -L/mingw64/lib -isystem
/mingw64/x86_64-w64-mingw32/include -isystem /mingw64/include
-B/mingw64/x86_64-w64-mingw32/bin/ -B/mingw64/x86_64-w64-mingw32/lib/ -isystem
/mingw64/x86_64-w64-mingw32/include -isystem
/mingw64/x86_64-w64-mingw32/sys-include   -fno-checking -g -march=x86-64
-mtune=generic -O2 -pipe -O2 -I../../../gcc-git/libgcc/../winsup/w32api/include
-g -march=x86-64 -mtune=generic -O2 -pipe -DIN_GCC    -W -Wall -Wno-narrowing
-Wwrite-strings -Wcast-qual -Wno-format -Wstrict-prototypes
-Wmissing-prototypes -Wold-style-definition  -isystem ./include   -g
-DIN_LIBGCC2 -fbuilding-libgcc -fno-stack-protector   -I. -I. -I../.././gcc
-I../../../gcc-git/libgcc -I../../../gcc-git/libgcc/.
-I../../../gcc-git/libgcc/../gcc -I../../../gcc-git/libgcc/../include
-I../../../gcc-git/libgcc/config/libbid -DENABLE_DECIMAL_BID_FORMAT   -o
_addvdi3.o -MT _addvdi3.o -MD -MP -MF _addvdi3.dep -DL_addvdi3 -c
../../../gcc-git/libgcc/libgcc2.c
/d/mw/mingw-gcc-mcf-gthread/src/build-x86_64-w64-mingw32/./gcc/xgcc
-B/d/mw/mingw-gcc-mcf-gthread/src/build-x86_64-w64-mingw32/./gcc/
-L/mingw64/x86_64-w64-mingw32/lib -L/mingw64/lib -isystem
/mingw64/x86_64-w64-mingw32/include -isystem /mingw64/include
-B/mingw64/x86_64-w64-mingw32/bin/ -B/mingw64/x86_64-w64-mingw32/lib/ -isystem
/mingw64/x86_64-w64-mingw32/include -isystem
/mingw64/x86_64-w64-mingw32/sys-include   -fno-checking -g -march=x86-64
-mtune=generic -O2 -pipe -O2 -I../../../gcc-git/libgcc/../winsup/w32api/include
-g -march=x86-64 -mtune=generic -O2 -pipe -DIN_GCC    -W -Wall -Wno-narrowing
-Wwrite-strings -Wcast-qual -Wno-format -Wstrict-prototypes
-Wmissing-prototypes -Wold-style-definition  -isystem ./include   -g
-DIN_LIBGCC2 -fbuilding-libgcc -fno-stack-protector   -I. -I. -I../.././gcc
-I../../../gcc-git/libgcc -I../../../gcc-git/libgcc/.
-I../../../gcc-git/libgcc/../gcc -I../../../gcc-git/libgcc/../include
-I../../../gcc-git/libgcc/config/libbid -DENABLE_DECIMAL_BID_FORMAT   -o
_subvsi3.o -MT _subvsi3.o -MD -MP -MF _subvsi3.dep -DL_subvsi3 -c
../../../gcc-git/libgcc/libgcc2.c
/d/mw/mingw-gcc-mcf-gthread/src/build-x86_64-w64-mingw32/./gcc/xgcc
-B/d/mw/mingw-gcc-mcf-gthread/src/build-x86_64-w64-mingw32/./gcc/
-L/mingw64/x86_64-w64-mingw32/lib -L/mingw64/lib -isystem
/mingw64/x86_64-w64-mingw32/include -isystem /mingw64/include
-B/mingw64/x86_64-w64-mingw32/bin/ -B/mingw64/x86_64-w64-mingw32/lib/ -isystem
/mingw64/x86_64-w64-mingw32/include -isystem
/mingw64/x86_64-w64-mingw32/sys-include   -fno-checking -g -march=x86-64
-mtune=generic -O2 -pipe -O2 -I../../../gcc-git/libgcc/../winsup/w32api/include
-g -march=x86-64 -mtune=generic -O2 -pipe -DIN_GCC    -W -Wall -Wno-narrowing
-Wwrite-strings -Wcast-qual -Wno-format -Wstrict-prototypes
-Wmissing-prototypes -Wold-style-definition  -isystem ./include   -g
-DIN_LIBGCC2 -fbuilding-libgcc -fno-stack-protector   -I. -I. -I../.././gcc
-I../../../gcc-git/libgcc -I../../../gcc-git/libgcc/.
-I../../../gcc-git/libgcc/../gcc -I../../../gcc-git/libgcc/../include
-I../../../gcc-git/libgcc/config/libbid -DENABLE_DECIMAL_BID_FORMAT   -o
_subvdi3.o -MT _subvdi3.o -MD -MP -MF _subvdi3.dep -DL_subvdi3 -c
../../../gcc-git/libgcc/libgcc2.c
/d/mw/mingw-gcc-mcf-gthread/src/build-x86_64-w64-mingw32/./gcc/xgcc
-B/d/mw/mingw-gcc-mcf-gthread/src/build-x86_64-w64-mingw32/./gcc/
-L/mingw64/x86_64-w64-mingw32/lib -L/mingw64/lib -isystem
/mingw64/x86_64-w64-mingw32/include -isystem /mingw64/include
-B/mingw64/x86_64-w64-mingw32/bin/ -B/mingw64/x86_64-w64-mingw32/lib/ -isystem
/mingw64/x86_64-w64-mingw32/include -isystem
/mingw64/x86_64-w64-mingw32/sys-include   -fno-checking -g -march=x86-64
-mtune=generic -O2 -pipe -O2 -I../../../gcc-git/libgcc/../winsup/w32api/include
-g -march=x86-64 -mtune=generic -O2 -pipe -DIN_GCC    -W -Wall -Wno-narrowing
-Wwrite-strings -Wcast-qual -Wno-format -Wstrict-prototypes
-Wmissing-prototypes -Wold-style-definition  -isystem ./include   -g
-DIN_LIBGCC2 -fbuilding-libgcc -fno-stack-protector   -I. -I. -I../.././gcc
-I../../../gcc-git/libgcc -I../../../gcc-git/libgcc/.
-I../../../gcc-git/libgcc/../gcc -I../../../gcc-git/libgcc/../include
-I../../../gcc-git/libgcc/config/libbid -DENABLE_DECIMAL_BID_FORMAT   -o
_mulvsi3.o -MT _mulvsi3.o -MD -MP -MF _mulvsi3.dep -DL_mulvsi3 -c
../../../gcc-git/libgcc/libgcc2.c
/d/mw/mingw-gcc-mcf-gthread/src/build-x86_64-w64-mingw32/./gcc/xgcc
-B/d/mw/mingw-gcc-mcf-gthread/src/build-x86_64-w64-mingw32/./gcc/
-L/mingw64/x86_64-w64-mingw32/lib -L/mingw64/lib -isystem
/mingw64/x86_64-w64-mingw32/include -isystem /mingw64/include
-B/mingw64/x86_64-w64-mingw32/bin/ -B/mingw64/x86_64-w64-mingw32/lib/ -isystem
/mingw64/x86_64-w64-mingw32/include -isystem
/mingw64/x86_64-w64-mingw32/sys-include   -fno-checking -g -march=x86-64
-mtune=generic -O2 -pipe -O2 -I../../../gcc-git/libgcc/../winsup/w32api/include
-g -march=x86-64 -mtune=generic -O2 -pipe -DIN_GCC    -W -Wall -Wno-narrowing
-Wwrite-strings -Wcast-qual -Wno-format -Wstrict-prototypes
-Wmissing-prototypes -Wold-style-definition  -isystem ./include   -g
-DIN_LIBGCC2 -fbuilding-libgcc -fno-stack-protector   -I. -I. -I../.././gcc
-I../../../gcc-git/libgcc -I../../../gcc-git/libgcc/.
-I../../../gcc-git/libgcc/../gcc -I../../../gcc-git/libgcc/../include
-I../../../gcc-git/libgcc/config/libbid -DENABLE_DECIMAL_BID_FORMAT   -o
_mulvdi3.o -MT _mulvdi3.o -MD -MP -MF _mulvdi3.dep -DL_mulvdi3 -c
../../../gcc-git/libgcc/libgcc2.c
/d/mw/mingw-gcc-mcf-gthread/src/build-x86_64-w64-mingw32/./gcc/xgcc
-B/d/mw/mingw-gcc-mcf-gthread/src/build-x86_64-w64-mingw32/./gcc/
-L/mingw64/x86_64-w64-mingw32/lib -L/mingw64/lib -isystem
/mingw64/x86_64-w64-mingw32/include -isystem /mingw64/include
-B/mingw64/x86_64-w64-mingw32/bin/ -B/mingw64/x86_64-w64-mingw32/lib/ -isystem
/mingw64/x86_64-w64-mingw32/include -isystem
/mingw64/x86_64-w64-mingw32/sys-include   -fno-checking -g -march=x86-64
-mtune=generic -O2 -pipe -O2 -I../../../gcc-git/libgcc/../winsup/w32api/include
-g -march=x86-64 -mtune=generic -O2 -pipe -DIN_GCC    -W -Wall -Wno-narrowing
-Wwrite-strings -Wcast-qual -Wno-format -Wstrict-prototypes
-Wmissing-prototypes -Wold-style-definition  -isystem ./include   -g
-DIN_LIBGCC2 -fbuilding-libgcc -fno-stack-protector   -I. -I. -I../.././gcc
-I../../../gcc-git/libgcc -I../../../gcc-git/libgcc/.
-I../../../gcc-git/libgcc/../gcc -I../../../gcc-git/libgcc/../include
-I../../../gcc-git/libgcc/config/libbid -DENABLE_DECIMAL_BID_FORMAT   -o
_negvsi2.o -MT _negvsi2.o -MD -MP -MF _negvsi2.dep -DL_negvsi2 -c
../../../gcc-git/libgcc/libgcc2.c
/d/mw/mingw-gcc-mcf-gthread/src/build-x86_64-w64-mingw32/./gcc/xgcc
-B/d/mw/mingw-gcc-mcf-gthread/src/build-x86_64-w64-mingw32/./gcc/
-L/mingw64/x86_64-w64-mingw32/lib -L/mingw64/lib -isystem
/mingw64/x86_64-w64-mingw32/include -isystem /mingw64/include
-B/mingw64/x86_64-w64-mingw32/bin/ -B/mingw64/x86_64-w64-mingw32/lib/ -isystem
/mingw64/x86_64-w64-mingw32/include -isystem
/mingw64/x86_64-w64-mingw32/sys-include   -fno-checking -g -march=x86-64
-mtune=generic -O2 -pipe -O2 -I../../../gcc-git/libgcc/../winsup/w32api/include
-g -march=x86-64 -mtune=generic -O2 -pipe -DIN_GCC    -W -Wall -Wno-narrowing
-Wwrite-strings -Wcast-qual -Wno-format -Wstrict-prototypes
-Wmissing-prototypes -Wold-style-definition  -isystem ./include   -g
-DIN_LIBGCC2 -fbuilding-libgcc -fno-stack-protector   -I. -I. -I../.././gcc
-I../../../gcc-git/libgcc -I../../../gcc-git/libgcc/.
-I../../../gcc-git/libgcc/../gcc -I../../../gcc-git/libgcc/../include
-I../../../gcc-git/libgcc/config/libbid -DENABLE_DECIMAL_BID_FORMAT   -o
_negvdi2.o -MT _negvdi2.o -MD -MP -MF _negvdi2.dep -DL_negvdi2 -c
../../../gcc-git/libgcc/libgcc2.c
make[3]: *** [Makefile:500: _trampoline.o] Error 1
make[3]: *** Waiting for unfinished jobs....
make[3]: Leaving directory
'/d/mw/mingw-gcc-mcf-gthread/src/build-x86_64-w64-mingw32/x86_64-w64-mingw32/libgcc'
make[2]: *** [Makefile:17787: all-stage1-target-libgcc] Error 2
make[2]: Leaving directory
'/d/mw/mingw-gcc-mcf-gthread/src/build-x86_64-w64-mingw32'
make[1]: *** [Makefile:21695: stage1-bubble] Error 2
make[1]: Leaving directory
'/d/mw/mingw-gcc-mcf-gthread/src/build-x86_64-w64-mingw32'
make: *** [Makefile:1007: all] Error 2
==> ERROR: A failure occurred in build().
    Aborting...


I have tried two compilers. They all have the issue.

I did finish compilation with the same script 3 days ago. Now It fails

Reply via email to