【XMR】Could NOT find HWLOC (missing: HWLOC_ LIBRARY HWLOC_ INCLUDE_ DIR
Analysis and solution of error reporting details
Error reporting details
After installing centos8.4 minimal mark>, compile xmrig mining program without pumping, and execute:
cmake .. -DCMAKE_BUILD_TYPE=Release -DUV_LIBRARY=/usr/lib64/libuv.a
Error after compilation:
-- The C compiler identification is GNU 8.4.1
-- The CXX compiler identification is GNU 8.4.1
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/bin/cc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Looking for syslog.h
-- Looking for syslog.h - found
CMake Error at /usr/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:165 (message):
Could NOT find HWLOC (missing: HWLOC_LIBRARY HWLOC_INCLUDE_DIR)
Call Stack (most recent call first):
/usr/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:458 (_FPHSA_FAILURE_MESSAGE)
cmake/FindHWLOC.cmake:25 (find_package_handle_standard_args)
src/backend/cpu/cpu.cmake:30 (find_package)
src/backend/backend.cmake:1 (include)
CMakeLists.txt:37 (include)
-- Configuring incomplete, errors occurred!
See also "/root/xmrig/build/CMakeFiles/CMakeOutput.log".
Problem analysis
The error message is very clear. The hwloc mark> module cannot be found.
terms of settlement
The solution is simple: install the hwloc mark> module. Unfortunately, centos8.4 minimal mark> can’t be installed directly through Yum at present. You can only download the source code and compile it yourself.
First, we download the hwloc mark> module code:
git clone https://github.com/open-mpi/hwloc.git
Then enter the hwloc mark> source code directory and execute the compilation and installation statement:
./autogen.sh
./configure
make
make install
Then execute the cmake statement
cmake .. -DCMAKE_BUILD_TYPE=Release -DUV_LIBRARY=/usr/lib64/libuv.a
Able to execute successfully:
-- The C compiler identification is GNU 8.4.1
-- The CXX compiler identification is GNU 8.4.1
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/bin/cc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Looking for syslog.h
-- Looking for syslog.h - found
-- Found HWLOC: /usr/local/lib/libhwloc.so
-- Found UV: /usr/lib64/libuv.a
-- Looking for __builtin___clear_cache
-- Looking for __builtin___clear_cache - found
-- WITH_MSR=ON
-- argon2: detecting feature 'sse2'...
-- Performing Test FEATURE_sse2_NOFLAG
-- Performing Test FEATURE_sse2_NOFLAG - Success
-- argon2: feature 'sse2' detected!
-- argon2: detecting feature 'ssse3'...
-- Performing Test FEATURE_ssse3_NOFLAG
-- Performing Test FEATURE_ssse3_NOFLAG - Failed
-- Performing Test FEATURE_ssse3_FLAG
-- Performing Test FEATURE_ssse3_FLAG - Success
-- argon2: feature 'ssse3' detected!
-- argon2: detecting feature 'xop'...
-- Performing Test FEATURE_xop_NOFLAG
-- Performing Test FEATURE_xop_NOFLAG - Failed
-- Performing Test FEATURE_xop_FLAG
-- Performing Test FEATURE_xop_FLAG - Success
-- argon2: feature 'xop' detected!
-- argon2: detecting feature 'avx2'...
-- Performing Test FEATURE_avx2_NOFLAG
-- Performing Test FEATURE_avx2_NOFLAG - Failed
-- Performing Test FEATURE_avx2_FLAG
-- Performing Test FEATURE_avx2_FLAG - Success
-- argon2: feature 'avx2' detected!
-- argon2: detecting feature 'avx512f'...
-- Performing Test FEATURE_avx512f_NOFLAG
-- Performing Test FEATURE_avx512f_NOFLAG - Failed
-- Performing Test FEATURE_avx512f_FLAG
-- Performing Test FEATURE_avx512f_FLAG - Success
-- argon2: feature 'avx512f' detected!
-- Found OpenSSL: /usr/lib64/libcrypto.so (found version "1.1.1g")
-- The ASM compiler identification is GNU
-- Found assembler: /usr/bin/cc
-- Configuring done
-- Generating done
-- Build files have been written to: /root/xmrig-base/build
Postscript
If you have any questions, please leave a message below.
Read More:
- Cmake compile opencv report error qtcore_ DIR QtOpenglDIR QtGui_ Dir ffmpeg loading failed
- dfs.namenode.name . dir and dfs.datanode.data .dir dfs.name.dir And dfs.data.dir What do you mean
- STM32 added firmware library, but could not find h file
- R mac X11 library is missing: install XQuartz from xquartz.macosforge.org
- MacOS Catalina (system): xcrun: error: invalid active developer path(), missing xcrun at / Library
- Could’t find path to unrear Library
- LookupError: Couldn’t find path to unrar library.
- Solve the problem of prompt couldn’t find path to unrear library after installing unrear in Python
- Vs2015 configuring OpenGL development environment: configuration of glfw library and glad Library
- Lookuperror: couldn’t find path to unrear library! two thousand and twenty
- OpenGL, such as glad library and glfw library, is incompatible
- Could not find appears when JDK is configured java.dll Could not find Java se runtime environment problems
- Arduino reports an error when writing a custom library file to solve the problem of not name of type, not declared in this scope
- Error: could not find java.dll Error: could not find Java se runtime environment solution
- Configuring glfw library and glad Library in opengl-vs2015
- Failed cleaning build dir for SciPy
- Eclipse can’t open an error: Error:could not find java SE Runtime Environment/Error: could not find java.dll
- AH01909: localhost:443:0 server certificate does NOT include an ID which matches the server name
- configure: error: readline library not found solution
- How to generate lib library with keil MDK and use lib Library