-
Notifications
You must be signed in to change notification settings - Fork 1
Open
Description
Can you provide working instructions for building on Linux?
- Currently 1.54 is specified, which fails
- 1.85.1 also doesn't work
1.54
rustup default stable
rustup update nightly
rustup update stable
rustup target add wasm32-unknown-unknown --toolchain nightly
cargo build --release ....
Compiling toml v0.5.8
Compiling bincode v1.3.3
error: failed to run custom build command for `librocksdb-sys v6.20.3`
Caused by:
process didn't exit successfully: `/home/user/code/supra-client/target/release/build/librocksdb-sys-128b329c2a2ee146/build-script-build` (exit status: 101)
--- stderr
thread 'main' panicked at '"enum_(unnamed_at_rocksdb/include/rocksdb/c_h_854_1)" is not a valid Ident', /home/user/.cargo/registry/src/github.com-1ecc6299db9ec823/proc-macro2-1.0.28/src/fallback.rs:702:9
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
warning: build failed, waiting for other jobs to finish...
error: build failed
Versions:
$ rustc -V
rustc 1.54.0 (a178d0322 2021-07-26)
$ cargo version
cargo 1.54.0 (5ae8d74b3 2021-06-22)Full trace:
Caused by:
process didn't exit successfully: `/home/user/code/supra-client/target/release/build/librocksdb-sys-128b329c2a2ee146/build-script-build` (exit status: 101)
--- stderr
thread 'main' panicked at '"enum_(unnamed_at_rocksdb/include/rocksdb/c_h_854_1)" is not a valid Ident', /home/user/.cargo/registry/src/github.com-1ecc6299db9ec823/proc-macro2-1.0.28/src/fallback.rs:702:9
stack backtrace:
0: rust_begin_unwind
at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633/library/std/src/panicking.rs:515:5
1: std::panicking::begin_panic_fmt
at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633/library/std/src/panicking.rs:457:5
2: proc_macro2::fallback::validate_ident
3: proc_macro2::fallback::Ident::_new
4: proc_macro2::fallback::Ident::new
5: proc_macro2::imp::Ident::new
6: proc_macro2::Ident::new
7: bindgen::ir::context::BindgenContext::rust_ident_raw
8: bindgen::ir::context::BindgenContext::rust_ident
9: <bindgen::ir::enum_ty::Enum as bindgen::codegen::CodeGenerator>::codegen
10: <bindgen::ir::ty::Type as bindgen::codegen::CodeGenerator>::codegen
11: <bindgen::ir::item::Item as bindgen::codegen::CodeGenerator>::codegen
12: <bindgen::ir::module::Module as bindgen::codegen::CodeGenerator>::codegen::{{closure}}
13: <bindgen::ir::module::Module as bindgen::codegen::CodeGenerator>::codegen
14: <bindgen::ir::item::Item as bindgen::codegen::CodeGenerator>::codegen
15: bindgen::codegen::codegen::{{closure}}
16: bindgen::ir::context::BindgenContext::gen
17: bindgen::codegen::codegen
18: bindgen::Bindings::generate
19: bindgen::Builder::generate
20: build_script_build::bindgen_rocksdb
21: build_script_build::main
22: core::ops::function::FnOnce::call_once
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.
warning: build failed, waiting for other jobs to finish...
error: build failed
1.85.1
Ends with another error related to librocksdb:
"enum_(unnamed_at_rocksdb/include/rocksdb/c_h_854_1)" is not a valid Ident
More here.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels