I have always been able to build snapshots of gcc-11 and gcc-12 on Cygwin, but 
the latest ones fail.
This is the failure:
/home/McKelvey/gcc-12-20210627/host-x86_64-pc-cygwin/prev-gcc/xg++ 
-B/home/McKelvey/gcc-12-20210627/host-x86_64-pc-cygwin/prev-gcc/ 
-B/usr/local/x86_64-pc-cygwin/bin/ -nostdinc++ 
-B/home/McKelvey/gcc-12-20210627/prev-x86_64-pc-cygwin/libstdc++-v3/src/.libs 
-B/home/McKelvey/gcc-12-20210627/prev-x86_64-pc-cygwin/libstdc++-v3/libsupc++/.libs
  
-I/home/McKelvey/gcc-12-20210627/prev-x86_64-pc-cygwin/libstdc++-v3/include/x86_64-pc-cygwin
  -I/home/McKelvey/gcc-12-20210627/prev-x86_64-pc-cygwin/libstdc++-v3/include  
-I/home/McKelvey/gcc-12-20210627/libstdc++-v3/libsupc++ 
-L/home/McKelvey/gcc-12-20210627/prev-x86_64-pc-cygwin/libstdc++-v3/src/.libs 
-L/home/McKelvey/gcc-12-20210627/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:2527: s-modes-h] Error 126
make[3]: Leaving directory 
'/home/McKelvey/gcc-12-20210627/host-x86_64-pc-cygwin/gcc'
make[2]: *** [Makefile:4803: all-stage2-gcc] Error 2
make[2]: Leaving directory '/home/McKelvey/gcc-12-20210627'
make[1]: *** [Makefile:23134: stage2-bubble] Error 2
make[1]: Leaving directory '/home/McKelvey/gcc-12-20210627'
make: *** [Makefile:1000: all] Error 2

Entire build and configure logs attached as tarball.
Configured by ./configure --enable-languages=c,c++ --enable-threads=posix
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.)



I thought I should check here before submitting a bug report.

Attachment: buildLogs.tar.xz
Description: Binary data

Reply via email to