Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot build pcm on server #868

Open
karynhuang55 opened this issue Nov 1, 2024 · 2 comments
Open

Cannot build pcm on server #868

karynhuang55 opened this issue Nov 1, 2024 · 2 comments

Comments

@karynhuang55
Copy link

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

@rdementi
Copy link
Contributor

rdementi commented Nov 1, 2024

Hi,

could you please provide more details about your operating system and version?
Please also build from scratch in a new directory and provide the output from the first cmake command "cmake .."

@rdementi
Copy link
Contributor

rdementi commented Nov 1, 2024

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants