Software Tuning, Performance Optimization & Platform Monitoring
Discussion around monitoring and software tuning methodologies, Performance Monitoring Unit (PMU) of Intel microprocessors, and platform monitoring

FreeBSD pcm build failed "unable to find library -lPCM_STATIC"

Alexander_A
Beginner
843 Views

Hello 

Could you advice on next steps to resolve pcm build issue on FreeBSD ? 

 

# ls
pcm
# cd pcm
# mkdir build
# cd build
# cmake ..
-- The C compiler identification is Clang 6.0.1
-- The CXX compiler identification is Clang 6.0.1
System is unknown to cmake, create:
Platform/Isilon OneFS to use this system, please send your config file to cmake@www.cmake.org so it can be added to cmake
-- Check for working C compiler: /usr/bin/cc
System is unknown to cmake, create:
Platform/Isilon OneFS to use this system, please send your config file to cmake@www.cmake.org so it can be added to cmake
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
System is unknown to cmake, create:
Platform/Isilon OneFS to use this system, please send your config file to cmake@www.cmake.org so it can be added to cmake
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /usr/bin/CC
System is unknown to cmake, create:
Platform/Isilon OneFS to use this system, please send your config file to cmake@www.cmake.org so it can be added to cmake
-- Check for working CXX compiler: /usr/bin/CC -- works
-- Detecting CXX compiler ABI info
System is unknown to cmake, create:
Platform/Isilon OneFS to use this system, please send your config file to cmake@www.cmake.org so it can be added to cmake
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
System is unknown to cmake, create:
Platform/Isilon OneFS to use this system, please send your config file to cmake@www.cmake.org so it can be added to cmake
System is unknown to cmake, create:
Platform/Isilon OneFS to use this system, please send your config file to cmake@www.cmake.org so it can be added to cmake
System is unknown to cmake, create:
Platform/Isilon OneFS to use this system, please send your config file to cmake@www.cmake.org so it can be added to cmake
-- Detecting CXX compile features - done
-- Looking for pthread.h
System is unknown to cmake, create:
Platform/Isilon OneFS to use this system, please send your config file to cmake@www.cmake.org so it can be added to cmake
-- Looking for pthread.h - found
-- Looking for pthread_create
System is unknown to cmake, create:
Platform/Isilon OneFS to use this system, please send your config file to cmake@www.cmake.org so it can be added to cmake
-- Looking for pthread_create - not found
-- Check if compiler accepts -pthread
System is unknown to cmake, create:
Platform/Isilon OneFS to use this system, please send your config file to cmake@www.cmake.org so it can be added to cmake
-- Check if compiler accepts -pthread - yes
-- Found Threads: TRUE
-- System: Isilon OneFS-9.5.0.0
-- Local SIMDJSON exists: /root/pcm2022_2/pcm/src/simdjson/singleheader/simdjson.h
-- Install directory: /usr/local
-- Configuring done
-- Generating done
-- Build files have been written to: /root/pcm2022_2/pcm/build
# cmake --build .
Scanning dependencies of target pcm-raw
[  3%] Building CXX object src/CMakeFiles/pcm-raw.dir/pcm-raw.cpp.obj
[  6%] Building CXX object src/CMakeFiles/pcm-raw.dir/simdjson/singleheader/simdjson.cpp.obj
[  9%] Linking CXX executable ../bin/pcm-raw
/usr/bin/ld: error: unable to find library -lPCM_STATIC
c++: error: linker command failed with exit code 1 (use -v to see invocation)
gmake[2]: *** [bin/pcm-raw] Error 1
gmake[1]: *** [src/CMakeFiles/pcm-raw.dir/all] Error 2
gmake: *** [all] Error 2

 

0 Kudos
2 Replies
Roman_D_Intel
Employee
826 Views

I am suggesting to file an issue here: https://github.com/intel/pcm/issues

Alexander_A
Beginner
814 Views
Reply