https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104830
Bug ID: 104830
Summary: Errors Building gcc-12-20220306 under Cygwin:
__terminate and more
Product: gcc
Version: 12.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: libstdc++
Assignee: unassigned at gcc dot gnu.org
Reporter: mckelvey at maskull dot com
Target Milestone: ---
Created attachment 52575
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=52575&action=edit
Complete build log
Up-to-date Cygwin CYGWIN_NT-10.0 under Windows 10.
Using gcc-11-20220305
./configure --enable-languages=c,c++ --enable-threads=posix
...
/home/McKelvey/gcc-12-20220306/host-x86_64-pc-cygwin/gcc/xgcc -shared-libgcc
-B/home/McKelvey/gcc-12-20220306/host-x86_64-pc-cygwin/gcc -nostdinc++
-L/home/McKelvey/gcc-12-20220306/x86_64-pc-cygwin/libstdc++-v3/src
-L/home/McKelvey/gcc-12-20220306/x86_64-pc-cygwin/libstdc++-v3/src/.libs
-L/home/McKelvey/gcc-12-20220306/x86_64-pc-cygwin/libstdc++-v3/libsupc++/.libs
-B/usr/local/x86_64-pc-cygwin/bin/ -B/usr/local/x86_64-pc-cygwin/lib/ -isystem
/usr/local/x86_64-pc-cygwin/include -isystem
/usr/local/x86_64-pc-cygwin/sys-include -fno-checking -x c++-header
-nostdinc++ -g -O2
-I/home/McKelvey/gcc-12-20220306/x86_64-pc-cygwin/libstdc++-v3/include/x86_64-pc-cygwin
-I/home/McKelvey/gcc-12-20220306/x86_64-pc-cygwin/libstdc++-v3/include
-I/home/McKelvey/gcc-12-20220306/libstdc++-v3/libsupc++ -O2 -g -std=gnu++0x
/home/McKelvey/gcc-12-20220306/libstdc++-v3/include/precompiled/stdc++.h \
-o x86_64-pc-cygwin/bits/stdc++.h.gch/O2ggnu++0x.gch
In file included from
/home/McKelvey/gcc-12-20220306/x86_64-pc-cygwin/libstdc++-v3/include/cassert:43,
from
/home/McKelvey/gcc-12-20220306/libstdc++-v3/include/precompiled/stdc++.h:33:
/home/McKelvey/gcc-12-20220306/x86_64-pc-cygwin/libstdc++-v3/include/x86_64-pc-cygwin/bits/c++config.h:308:3:
error: expected constructor, destructor, or type conversion before ‘(’ token
308 | _GLIBCXX_VISIBILITY(default)
| ^~~~~~~~~~~~~~~~~~~
In file included from
/home/McKelvey/gcc-12-20220306/x86_64-pc-cygwin/libstdc++-v3/include/future:49,
from
/home/McKelvey/gcc-12-20220306/libstdc++-v3/include/precompiled/stdc++.h:105:
/home/McKelvey/gcc-12-20220306/x86_64-pc-cygwin/libstdc++-v3/include/bits/std_thread.h:
In destructor ‘std::thread::~thread()’:
/home/McKelvey/gcc-12-20220306/x86_64-pc-cygwin/libstdc++-v3/include/bits/std_thread.h:151:14:
error: ‘__terminate’ is not a member of ‘std’; did you mean ‘terminate’?
151 | std::__terminate();
| ^~~~~~~~~~~
| terminate
/home/McKelvey/gcc-12-20220306/x86_64-pc-cygwin/libstdc++-v3/include/bits/std_thread.h:
In member function ‘std::thread& std::thread::operator=(std::thread&&)’:
/home/McKelvey/gcc-12-20220306/x86_64-pc-cygwin/libstdc++-v3/include/bits/std_thread.h:164:14:
error: ‘__terminate’ is not a member of ‘std’; did you mean ‘terminate’?
164 | std::__terminate();
| ^~~~~~~~~~~
| terminate
make[5]: *** [Makefile:1888: x86_64-pc-cygwin/bits/stdc++.h.gch/O2ggnu++0x.gch]
Error 1
make[5]: Leaving directory
'/home/McKelvey/gcc-12-20220306/x86_64-pc-cygwin/libstdc++-v3/include'
make[4]: *** [Makefile:576: all-recursive] Error 1
make[4]: Leaving directory
'/home/McKelvey/gcc-12-20220306/x86_64-pc-cygwin/libstdc++-v3'
make[3]: *** [Makefile:501: all] Error 2
make[3]: Leaving directory
'/home/McKelvey/gcc-12-20220306/x86_64-pc-cygwin/libstdc++-v3'
make[2]: *** [Makefile:18277: all-stage1-target-libstdc++-v3] Error 2
make[2]: Leaving directory '/home/McKelvey/gcc-12-20220306'
make[1]: *** [Makefile:23994: stage1-bubble] Error 2
make[1]: Leaving directory '/home/McKelvey/gcc-12-20220306'
make: *** [Makefile:1072: all] Error 2
McKelvey@DESKTOP-DQ97FGL ~/gcc-12-20220306