-
Notifications
You must be signed in to change notification settings - Fork 6.4k
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
Fix zstd typo in cmake #12309
Fix zstd typo in cmake #12309
Conversation
Hello @raffertyyu, Thank you for your PR. I think you are right. There is a bug. But if I can suggest, I will prefer to make fix here : https://github.com/facebook/rocksdb/blob/main/cmake/modules/Findzstd.cmake#L28
Then all the variables for ZSTD will be uppercase. Please correct me if I'm wrong, but uppercase variables are a common standard in CMake. |
Is this fix not going to be merged? |
@Mis1eader-dev We are waiting for @raffertyyu to answer @rhubner's questions... |
Hi @rhubner sorry for not replying in time. I agree that cmake vars should be UPPERCASE. All zstd vars are modified in this commit. Thanks for suggestion. |
@ajkr has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator. |
there seems to be a regression, likely from facebook/rocksdb#12361 / facebook/rocksdb#12309 ``` [1/0/2 built] building rocksdb-9.0.0 (configurePhase): -- Detecting CXX compile features - donedirenv: ([/Users/strawberry/.nix-profile/bin/direnv export zsh]) is taking a while to execute. Use CTRL-C to give up. error: builder for '/nix/store/9slwgpnardhn2vqzqhn361ic668n38wq-rocksdb-9.0.0.drv' failed with exit code 1; last 10 log lines: > -- Found lz4: /nix/store/cafwv4439qbm2ij04mpc7xz5m3f7mfix-lz4-1.9.4/lib/liblz4.dylib > CMake Error at /nix/store/bin32lqag7lx38994xpf9jvhk1xbd64c-cmake-3.28.2/share/cmake-3.28/Modules/FindPackageHandleStandardArgs.cmake:230 (message): > Could NOT find zstd (missing: ZSTD_INCLUDE_DIRS) > Call Stack (most recent call first): > /nix/store/bin32lqag7lx38994xpf9jvhk1xbd64c-cmake-3.28.2/share/cmake-3.28/Modules/FindPackageHandleStandardArgs.cmake:600 (_FPHSA_FAILURE_MESSAGE) > cmake/modules/Findzstd.cmake:17 (find_package_handle_standard_args) > CMakeLists.txt:167 (find_package) > > > -- Configuring incomplete, errors occurred! For full logs, run 'nix log /nix/store/9slwgpnardhn2vqzqhn361ic668n38wq-rocksdb-9.0.0.drv'. error: 1 dependencies of derivation '/nix/store/ir8jf2wic98iymjlk7d2i1kjjsgv15v2-nix-shell-env.drv' failed to build ``` happens in both rust-rocksdb and our fork of rust-rocksdb Signed-off-by: strawberry <[email protected]>
there seems to be a regression, likely from facebook/rocksdb#12361 / facebook/rocksdb#12309 ``` [1/0/2 built] building rocksdb-9.0.0 (configurePhase): -- Detecting CXX compile features - donedirenv: ([/Users/strawberry/.nix-profile/bin/direnv export zsh]) is taking a while to execute. Use CTRL-C to give up. error: builder for '/nix/store/9slwgpnardhn2vqzqhn361ic668n38wq-rocksdb-9.0.0.drv' failed with exit code 1; last 10 log lines: > -- Found lz4: /nix/store/cafwv4439qbm2ij04mpc7xz5m3f7mfix-lz4-1.9.4/lib/liblz4.dylib > CMake Error at /nix/store/bin32lqag7lx38994xpf9jvhk1xbd64c-cmake-3.28.2/share/cmake-3.28/Modules/FindPackageHandleStandardArgs.cmake:230 (message): > Could NOT find zstd (missing: ZSTD_INCLUDE_DIRS) > Call Stack (most recent call first): > /nix/store/bin32lqag7lx38994xpf9jvhk1xbd64c-cmake-3.28.2/share/cmake-3.28/Modules/FindPackageHandleStandardArgs.cmake:600 (_FPHSA_FAILURE_MESSAGE) > cmake/modules/Findzstd.cmake:17 (find_package_handle_standard_args) > CMakeLists.txt:167 (find_package) > > > -- Configuring incomplete, errors occurred! For full logs, run 'nix log /nix/store/9slwgpnardhn2vqzqhn361ic668n38wq-rocksdb-9.0.0.drv'. error: 1 dependencies of derivation '/nix/store/ir8jf2wic98iymjlk7d2i1kjjsgv15v2-nix-shell-env.drv' failed to build ``` happens in both rust-rocksdb and our fork of rust-rocksdb Signed-off-by: strawberry <[email protected]>
there seems to be a regression, likely from facebook/rocksdb#12361 / facebook/rocksdb#12309 ``` [1/0/2 built] building rocksdb-9.0.0 (configurePhase): -- Detecting CXX compile features - donedirenv: ([/Users/strawberry/.nix-profile/bin/direnv export zsh]) is taking a while to execute. Use CTRL-C to give up. error: builder for '/nix/store/9slwgpnardhn2vqzqhn361ic668n38wq-rocksdb-9.0.0.drv' failed with exit code 1; last 10 log lines: > -- Found lz4: /nix/store/cafwv4439qbm2ij04mpc7xz5m3f7mfix-lz4-1.9.4/lib/liblz4.dylib > CMake Error at /nix/store/bin32lqag7lx38994xpf9jvhk1xbd64c-cmake-3.28.2/share/cmake-3.28/Modules/FindPackageHandleStandardArgs.cmake:230 (message): > Could NOT find zstd (missing: ZSTD_INCLUDE_DIRS) > Call Stack (most recent call first): > /nix/store/bin32lqag7lx38994xpf9jvhk1xbd64c-cmake-3.28.2/share/cmake-3.28/Modules/FindPackageHandleStandardArgs.cmake:600 (_FPHSA_FAILURE_MESSAGE) > cmake/modules/Findzstd.cmake:17 (find_package_handle_standard_args) > CMakeLists.txt:167 (find_package) > > > -- Configuring incomplete, errors occurred! For full logs, run 'nix log /nix/store/9slwgpnardhn2vqzqhn361ic668n38wq-rocksdb-9.0.0.drv'. error: 1 dependencies of derivation '/nix/store/ir8jf2wic98iymjlk7d2i1kjjsgv15v2-nix-shell-env.drv' failed to build ``` happens in both rust-rocksdb and our fork of rust-rocksdb Signed-off-by: strawberry <[email protected]>
#12247 imported another typo in cmakelists.txt and findzstd.cmake.
cmake report ZSTD_INCLUDE_DIRS not found.
Actually it should be
rocksdb/cmake/modules/Findzstd.cmake
Line 8 in aacf60d