bootstrap failure since std::errc::operation_not_permitted does not exist on windows

sotrdg sotrdg euloanty@live.com
Thu Dec 17 16:20:58 GMT 2020


I guess yesterday’s patch around errno breaks this.

It turns out to be a harder problem than I thought since different platforms did things very differently here.

libstdc++: Test errno macros directly, not via autoconf [PR 93151] · gcc-mirror/gcc@a2c2eec (github.com)<https://github.com/gcc-mirror/gcc/commit/a2c2eec183acf25c9b214fa0827718e4d2fdfc93>

Sent from Mail<https://go.microsoft.com/fwlink/?LinkId=550986> for Windows 10

From: sotrdg sotrdg<mailto:euloanty@live.com>
Sent: Thursday, December 17, 2020 10:56
To: libstdc++<mailto:libstdc++@gcc.gnu.org>; Jonathan Wakely<mailto:jwakely.gcc@gmail.com>
Subject: bootstrap failure since std::errc::operation_not_permitted does not exist on windows

D:/msys64/home/unlvs/mingw-gcc-mcf-gthread/src/build-x86_64-w64-mingw32/x86_64-w64-mingw32/libstdc++-v3/include/bits/unique_lock.h: In member function 'void std::unique_lock<_Mutex>::unlock()':
D:/msys64/home/unlvs/mingw-gcc-mcf-gthread/src/build-x86_64-w64-mingw32/x86_64-w64-mingw32/libstdc++-v3/include/bits/unique_lock.h:191:42: error: 'operation_not_permitted' is not a member of 'std::errc'; did you mean 'operation_not_supported'?
  191 |           __throw_system_error(int(errc::operation_not_permitted));
      |                                          ^~~~~~~~~~~~~~~~~~~~~~~
      |                                          operation_not_supported
make[5]: *** [Makefile:648: future.lo] Error 1
make[5]: *** [Makefile:648: futex.lo] Error 1
make[5]: *** [Makefile:648: mutex.lo] Error 1
make[5]: Leaving directory '/home/unlvs/mingw-gcc-mcf-gthread/src/build-x86_64-w64-mingw32/x86_64-w64-mingw32/libstdc++-v3/src/c++11'
make[4]: *** [Makefile:764: all-recursive] Error 1
make[4]: Leaving directory '/home/unlvs/mingw-gcc-mcf-gthread/src/build-x86_64-w64-mingw32/x86_64-w64-mingw32/libstdc++-v3/src'
make[3]: *** [Makefile:568: all-recursive] Error 1
make[3]: Leaving directory '/home/unlvs/mingw-gcc-mcf-gthread/src/build-x86_64-w64-mingw32/x86_64-w64-mingw32/libstdc++-v3'
make[2]: *** [Makefile:493: all] Error 2
make[2]: Leaving directory '/home/unlvs/mingw-gcc-mcf-gthread/src/build-x86_64-w64-mingw32/x86_64-w64-mingw32/libstdc++-v3'
make[1]: *** [Makefile:12181: all-target-libstdc++-v3] Error 2
make[1]: Leaving directory '/home/unlvs/mingw-gcc-mcf-gthread/src/build-x86_64-w64-mingw32'
make: *** [Makefile:973: all] Error 2
==> ERROR: A failure occurred in build().
Aborting...


Sent from Mail<https://go.microsoft.com/fwlink/?LinkId=550986> for Windows 10




More information about the Libstdc++ mailing list