Skip to content

Cannot build pcm on server #868

Closed
Closed
@karynhuang55

Description

@karynhuang55

Hello developers, I tried to compile pcm on my server, but it failed. Here is the error output:
[root@ocp-node1 build]# cmake --build .
[ 1%] Building CXX object src/CMakeFiles/PCM_STATIC.dir/cpucounters.cpp.o
In file included from /usr/include/c++/12/mutex:43,
from /mnt/pcm/src/resctrl.h:17,
from /mnt/pcm/src/cpucounters.h:70,
from /mnt/pcm/src/cpucounters.cpp:23:
/usr/include/c++/12/bits/std_mutex.h: In member function ‘void std::__condvar::wait_until(std::mutex&, clockid_t, timespec&)’:
/usr/include/c++/12/bits/std_mutex.h:169:7: error: ‘pthread_cond_clockwait’ was not declared in this scope; did you mean ‘pthread_cond_wait’?
169 | pthread_cond_clockwait(&_M_cond, __m.native_handle(), __clock,
| ^~~~~~~~~~~~~~~~~~~~~~
| pthread_cond_wait
/usr/include/c++/12/mutex: In member function ‘bool std::timed_mutex::_M_clocklock(clockid_t, const __gthread_time_t&)’:
/usr/include/c++/12/mutex:272:17: error: ‘pthread_mutex_clocklock’ was not declared in this scope; did you mean ‘pthread_mutex_unlock’?
272 | { return !pthread_mutex_clocklock(&_M_mutex, clockid, &__ts); }
| ^~~~~~~~~~~~~~~~~~~~~~~
| pthread_mutex_unlock
/usr/include/c++/12/mutex: In member function ‘bool std::recursive_timed_mutex::_M_clocklock(clockid_t, const __gthread_time_t&)’:
/usr/include/c++/12/mutex:338:17: error: ‘pthread_mutex_clocklock’ was not declared in this scope; did you mean ‘pthread_mutex_unlock’?
338 | { return !pthread_mutex_clocklock(&_M_mutex, clockid, &__ts); }
| ^~~~~~~~~~~~~~~~~~~~~~~
| pthread_mutex_unlock
gmake[2]: *** [src/CMakeFiles/PCM_STATIC.dir/build.make:90: src/CMakeFiles/PCM_STATIC.dir/cpucounters.cpp.o] Error 1
gmake[1]: *** [CMakeFiles/Makefile2:182: src/CMakeFiles/PCM_STATIC.dir/all] Error 2
gmake: *** [Makefile:156: all] Error 2

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions