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

Unable to compile for RHEL8 with zstd in non-standard location #33

Open
eandersonIGS opened this issue Jan 13, 2025 · 0 comments
Open

Comments

@eandersonIGS
Copy link

I am trying to build the HPF5 plugin for RHEL8. Due to our HPC environment packages are installed into a non-standard location. How do I specify the location of ZSTD when building this from source?

I have tried the following:
cmake -D ZSTD_LIBRARY=/usr/local/packages/zstd-1.5.6/lib64/ -D ZSTD_INCLUDE_DIR=/usr/local/packages/zstd-1.5.6/include/ -D CMAKE_BUILD_TYPE=Release -D ENABLE_CONAN=OFF -D ENABLE_PERF_TESTING=OFF -D ENABLE_PYTHON=OFF ..

This give me the following error which, oddly, finds the version of ZSTD but still says it can't find the library - what am I doing wrong here?

-- Building version
CMake Warning at CMakeLists.txt:14 (project):
  VERSION keyword not followed by a value or was followed by a value that
  expanded to nothing.


-- The CXX compiler identification is GNU 8.5.0
-- The C compiler identification is GNU 8.5.0
-- 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
-- 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
-- Found HDF5: /usr/local/packages/hdf5-1.10.4/lib/libhdf5.so;/usr/local/packages/zlib/lib/libz.so;/usr/lib64/libdl.so;/usr/lib64/libm.so (found suitable version "1.10.4", minimum required is "1.8.16")
CMake Error at /usr/local/packages/cmake-3.18.1/share/cmake-3.18/Modules/FindPackageHandleStandardArgs.cmake:165 (message):
  Could NOT find zstd (missing: ZSTD_LIBRARY) (found suitable version
  "1.5.6", minimum required is "1.3.1")
Call Stack (most recent call first):
  /usr/local/packages/cmake-3.18.1/share/cmake-3.18/Modules/FindPackageHandleStandardArgs.cmake:458 (_FPHSA_FAILURE_MESSAGE)
  cmake/Findzstd.cmake:40 (find_package_handle_standard_args)
  CMakeLists.txt:146 (find_package)

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

1 participant