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

error: failed to run custom build command for librocksdb-sys v0.8.0+7.4.4 (arch linux) #864

Open
sam0x17 opened this issue Mar 7, 2024 · 6 comments

Comments

@sam0x17
Copy link

sam0x17 commented Mar 7, 2024

Running arch linux

clang version 16.0.6
Target: x86_64-pc-linux-gnu
Thread model: posix
InstalledDir: /usr/bin

Getting the following error:

error: failed to run custom build command for `librocksdb-sys v0.8.0+7.4.4`

Caused by:
  process didn't exit successfully: `/home/sam/workspace/opentensor/subtensor/target/debug/build/librocksdb-sys-0a2dd753e78a7bdf/build-script-build` (exit status: 101)
  --- stderr
  thread 'main' panicked at '"enum_(unnamed_at_rocksdb/include/rocksdb/c_h_981_1)" is not a valid Ident', /home/sam/.cargo/registry/src/github.com-1ecc6299db9ec823/proc-macro2-1.0.69/src/fallback.rs:817:9
  note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

This has been seen in the wild before in this issue by several people: #382 (comment)

Just curious what the solution is. We're unfortunately stuck using an old fork of a downstream package so I assume this issue has something to do with clang or one of the rocksdb dependencies being newer than what this version expects.

@sam0x17
Copy link
Author

sam0x17 commented Mar 8, 2024

same error using clang 15

@dimdumon
Copy link

Same using clang 17 on Mac OS X , apple silicon.

@sam0x17
Copy link
Author

sam0x17 commented Mar 13, 2024

also tried clang 14 to no avail on arch, and gcc/g++ 12

@pplanel
Copy link

pplanel commented Apr 5, 2024

Same here, clang 15 on apple silicon

@sam0x17
Copy link
Author

sam0x17 commented Apr 5, 2024

updating to a newer rocksdb does fix it, which is what we had to do to get things working again in opentensor/subtensor#252 for everyone but the most out-of-date ubuntu

@robinlzw
Copy link

robinlzw commented Apr 8, 2024

Same here, clang 15 on apple silicon同样的情况,在 Apple Silicon 上 clang 15

I meet this error:
In file included from rocksdb/utilities/transactions/write_prepared_txn_db.h:16:
cargo:warning=In file included from rocksdb/db/db_iter.h:14:
cargo:warning=In file included from rocksdb/db/db_impl/db_impl.h:25:
cargo:warning=In file included from rocksdb/db/compaction/compaction_job.h:23:
cargo:warning=rocksdb/db/compaction/compaction_outputs.h:212:44: error: 'value' is unavailable: introduced in macOS 10.13
cargo:warning= start.value()) > 0)) {
cargo:warning= ^
cargo:warning=/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/optional:1057:33: note: 'value' has been explicitly marked unavailable here
cargo:warning= constexpr value_type const& value() const&
cargo:warning= ^
cargo:warning=In file included from rocksdb/utilities/ttl/db_ttl_impl.cc:6:
cargo:warning=In file included from rocksdb/utilities/ttl/db_ttl_impl.h:12:
cargo:warning=In file included from rocksdb/db/db_impl/db_impl.h:25:
cargo:warning=In file included from rocksdb/db/compaction/compaction_job.h:23:
cargo:warning=rocksdb/db/compaction/compaction_outputs.h:209:64: error: 'value' is unavailable: introduced in macOS 10.13
cargo:warning= ExtractUserKey(output_split_key->Encode()), end.value()) < 0) &&
cargo:warning= ^
cargo:warning=/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/optional:1057:33: note: 'value' has been explicitly marked unavailable here
cargo:warning= constexpr value_type const& value() const&
cargo:warning= ^
cargo:warning=In file included from rocksdb/utilities/ttl/db_ttl_impl.cc:6:
cargo:warning=In file included from rocksdb/utilities/ttl/db_ttl_impl.h:12:
cargo:warning=In file included from rocksdb/db/db_impl/db_impl.h:25:
cargo:warning=In file included from rocksdb/db/compaction/compaction_job.h:23:
cargo:warning=rocksdb/db/compaction/compaction_outputs.h:212:44: error: 'value' is unavailable: introduced in macOS 10.13
cargo:warning= start.value()) > 0)) {
cargo:warning= ^
cargo:warning=/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/optional:1057:33: note: 'value' has been explicitly marked unavailable here
cargo:warning= constexpr value_type const& value() const&
cargo:warning= ^
cargo:warning=2 errors generated.

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

4 participants