On FreeBSD 13 version 2.10 fails to build tests:
c++ -DHAVE_CONFIG_H -I. -I.. -I.. -I.. -I../buddy/src \-I../lib
-I../lib -fno-omit-frame-pointer -D_THREAD_SAFE -DNDEBUG -O2 -pipe
-fno-omit-frame-pointer -fstack-protector-strong -fno-strict-aliasing
-fno-omit-frame-pointer -fvisibility=hidden
-fvisibility-inlines-hidden -DSPOT_BUILD -std=c++17 -g -O3 -ffast-math
-fstrict-aliasing -fomit-frame-pointer -pthread -O2 -pipe
-fno-omit-frame-pointer -fstack-protector-strong -fno-strict-aliasing
-fno-omit-frame-pointer -fvisibility=hidden
-fvisibility-inlines-hidden -DSPOT_BUILD -std=c++17 -g -O3 -ffast-math
-fstrict-aliasing -fomit-frame-pointer -MT
ltsmin/modelcheck-modelcheck.o -MD -MP -MF
ltsmin/.deps/modelcheck-modelcheck.Tpo -c -o
ltsmin/modelcheck-modelcheck.o `test -f 'ltsmin/modelcheck.cc' || echo
'./'`ltsmin/modelcheck.cc
In file included from ltsmin/modelcheck.cc:27:
../spot/mc/mc_instanciator.hh:122:43: error: use of undeclared
identifier 'sched_getcpu'
<< ": on CPU " << sched_getcpu() <<
'\n';
^
../spot/mc/mc_instanciator.hh:134:9: error: unknown type name
'cpu_set_t'; did you mean 'cpusetid_t'?
cpu_set_t cpuset;
^~~~~~~~~
cpusetid_t
/usr/include/sys/types.h:86:22: note: 'cpusetid_t' declared here
typedef __cpusetid_t cpusetid_t;
^
In file included from ltsmin/modelcheck.cc:27:
../spot/mc/mc_instanciator.hh:135:9: error: use of undeclared identifier
'CPU_ZERO'
CPU_ZERO(&cpuset);
^
../spot/mc/mc_instanciator.hh:136:9: error: use of undeclared identifier
'CPU_SET'
CPU_SET(i, &cpuset);
^
../spot/mc/mc_instanciator.hh:137:18: error: use of undeclared
identifier 'pthread_setaffinity_np'
int rc = pthread_setaffinity_np(threads[i].native_handle(),
^
../spot/mc/mc_instanciator.hh:138:48: error: use of undeclared
identifier 'cpu_set_t'
sizeof(cpu_set_t), &cpuset);
^
6 errors generated.
Thanks,
Yuri