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.