I wonder if that is related
- https://gcc.gnu.org/legacy-ml/gcc-patches/2019-10/msg01118.html?
On Tuesday, May 5, 2020 at 11:09:58 AM UTC-4, Waldek Kozaczuk wrote:
>
> Trying to build OSv on Fedora 32 with GCC 10 yields (unsurprisingly)
> errors:
>
> " AS arch/x64/boot.S
> CXX bsd/init.cc
> CXX bsd/net.cc
> CXX bsd/x64/machine/in_cksum.cc
> CC bsd/sys/crypto/rijndael/rijndael-alg-fst.c
> CC bsd/sys/crypto/rijndael/rijndael-api.c
> In file included from include/osv/mutex.h:84,
> from arch/x64/exceptions.hh:15,
> from arch/x64/arch-cpu.hh:12,
> from include/osv/sched.hh:13,
> from include/osv/percpu.hh:11,
> from ./bsd/porting/uma_stub.h:161,
> from ./bsd/sys/sys/mbuf.h:40,
> from bsd/x64/machine/in_cksum.cc:45:
> /usr/include/c++/10/mutex: In member function ‘bool
> std::timed_mutex::_M_clocklock(clockid_t, const __gthread_time_t&)’:
> /usr/include/c++/10/mutex:270:17: error: ‘pthread_mutex_clocklock’ was not
> declared in this scope; did you mean ‘pthread_mutex_timedlock’?
> 270 | { return !pthread_mutex_clocklock(&_M_mutex, clockid,
> &__ts); }
> | ^~~~~~~~~~~~~~~~~~~~~~~
> | pthread_mutex_timedlock
> /usr/include/c++/10/mutex: In member function ‘bool
> std::recursive_timed_mutex::_M_clocklock(clockid_t, const
> __gthread_time_t&)’:
> /usr/include/c++/10/mutex:336:17: error: ‘pthread_mutex_clocklock’ was not
> declared in this scope; did you mean ‘pthread_mutex_timedlock’?
> 336 | { return !pthread_mutex_clocklock(&_M_mutex, clockid,
> &__ts); }
> | ^~~~~~~~~~~~~~~~~~~~~~~
> | pthread_mutex_timedlock
> CC bsd/sys/crypto/rijndael/rijndael-api-fst.c
> In file included from include/osv/mutex.h:84,
> from include/osv/debug.hh:16,
> from bsd/net.cc:8:
> /usr/include/c++/10/mutex: In member function ‘bool
> std::timed_mutex::_M_clocklock(clockid_t, const __gthread_time_t&)’:
> /usr/include/c++/10/mutex:270:17: error: ‘pthread_mutex_clocklock’ was not
> declared in this scope; did you mean ‘pthread_mutex_timedlock’?
> 270 | { return !pthread_mutex_clocklock(&_M_mutex, clockid,
> &__ts); }
> | ^~~~~~~~~~~~~~~~~~~~~~~
> | pthread_mutex_timedlock
> /usr/include/c++/10/mutex: In member function ‘bool
> std::recursive_timed_mutex::_M_clocklock(clockid_t, const
> __gthread_time_t&)’:
> /usr/include/c++/10/mutex:336:17: error: ‘pthread_mutex_clocklock’ was not
> declared in this scope; did you mean ‘pthread_mutex_timedlock’?
> 336 | { return !pthread_mutex_clocklock(&_M_mutex, clockid,
> &__ts); }
> | ^~~~~~~~~~~~~~~~~~~~~~~
> | pthread_mutex_timedlock
> In file included from include/osv/mutex.h:84,
> from include/osv/debug.hh:16,
> from bsd/init.cc:8:
> /usr/include/c++/10/mutex: In member function ‘bool
> std::timed_mutex::_M_clocklock(clockid_t, const __gthread_time_t&)’:
> /usr/include/c++/10/mutex:270:17: error: ‘pthread_mutex_clocklock’ was not
> declared in this scope; did you mean ‘pthread_mutex_timedlock’?
> 270 | { return !pthread_mutex_clocklock(&_M_mutex, clockid,
> &__ts); }
> | ^~~~~~~~~~~~~~~~~~~~~~~
> | pthread_mutex_timedlock
> /usr/include/c++/10/mutex: In member function ‘bool
> std::recursive_timed_mutex::_M_clocklock(clockid_t, const
> __gthread_time_t&)’:
> /usr/include/c++/10/mutex:336:17: error: ‘pthread_mutex_clocklock’ was not
> declared in this scope; did you mean ‘pthread_mutex_timedlock’?
> 336 | { return !pthread_mutex_clocklock(&_M_mutex, clockid,
> &__ts); }
> | ^~~~~~~~~~~~~~~~~~~~~~~
> | pthread_mutex_timedlock
> CC bsd/sys/crypto/sha2/sha2.c
> CC bsd/sys/libkern/arc4random.c
> make: *** [Makefile:331: build/release.x64/bsd/x64/machine/in_cksum.o]
> Error 1
> make: *** Waiting for unfinished jobs....
> "
>
> Cannot quite figure out why we are getting those and what the fix might be.
>
--
You received this message because you are subscribed to the Google Groups "OSv
Development" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/osv-dev/d6e50d0b-7810-4956-8dc8-aada9eb7c826%40googlegroups.com.