https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101369
Bug ID: 101369
Summary: Bootstrap failure of gcc-12-20210704 on Cygwin
Product: gcc
Version: 12.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: bootstrap
Assignee: unassigned at gcc dot gnu.org
Reporter: mckelvey at maskull dot com
Target Milestone: ---
Created attachment 51114
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=51114&action=edit
Tarball of build.log and config.log
Recent gcc-11 and gcc-12 snapshots fail with:
/bin/sh: build/genmodes.exe: cannot execute binary file: Exec format error
Using gcc version 11.1.1 20210619:
$ g++ -v
Using built-in specs.
COLLECT_GCC=g++
COLLECT_LTO_WRAPPER=/usr/local/libexec/gcc/x86_64-pc-cygwin/11.1.1/lto-wrapper.exe
Target: x86_64-pc-cygwin
Configured with: ./configure --enable-languages=c,c++ --enable-threads=posix
Thread model: posix
Supported LTO compression algorithms: zlib
gcc version 11.1.1 20210619 (GCC)
(Fails the same way on the gcc-10 provided in Cygwin.)
$ uname -r
3.2.0(0.340/5/3)
More context of failure:
/home/McKelvey/gcc-12-20210704/host-x86_64-pc-cygwin/prev-gcc/xg++
-B/home/McKelvey/gcc-12-20210704/host-x86_64-pc-cygwin/prev-gcc/
-B/usr/local/x86_64-pc-cygwin/bin/ -nostdinc++
-B/home/McKelvey/gcc-12-20210704/prev-x86_64-pc-cygwin/libstdc++-v3/src/.libs
-B/home/McKelvey/gcc-12-20210704/prev-x86_64-pc-cygwin/libstdc++-v3/libsupc++/.libs
-I/home/McKelvey/gcc-12-20210704/prev-x86_64-pc-cygwin/libstdc++-v3/include/x86_64-pc-cygwin
-I/home/McKelvey/gcc-12-20210704/prev-x86_64-pc-cygwin/libstdc++-v3/include
-I/home/McKelvey/gcc-12-20210704/libstdc++-v3/libsupc++
-L/home/McKelvey/gcc-12-20210704/prev-x86_64-pc-cygwin/libstdc++-v3/src/.libs
-L/home/McKelvey/gcc-12-20210704/prev-x86_64-pc-cygwin/libstdc++-v3/libsupc++/.libs
-g -O2 -fno-checking -gtoggle -DIN_GCC -fno-exceptions -fno-rtti
-fasynchronous-unwind-tables -W -Wall -Wno-narrowing -Wwrite-strings
-Wcast-qual -Wno-error=format-diag -Wmissing-format-attribute
-Woverloaded-virtual -pedantic -Wno-long-long -Wno-variadic-macros
-Wno-overlength-strings -Werror -fno-common -DHAVE_CONFIG_H -DGENERATOR_FILE
-fno-PIE -static-libstdc++ -static-libgcc -Wl,--stack,12582912 -no-pie -o
build/genmodes.exe \
build/genmodes.o build/errors.o
../../host-x86_64-pc-cygwin/libiberty/libiberty.a
build/genmodes.exe -h > tmp-modes.h
/bin/sh: build/genmodes.exe: cannot execute binary file: Exec format error
make[3]: *** [Makefile:2531: s-modes-h] Error 126
make[3]: Leaving directory
'/home/McKelvey/gcc-12-20210704/host-x86_64-pc-cygwin/gcc'
make[2]: *** [Makefile:4803: all-stage2-gcc] Error 2
make[2]: Leaving directory '/home/McKelvey/gcc-12-20210704'
make[1]: *** [Makefile:23134: stage2-bubble] Error 2
make[1]: Leaving directory '/home/McKelvey/gcc-12-20210704'
make: *** [Makefile:1000: all] Error 2