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

Failed to build using Clang-18 #878

Open
breezewish opened this issue Apr 19, 2024 · 0 comments
Open

Failed to build using Clang-18 #878

breezewish opened this issue Apr 19, 2024 · 0 comments

Comments

@breezewish
Copy link

  /home/ubuntu/rust-rocksdb/librocksdb_sys/rocksdb/encryption/encryption.cc:97:20: error: variable length arrays in C++ are a Clang extension [-Werror,-Wvla-cxx-extension]
     97 |   unsigned char iv[block_size];
        |                    ^~~~~~~~~~
  /home/ubuntu/rust-rocksdb/librocksdb_sys/rocksdb/encryption/encryption.cc:97:20: note: initializer of 'block_size' is not a constant expression
  /home/ubuntu/rust-rocksdb/librocksdb_sys/rocksdb/encryption/encryption.cc:81:16: note: declared here
     81 |   const size_t block_size = BlockSize();
        |                ^
  /home/ubuntu/rust-rocksdb/librocksdb_sys/rocksdb/encryption/encryption.cc:119:31: error: variable length arrays in C++ are a Clang extension [-Werror,-Wvla-cxx-extension]
    119 |   unsigned char partial_block[block_size];
        |                               ^~~~~~~~~~
  /home/ubuntu/rust-rocksdb/librocksdb_sys/rocksdb/encryption/encryption.cc:119:31: note: initializer of 'block_size' is not a constant expression
  /home/ubuntu/rust-rocksdb/librocksdb_sys/rocksdb/encryption/encryption.cc:81:16: note: declared here
     81 |   const size_t block_size = BlockSize();
        |                ^
  2 errors generated.
  gmake[3]: *** [CMakeFiles/rocksdb.dir/build.make:1255: CMakeFiles/rocksdb.dir/encryption/encryption.cc.o] Error 1
  gmake[3]: *** Waiting for unfinished jobs....
  gmake[2]: *** [CMakeFiles/Makefile2:142: CMakeFiles/rocksdb.dir/all] Error 2
  gmake[1]: *** [CMakeFiles/Makefile2:149: CMakeFiles/rocksdb.dir/rule] Error 2
  gmake: *** [Makefile:172: rocksdb] Error 2
  thread 'main' panicked at /home/ubuntu/.cargo/git/checkouts/cmake-rs-1b5303aca42ae56b/c4a60dd/src/lib.rs:1099:5:

  command did not execute successfully, got: exit status: 2
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