public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
* Build Failure of gcc-12 on Cygwin
       [not found] <1803788410.1059658.1625601677532.ref@mail.yahoo.com>
@ 2021-07-06 20:01 ` James McKelvey
  2021-07-11 15:08   ` Jonathan Yong
  0 siblings, 1 reply; 3+ messages in thread
From: James McKelvey @ 2021-07-06 20:01 UTC (permalink / raw)
  To: gcc-help

[-- Attachment #1: Type: text/plain, Size: 2559 bytes --]

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-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


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 #2: buildLogs.tar.xz --]
[-- Type: application/octet-stream, Size: 66928 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Build Failure of gcc-12 on Cygwin
  2021-07-06 20:01 ` Build Failure of gcc-12 on Cygwin James McKelvey
@ 2021-07-11 15:08   ` Jonathan Yong
  2021-07-12  1:20     ` LIU Hao
  0 siblings, 1 reply; 3+ messages in thread
From: Jonathan Yong @ 2021-07-11 15:08 UTC (permalink / raw)
  To: James McKelvey, gcc-help


[-- Attachment #1.1.1: Type: text/plain, Size: 2031 bytes --]

On 7/6/21 8:01 PM, James McKelvey wrote:
> 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-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
> 

Please try bisecting the changes.

[-- Attachment #1.1.2: OpenPGP public key --]
[-- Type: application/pgp-keys, Size: 5627 bytes --]

[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 840 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Build Failure of gcc-12 on Cygwin
  2021-07-11 15:08   ` Jonathan Yong
@ 2021-07-12  1:20     ` LIU Hao
  0 siblings, 0 replies; 3+ messages in thread
From: LIU Hao @ 2021-07-12  1:20 UTC (permalink / raw)
  To: Jonathan Yong, James McKelvey, gcc-help


[-- Attachment #1.1: Type: text/plain, Size: 951 bytes --]

在 7/11/21 11:08 PM, Jonathan Yong via Gcc-help 写道:
> On 7/6/21 8:01 PM, James McKelvey wrote:
>> 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:
>> (... ...)
>> 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
>> (... ...)
>>
> 
> Please try bisecting the changes.

It looks like https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101377 which should have been fixed on 
trunk, so please try the new snapshot.

The previous failure in that PR occurred during `stage1-bubble` instead of `stage2-bubble`. I don't 
know what the difference indicates, though.


-- 
Best regards,
LIU Hao


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 840 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2021-07-12  1:20 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <1803788410.1059658.1625601677532.ref@mail.yahoo.com>
2021-07-06 20:01 ` Build Failure of gcc-12 on Cygwin James McKelvey
2021-07-11 15:08   ` Jonathan Yong
2021-07-12  1:20     ` LIU Hao

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).