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

build err #188

Open
octavei opened this issue Aug 8, 2023 · 15 comments
Open

build err #188

octavei opened this issue Aug 8, 2023 · 15 comments
Assignees
Labels
A-mempool Area: User operation mempool on hold On hold due to external dependencies. T-bug Type: Something isn't working

Comments

@octavei
Copy link

octavei commented Aug 8, 2023

env:

Mac M1

➜  silius git:(c3f7e44) ✗ rustc --version
rustc 1.70.0 (90c541806 2023-05-31) (built from a source tarball)

stable-aarch64-apple-darwin (default) (override)
nightly-2023-01-28-aarch64-apple-darwin
nightly-aarch64-apple-darwin

command:

cargo build --release


err info:

➜ silius git:(c3f7e44) ✗ cargo build --release
Compiling ethers-middleware v2.0.8
Compiling reth-mdbx-sys v0.12.1-0 (https://github.com/paradigmxyz/reth.git?rev=aa6f2cb0610fb4fa0926b42cfed7f8ff51e0db8a#aa6f2cb0)
Compiling reth-rpc-types v0.1.0 (https://github.com/paradigmxyz/reth.git?rev=aa6f2cb0610fb4fa0926b42cfed7f8ff51e0db8a#aa6f2cb0)
Compiling gloo-net v0.2.6
Compiling silius-contracts v0.1.0 (/Users/xxx/Desktop/silius/crates/contracts)
Compiling protobuf-src v1.1.0+21.5
Compiling axum v0.6.20
Compiling cobs v0.2.3
Compiling proc-macro-hack v0.5.20+deprecated
error: failed to run custom build command for reth-mdbx-sys v0.12.1-0 (https://github.com/paradigmxyz/reth.git?rev=aa6f2cb0610fb4fa0926b42cfed7f8ff51e0db8a#aa6f2cb0)

Caused by:
process didn't exit successfully: /Users/xxx/Desktop/silius/target/release/build/reth-mdbx-sys-448ddc812f9940d8/build-script-build (exit status: 101)
--- stderr
thread 'main' panicked at '"MDBX_version_info_struct_(unnamed_at_/Users/weijunyuan/_cargo/git/checkouts/reth-36d3ea1d1152b20c/aa6f2cb/crates/storage/libmdbx-rs/mdbx-sys/libmdbx/mdbx_h_673_3)" is not a valid Ident', /Users/weijunyuan/.cargo/registry/src/index.crates.io-6f17d22bba15001f/proc-macro2-1.0.66/src/fallback.rs:774:9
note: run with RUST_BACKTRACE=1 environment variable to display a backtrace
warning: build failed, waiting for other jobs to finish...

@octavei
Copy link
Author

octavei commented Aug 8, 2023

error: failed to run custom build command for `reth-mdbx-sys v0.12.1-0 (https://github.com/paradigmxyz/reth.git?rev=aa6f2cb0610fb4fa0926b42cfed7f8ff51e0db8a#aa6f2cb0)`
note: To improve backtraces for build dependencies, set the CARGO_PROFILE_RELEASE_BUILD_OVERRIDE_DEBUG=true environment variable to enable debug information generation.

Caused by:
  process didn't exit successfully: `/Users/xxx/Desktop/silius/target/release/build/reth-mdbx-sys-dfc3ab170648a403/build-script-build` (exit status: 101)
  --- stderr
  thread 'main' panicked at '"MDBX_version_info_struct_(unnamed_at_/Users/_cargo/git/checkouts/reth-36d3ea1d1152b20c/aa6f2cb/crates/storage/libmdbx-rs/mdbx-sys/libmdbx/mdbx_h_673_3)" is not a valid Ident', /Users/xxx/.cargo/registry/src/index.crates.io-6f17d22bba15001f/proc-macro2-1.0.60/src/fallback.rs:791:9
  stack backtrace:
     0: _rust_begin_unwind
     1: core::panicking::panic_fmt
     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::comp::CompInfo 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::comp::CompInfo as bindgen::codegen::CodeGenerator>::codegen
    13: <bindgen::ir::ty::Type as bindgen::codegen::CodeGenerator>::codegen
    14: <bindgen::ir::item::Item as bindgen::codegen::CodeGenerator>::codegen
    15: <bindgen::ir::module::Module as bindgen::codegen::CodeGenerator>::codegen::{{closure}}
    16: <bindgen::ir::module::Module as bindgen::codegen::CodeGenerator>::codegen
    17: <bindgen::ir::item::Item as bindgen::codegen::CodeGenerator>::codegen
    18: bindgen::codegen::codegen::{{closure}}
    19: bindgen::ir::context::BindgenContext::gen
    20: bindgen::codegen::codegen
    21: bindgen::Bindings::generate
    22: bindgen::Builder::generate
    23: build_script_build::main
    24: 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...
^C  Building [=====================>   ] 760/843: ethers-middleware 

@octavei
Copy link
Author

octavei commented Aug 8, 2023

I'm not quite sure what is causing this err. Because I was able to compile and pass it a few days ago.

@Vid201
Copy link
Member

Vid201 commented Aug 8, 2023

@octavei Hmm, this is related to reth package we are using for database. Can you try please creating empty Rust project and adding this to Cargo.toml to see if project builds:

reth-db = { git = "https://github.com/paradigmxyz/reth.git", rev = "aa6f2cb0610fb4fa0926b42cfed7f8ff51e0db8a" } reth-libmdbx = { git = "https://github.com/paradigmxyz/reth.git", rev = "aa6f2cb0610fb4fa0926b42cfed7f8ff51e0db8a" }

And then building the whole thing.

@octavei
Copy link
Author

octavei commented Aug 8, 2023

@octavei Hmm, this is related to reth package we are using for database. Can you try please creating empty Rust project and adding this to Cargo.toml to see if project builds:

reth-db = { git = "https://github.com/paradigmxyz/reth.git", rev = "aa6f2cb0610fb4fa0926b42cfed7f8ff51e0db8a" } reth-libmdbx = { git = "https://github.com/paradigmxyz/reth.git", rev = "aa6f2cb0610fb4fa0926b42cfed7f8ff51e0db8a" }

And then building the whole thing.

code:

[package]
name = "test-rs"
version = "0.1.0"
edition = "2021"

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[dependencies]
reth-db = { git = "https://github.com/paradigmxyz/reth.git", rev = "aa6f2cb0610fb4fa0926b42cfed7f8ff51e0db8a" }
reth-libmdbx = { git = "https://github.com/paradigmxyz/reth.git", rev = "aa6f2cb0610fb4fa0926b42cfed7f8ff51e0db8a" }

command:

cargo build --release

err info:

 test-rs git:(master) ✗ 
➜  test-rs git:(master) ✗ cargo build --release 
   Compiling proc-macro2 v1.0.66
   Compiling unicode-ident v1.0.11
   Compiling libc v0.2.147
   Compiling version_check v0.9.4
   Compiling cfg-if v1.0.0
   Compiling syn v1.0.109
   Compiling serde v1.0.183
   Compiling autocfg v1.1.0
   Compiling typenum v1.16.0
   Compiling zeroize v1.6.0
   Compiling equivalent v1.0.1
   Compiling generic-array v0.14.7
   Compiling hashbrown v0.14.0
   Compiling toml_datetime v0.6.3
   Compiling winnow v0.5.4
   Compiling once_cell v1.18.0
   Compiling subtle v2.5.0
   Compiling const-oid v0.9.4
   Compiling indexmap v2.0.0
   Compiling byteorder v1.4.3
   Compiling crunchy v0.2.2
   Compiling quote v1.0.32
   Compiling syn v2.0.28
   Compiling getrandom v0.2.10
   Compiling rustc-hex v2.1.0
   Compiling ppv-lite86 v0.2.17
   Compiling rand_core v0.6.4
   Compiling rand_chacha v0.3.1
   Compiling toml_edit v0.19.14
   Compiling crypto-common v0.1.6
   Compiling block-buffer v0.10.4
   Compiling arrayvec v0.7.4
   Compiling digest v0.10.7
   Compiling byte-slice-cast v1.2.2
   Compiling static_assertions v1.1.0
   Compiling convert_case v0.4.0
   Compiling rand v0.8.5
   Compiling cpufeatures v0.2.9
   Compiling memchr v2.5.0
   Compiling proc-macro-error-attr v1.0.4
   Compiling cc v1.0.82
   Compiling fixed-hash v0.8.0
   Compiling proc-macro-crate v1.3.1
   Compiling proc-macro-error v1.0.4
   Compiling tiny-keccak v2.0.2
   Compiling ahash v0.8.3
   Compiling pin-project-lite v0.2.11
   Compiling rustversion v1.0.14
   Compiling keccak v0.1.4
   Compiling der v0.7.8
   Compiling lock_api v0.4.10
   Compiling thiserror v1.0.44
   Compiling parking_lot_core v0.9.8
   Compiling radium v0.7.0
   Compiling bytes v1.4.0
   Compiling futures-core v0.3.28
   Compiling sha3 v0.10.8
   Compiling ff v0.13.0
   Compiling smallvec v1.11.0
   Compiling strsim v0.10.0
   Compiling base16ct v0.2.0
   Compiling fnv v1.0.7
   Compiling serde_json v1.0.104
   Compiling scopeguard v1.2.0
   Compiling ident_case v1.0.1
   Compiling tap v1.0.1
   Compiling heck v0.4.1
   Compiling wyz v0.5.1
   Compiling darling_core v0.20.3
   Compiling sec1 v0.7.3
   Compiling group v0.13.0
   Compiling serde_derive v1.0.183
   Compiling thiserror-impl v1.0.44
   Compiling aho-corasick v1.0.2
   Compiling hmac v0.12.1
   Compiling crypto-bigint v0.5.2
   Compiling impl-trait-for-tuples v0.2.2
   Compiling parity-scale-codec-derive v3.6.4
   Compiling rlp-derive v0.1.0
   Compiling derive_more v0.99.17
   Compiling scale-info-derive v2.9.0
   Compiling auto_impl v1.1.0
   Compiling num-traits v0.2.16
   Compiling ryu v1.0.15
   Compiling anyhow v1.0.72
   Compiling ruint-macro v1.1.0
   Compiling regex-syntax v0.7.4
   Compiling rustix v0.38.7
   Compiling tinyvec_macros v0.1.1
   Compiling funty v2.0.0
   Compiling itoa v1.0.9
   Compiling tinyvec v1.6.0
   Compiling darling_macro v0.20.3
   Compiling elliptic-curve v0.13.5
   Compiling rfc6979 v0.4.0
   Compiling parking_lot v0.12.1
   Compiling enumn v0.1.11
   Compiling spki v0.7.2
   Compiling secp256k1-sys v0.8.1
   Compiling regex-automata v0.3.6
   Compiling signature v2.1.0
   Compiling errno v0.3.2
   Compiling num-integer v0.1.45
   Compiling slab v0.4.8
   Compiling tokio v1.29.1
   Compiling unicode-segmentation v1.10.1
   Compiling futures-channel v0.3.28
   Compiling hex-literal v0.4.1
   Compiling futures-sink v0.3.28
   Compiling impl-serde v0.4.0
   Compiling hex v0.4.3
   Compiling uint v0.9.5
   Compiling hashbrown v0.13.2
   Compiling parity-scale-codec v3.6.4
   Compiling rlp v0.5.2
   Compiling bitvec v1.0.1
   Compiling impl-rlp v0.3.0
   Compiling scale-info v2.9.0
   Compiling impl-codec v0.6.0
   Compiling futures-task v0.3.28
   Compiling bitflags v2.3.3
   Compiling primitive-types v0.12.1
   Compiling ethbloom v0.13.0
   Compiling regex v1.9.3
   Compiling ethereum-types v0.14.1
   Compiling ruint v1.10.1
   Compiling convert_case v0.6.0
   Compiling ecdsa v0.16.8
   Compiling darling v0.20.3
   Compiling unicode-normalization v0.1.22
   Compiling revm-primitives v1.1.2
   Compiling open-fastrlp-derive v0.1.1
   Compiling strum_macros v0.25.2
   Compiling tokio-macros v2.1.0
   Compiling num_enum_derive v0.6.1
   Compiling sha2 v0.10.7
   Compiling block-padding v0.3.3
   Compiling socket2 v0.4.9
   Compiling mio v0.8.8
   Compiling signal-hook-registry v1.4.1
   Compiling num_cpus v1.16.0
   Compiling num-bigint v0.4.3
   Compiling futures-util v0.3.28
   Compiling percent-encoding v2.3.0
   Compiling glob v0.3.1
   Compiling fastrand v2.0.0
   Compiling unicode-bidi v0.3.13
   Compiling clang-sys v1.6.1
   Compiling idna v0.4.0
   Compiling tempfile v3.7.1
   Compiling form_urlencoded v1.2.0
   Compiling strum v0.25.0
   Compiling num_enum v0.6.1
   Compiling inout v0.1.3
   Compiling k256 v0.13.1
   Compiling open-fastrlp v0.1.4
   Compiling chrono v0.4.26
   Compiling serde_with_macros v2.3.3
   Compiling codecs-derive v0.1.0 (https://github.com/paradigmxyz/reth.git?rev=aa6f2cb0610fb4fa0926b42cfed7f8ff51e0db8a#aa6f2cb0)
   Compiling ethabi v18.0.0
   Compiling smol_str v0.1.24
   Compiling strum_macros v0.24.3
   Compiling modular-bitfield-impl v0.11.2
   Compiling tracing-attributes v0.1.26
   Compiling futures-macro v0.3.28
   Compiling reth-rlp-derive v0.1.1 (https://github.com/paradigmxyz/reth.git?rev=aa6f2cb0610fb4fa0926b42cfed7f8ff51e0db8a#aa6f2cb0)
   Compiling tracing-core v0.1.31
   Compiling unicode-xid v0.2.4
   Compiling pin-utils v0.1.0
   Compiling hash-db v0.15.2
   Compiling futures-io v0.3.28
   Compiling crc-catalog v2.2.0
   Compiling portable-atomic v1.4.2
   Compiling crc v3.0.1
   Compiling tracing v0.1.37
   Compiling strum v0.24.1
   Compiling triehash v0.8.4
   Compiling ethers-core v2.0.8 (https://github.com/gakonst/ethers-rs#5145992e)
   Compiling reth-rlp v0.1.2 (https://github.com/paradigmxyz/reth.git?rev=aa6f2cb0610fb4fa0926b42cfed7f8ff51e0db8a#aa6f2cb0)
   Compiling modular-bitfield v0.11.2
   Compiling serde_with v2.3.3
   Compiling reth-codecs v0.1.0 (https://github.com/paradigmxyz/reth.git?rev=aa6f2cb0610fb4fa0926b42cfed7f8ff51e0db8a#aa6f2cb0)
   Compiling secp256k1 v0.26.0
   Compiling cipher v0.4.4
   Compiling url v2.4.0
   Compiling sucds v0.5.0
   Compiling pin-project-internal v1.1.3
   Compiling plain_hasher v0.2.3
   Compiling ahash v0.7.6
   Compiling semver v1.0.18
   Compiling hex-literal v0.3.4
   Compiling portable-atomic v0.3.20
   Compiling minimal-lexical v0.2.1
   Compiling nom v7.1.3
   Compiling libloading v0.7.4
   Compiling pin-project v1.1.3
   Compiling enum-ordinalize v3.1.13
   Compiling futures-executor v0.3.28
   Compiling reth-primitives v0.1.0 (https://github.com/paradigmxyz/reth.git?rev=aa6f2cb0610fb4fa0926b42cfed7f8ff51e0db8a#aa6f2cb0)
   Compiling async-trait v0.1.72
   Compiling bindgen v0.61.0
   Compiling metrics v0.20.1
   Compiling snap v1.1.0
   Compiling cexpr v0.6.0
   Compiling educe v0.4.22
   Compiling futures v0.3.28
   Compiling reth-net-common v0.1.0 (https://github.com/paradigmxyz/reth.git?rev=aa6f2cb0610fb4fa0926b42cfed7f8ff51e0db8a#aa6f2cb0)
   Compiling ctr v0.9.2
   Compiling aes v0.8.3
   Compiling tokio-util v0.7.8
   Compiling tokio-stream v0.1.14
   Compiling metrics-macros v0.6.0
   Compiling bitflags v1.3.2
   Compiling lazy_static v1.4.0
   Compiling shlex v1.1.0
   Compiling lazycell v1.3.0
   Compiling rustc-hash v1.1.0
   Compiling peeking_take_while v0.1.2
   Compiling reth-ecies v0.1.0 (https://github.com/paradigmxyz/reth.git?rev=aa6f2cb0610fb4fa0926b42cfed7f8ff51e0db8a#aa6f2cb0)
   Compiling rustc_version v0.4.0
   Compiling heapless v0.7.16
   Compiling beef v0.5.2
   Compiling indexmap v1.9.3
   Compiling jsonrpsee-types v0.16.2
   Compiling reth-eth-wire v0.1.0 (https://github.com/paradigmxyz/reth.git?rev=aa6f2cb0610fb4fa0926b42cfed7f8ff51e0db8a#aa6f2cb0)
   Compiling lru v0.9.0
   Compiling hash32 v0.2.1
   Compiling hashbrown v0.12.3
   Compiling stable_deref_trait v1.2.0
   Compiling reth-network-api v0.1.0 (https://github.com/paradigmxyz/reth.git?rev=aa6f2cb0610fb4fa0926b42cfed7f8ff51e0db8a#aa6f2cb0)
   Compiling reth-rpc-types v0.1.0 (https://github.com/paradigmxyz/reth.git?rev=aa6f2cb0610fb4fa0926b42cfed7f8ff51e0db8a#aa6f2cb0)
   Compiling cobs v0.2.3
   Compiling postcard v1.0.6
   Compiling page_size v0.4.2
   Compiling reth-mdbx-sys v0.12.1-0 (https://github.com/paradigmxyz/reth.git?rev=aa6f2cb0610fb4fa0926b42cfed7f8ff51e0db8a#aa6f2cb0)
   Compiling reth-interfaces v0.1.0 (https://github.com/paradigmxyz/reth.git?rev=aa6f2cb0610fb4fa0926b42cfed7f8ff51e0db8a#aa6f2cb0)
error: failed to run custom build command for `reth-mdbx-sys v0.12.1-0 (https://github.com/paradigmxyz/reth.git?rev=aa6f2cb0610fb4fa0926b42cfed7f8ff51e0db8a#aa6f2cb0)`

Caused by:
  process didn't exit successfully: `/Users/xxx/Desktop/test-rs/target/release/build/reth-mdbx-sys-38d215bf8806b49b/build-script-build` (exit status: 101)
  --- stderr
  thread 'main' panicked at '"MDBX_version_info_struct_(unnamed_at_/Users/xxx/_cargo/git/checkouts/reth-36d3ea1d1152b20c/aa6f2cb/crates/storage/libmdbx-rs/mdbx-sys/libmdbx/mdbx_h_673_3)" is not a valid Ident', /Users/xxx/.cargo/registry/src/index.crates.io-6f17d22bba15001f/proc-macro2-1.0.66/src/fallback.rs:774:9
  note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
warning: build failed, waiting for other jobs to finish...

@Vid201
Copy link
Member

Vid201 commented Aug 8, 2023

@octavei Hmm, this is related to reth package we are using for database. Can you try please creating empty Rust project and adding this to Cargo.toml to see if project builds:
reth-db = { git = "https://github.com/paradigmxyz/reth.git", rev = "aa6f2cb0610fb4fa0926b42cfed7f8ff51e0db8a" } reth-libmdbx = { git = "https://github.com/paradigmxyz/reth.git", rev = "aa6f2cb0610fb4fa0926b42cfed7f8ff51e0db8a" }
And then building the whole thing.

code:

[package]
name = "test-rs"
version = "0.1.0"
edition = "2021"

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[dependencies]
reth-db = { git = "https://github.com/paradigmxyz/reth.git", rev = "aa6f2cb0610fb4fa0926b42cfed7f8ff51e0db8a" }
reth-libmdbx = { git = "https://github.com/paradigmxyz/reth.git", rev = "aa6f2cb0610fb4fa0926b42cfed7f8ff51e0db8a" }

command:

cargo build --release

err info:

 test-rs git:(master) ✗ 
➜  test-rs git:(master) ✗ cargo build --release 
   Compiling proc-macro2 v1.0.66
   Compiling unicode-ident v1.0.11
   Compiling libc v0.2.147
   Compiling version_check v0.9.4
   Compiling cfg-if v1.0.0
   Compiling syn v1.0.109
   Compiling serde v1.0.183
   Compiling autocfg v1.1.0
   Compiling typenum v1.16.0
   Compiling zeroize v1.6.0
   Compiling equivalent v1.0.1
   Compiling generic-array v0.14.7
   Compiling hashbrown v0.14.0
   Compiling toml_datetime v0.6.3
   Compiling winnow v0.5.4
   Compiling once_cell v1.18.0
   Compiling subtle v2.5.0
   Compiling const-oid v0.9.4
   Compiling indexmap v2.0.0
   Compiling byteorder v1.4.3
   Compiling crunchy v0.2.2
   Compiling quote v1.0.32
   Compiling syn v2.0.28
   Compiling getrandom v0.2.10
   Compiling rustc-hex v2.1.0
   Compiling ppv-lite86 v0.2.17
   Compiling rand_core v0.6.4
   Compiling rand_chacha v0.3.1
   Compiling toml_edit v0.19.14
   Compiling crypto-common v0.1.6
   Compiling block-buffer v0.10.4
   Compiling arrayvec v0.7.4
   Compiling digest v0.10.7
   Compiling byte-slice-cast v1.2.2
   Compiling static_assertions v1.1.0
   Compiling convert_case v0.4.0
   Compiling rand v0.8.5
   Compiling cpufeatures v0.2.9
   Compiling memchr v2.5.0
   Compiling proc-macro-error-attr v1.0.4
   Compiling cc v1.0.82
   Compiling fixed-hash v0.8.0
   Compiling proc-macro-crate v1.3.1
   Compiling proc-macro-error v1.0.4
   Compiling tiny-keccak v2.0.2
   Compiling ahash v0.8.3
   Compiling pin-project-lite v0.2.11
   Compiling rustversion v1.0.14
   Compiling keccak v0.1.4
   Compiling der v0.7.8
   Compiling lock_api v0.4.10
   Compiling thiserror v1.0.44
   Compiling parking_lot_core v0.9.8
   Compiling radium v0.7.0
   Compiling bytes v1.4.0
   Compiling futures-core v0.3.28
   Compiling sha3 v0.10.8
   Compiling ff v0.13.0
   Compiling smallvec v1.11.0
   Compiling strsim v0.10.0
   Compiling base16ct v0.2.0
   Compiling fnv v1.0.7
   Compiling serde_json v1.0.104
   Compiling scopeguard v1.2.0
   Compiling ident_case v1.0.1
   Compiling tap v1.0.1
   Compiling heck v0.4.1
   Compiling wyz v0.5.1
   Compiling darling_core v0.20.3
   Compiling sec1 v0.7.3
   Compiling group v0.13.0
   Compiling serde_derive v1.0.183
   Compiling thiserror-impl v1.0.44
   Compiling aho-corasick v1.0.2
   Compiling hmac v0.12.1
   Compiling crypto-bigint v0.5.2
   Compiling impl-trait-for-tuples v0.2.2
   Compiling parity-scale-codec-derive v3.6.4
   Compiling rlp-derive v0.1.0
   Compiling derive_more v0.99.17
   Compiling scale-info-derive v2.9.0
   Compiling auto_impl v1.1.0
   Compiling num-traits v0.2.16
   Compiling ryu v1.0.15
   Compiling anyhow v1.0.72
   Compiling ruint-macro v1.1.0
   Compiling regex-syntax v0.7.4
   Compiling rustix v0.38.7
   Compiling tinyvec_macros v0.1.1
   Compiling funty v2.0.0
   Compiling itoa v1.0.9
   Compiling tinyvec v1.6.0
   Compiling darling_macro v0.20.3
   Compiling elliptic-curve v0.13.5
   Compiling rfc6979 v0.4.0
   Compiling parking_lot v0.12.1
   Compiling enumn v0.1.11
   Compiling spki v0.7.2
   Compiling secp256k1-sys v0.8.1
   Compiling regex-automata v0.3.6
   Compiling signature v2.1.0
   Compiling errno v0.3.2
   Compiling num-integer v0.1.45
   Compiling slab v0.4.8
   Compiling tokio v1.29.1
   Compiling unicode-segmentation v1.10.1
   Compiling futures-channel v0.3.28
   Compiling hex-literal v0.4.1
   Compiling futures-sink v0.3.28
   Compiling impl-serde v0.4.0
   Compiling hex v0.4.3
   Compiling uint v0.9.5
   Compiling hashbrown v0.13.2
   Compiling parity-scale-codec v3.6.4
   Compiling rlp v0.5.2
   Compiling bitvec v1.0.1
   Compiling impl-rlp v0.3.0
   Compiling scale-info v2.9.0
   Compiling impl-codec v0.6.0
   Compiling futures-task v0.3.28
   Compiling bitflags v2.3.3
   Compiling primitive-types v0.12.1
   Compiling ethbloom v0.13.0
   Compiling regex v1.9.3
   Compiling ethereum-types v0.14.1
   Compiling ruint v1.10.1
   Compiling convert_case v0.6.0
   Compiling ecdsa v0.16.8
   Compiling darling v0.20.3
   Compiling unicode-normalization v0.1.22
   Compiling revm-primitives v1.1.2
   Compiling open-fastrlp-derive v0.1.1
   Compiling strum_macros v0.25.2
   Compiling tokio-macros v2.1.0
   Compiling num_enum_derive v0.6.1
   Compiling sha2 v0.10.7
   Compiling block-padding v0.3.3
   Compiling socket2 v0.4.9
   Compiling mio v0.8.8
   Compiling signal-hook-registry v1.4.1
   Compiling num_cpus v1.16.0
   Compiling num-bigint v0.4.3
   Compiling futures-util v0.3.28
   Compiling percent-encoding v2.3.0
   Compiling glob v0.3.1
   Compiling fastrand v2.0.0
   Compiling unicode-bidi v0.3.13
   Compiling clang-sys v1.6.1
   Compiling idna v0.4.0
   Compiling tempfile v3.7.1
   Compiling form_urlencoded v1.2.0
   Compiling strum v0.25.0
   Compiling num_enum v0.6.1
   Compiling inout v0.1.3
   Compiling k256 v0.13.1
   Compiling open-fastrlp v0.1.4
   Compiling chrono v0.4.26
   Compiling serde_with_macros v2.3.3
   Compiling codecs-derive v0.1.0 (https://github.com/paradigmxyz/reth.git?rev=aa6f2cb0610fb4fa0926b42cfed7f8ff51e0db8a#aa6f2cb0)
   Compiling ethabi v18.0.0
   Compiling smol_str v0.1.24
   Compiling strum_macros v0.24.3
   Compiling modular-bitfield-impl v0.11.2
   Compiling tracing-attributes v0.1.26
   Compiling futures-macro v0.3.28
   Compiling reth-rlp-derive v0.1.1 (https://github.com/paradigmxyz/reth.git?rev=aa6f2cb0610fb4fa0926b42cfed7f8ff51e0db8a#aa6f2cb0)
   Compiling tracing-core v0.1.31
   Compiling unicode-xid v0.2.4
   Compiling pin-utils v0.1.0
   Compiling hash-db v0.15.2
   Compiling futures-io v0.3.28
   Compiling crc-catalog v2.2.0
   Compiling portable-atomic v1.4.2
   Compiling crc v3.0.1
   Compiling tracing v0.1.37
   Compiling strum v0.24.1
   Compiling triehash v0.8.4
   Compiling ethers-core v2.0.8 (https://github.com/gakonst/ethers-rs#5145992e)
   Compiling reth-rlp v0.1.2 (https://github.com/paradigmxyz/reth.git?rev=aa6f2cb0610fb4fa0926b42cfed7f8ff51e0db8a#aa6f2cb0)
   Compiling modular-bitfield v0.11.2
   Compiling serde_with v2.3.3
   Compiling reth-codecs v0.1.0 (https://github.com/paradigmxyz/reth.git?rev=aa6f2cb0610fb4fa0926b42cfed7f8ff51e0db8a#aa6f2cb0)
   Compiling secp256k1 v0.26.0
   Compiling cipher v0.4.4
   Compiling url v2.4.0
   Compiling sucds v0.5.0
   Compiling pin-project-internal v1.1.3
   Compiling plain_hasher v0.2.3
   Compiling ahash v0.7.6
   Compiling semver v1.0.18
   Compiling hex-literal v0.3.4
   Compiling portable-atomic v0.3.20
   Compiling minimal-lexical v0.2.1
   Compiling nom v7.1.3
   Compiling libloading v0.7.4
   Compiling pin-project v1.1.3
   Compiling enum-ordinalize v3.1.13
   Compiling futures-executor v0.3.28
   Compiling reth-primitives v0.1.0 (https://github.com/paradigmxyz/reth.git?rev=aa6f2cb0610fb4fa0926b42cfed7f8ff51e0db8a#aa6f2cb0)
   Compiling async-trait v0.1.72
   Compiling bindgen v0.61.0
   Compiling metrics v0.20.1
   Compiling snap v1.1.0
   Compiling cexpr v0.6.0
   Compiling educe v0.4.22
   Compiling futures v0.3.28
   Compiling reth-net-common v0.1.0 (https://github.com/paradigmxyz/reth.git?rev=aa6f2cb0610fb4fa0926b42cfed7f8ff51e0db8a#aa6f2cb0)
   Compiling ctr v0.9.2
   Compiling aes v0.8.3
   Compiling tokio-util v0.7.8
   Compiling tokio-stream v0.1.14
   Compiling metrics-macros v0.6.0
   Compiling bitflags v1.3.2
   Compiling lazy_static v1.4.0
   Compiling shlex v1.1.0
   Compiling lazycell v1.3.0
   Compiling rustc-hash v1.1.0
   Compiling peeking_take_while v0.1.2
   Compiling reth-ecies v0.1.0 (https://github.com/paradigmxyz/reth.git?rev=aa6f2cb0610fb4fa0926b42cfed7f8ff51e0db8a#aa6f2cb0)
   Compiling rustc_version v0.4.0
   Compiling heapless v0.7.16
   Compiling beef v0.5.2
   Compiling indexmap v1.9.3
   Compiling jsonrpsee-types v0.16.2
   Compiling reth-eth-wire v0.1.0 (https://github.com/paradigmxyz/reth.git?rev=aa6f2cb0610fb4fa0926b42cfed7f8ff51e0db8a#aa6f2cb0)
   Compiling lru v0.9.0
   Compiling hash32 v0.2.1
   Compiling hashbrown v0.12.3
   Compiling stable_deref_trait v1.2.0
   Compiling reth-network-api v0.1.0 (https://github.com/paradigmxyz/reth.git?rev=aa6f2cb0610fb4fa0926b42cfed7f8ff51e0db8a#aa6f2cb0)
   Compiling reth-rpc-types v0.1.0 (https://github.com/paradigmxyz/reth.git?rev=aa6f2cb0610fb4fa0926b42cfed7f8ff51e0db8a#aa6f2cb0)
   Compiling cobs v0.2.3
   Compiling postcard v1.0.6
   Compiling page_size v0.4.2
   Compiling reth-mdbx-sys v0.12.1-0 (https://github.com/paradigmxyz/reth.git?rev=aa6f2cb0610fb4fa0926b42cfed7f8ff51e0db8a#aa6f2cb0)
   Compiling reth-interfaces v0.1.0 (https://github.com/paradigmxyz/reth.git?rev=aa6f2cb0610fb4fa0926b42cfed7f8ff51e0db8a#aa6f2cb0)
error: failed to run custom build command for `reth-mdbx-sys v0.12.1-0 (https://github.com/paradigmxyz/reth.git?rev=aa6f2cb0610fb4fa0926b42cfed7f8ff51e0db8a#aa6f2cb0)`

Caused by:
  process didn't exit successfully: `/Users/xxx/Desktop/test-rs/target/release/build/reth-mdbx-sys-38d215bf8806b49b/build-script-build` (exit status: 101)
  --- stderr
  thread 'main' panicked at '"MDBX_version_info_struct_(unnamed_at_/Users/xxx/_cargo/git/checkouts/reth-36d3ea1d1152b20c/aa6f2cb/crates/storage/libmdbx-rs/mdbx-sys/libmdbx/mdbx_h_673_3)" is not a valid Ident', /Users/xxx/.cargo/registry/src/index.crates.io-6f17d22bba15001f/proc-macro2-1.0.66/src/fallback.rs:774:9
  note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
warning: build failed, waiting for other jobs to finish...

Ok, so that's the problem. Can you try with this commit 4b0b63766e7f25729be5a8bc614dfdcf17db97c0 in Cargo.toml? If it works with the latest commit, then we can update deps in Silius. Otherwise, this issue can be reported to reth repo.

@octavei
Copy link
Author

octavei commented Aug 8, 2023

@octavei Hmm, this is related to reth package we are using for database. Can you try please creating empty Rust project and adding this to Cargo.toml to see if project builds:
reth-db = { git = "https://github.com/paradigmxyz/reth.git", rev = "aa6f2cb0610fb4fa0926b42cfed7f8ff51e0db8a" } reth-libmdbx = { git = "https://github.com/paradigmxyz/reth.git", rev = "aa6f2cb0610fb4fa0926b42cfed7f8ff51e0db8a" }
And then building the whole thing.

code:

[package]
name = "test-rs"
version = "0.1.0"
edition = "2021"

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[dependencies]
reth-db = { git = "https://github.com/paradigmxyz/reth.git", rev = "aa6f2cb0610fb4fa0926b42cfed7f8ff51e0db8a" }
reth-libmdbx = { git = "https://github.com/paradigmxyz/reth.git", rev = "aa6f2cb0610fb4fa0926b42cfed7f8ff51e0db8a" }

command:

cargo build --release

err info:

 test-rs git:(master) ✗ 
➜  test-rs git:(master) ✗ cargo build --release 
   Compiling proc-macro2 v1.0.66
   Compiling unicode-ident v1.0.11
   Compiling libc v0.2.147
   Compiling version_check v0.9.4
   Compiling cfg-if v1.0.0
   Compiling syn v1.0.109
   Compiling serde v1.0.183
   Compiling autocfg v1.1.0
   Compiling typenum v1.16.0
   Compiling zeroize v1.6.0
   Compiling equivalent v1.0.1
   Compiling generic-array v0.14.7
   Compiling hashbrown v0.14.0
   Compiling toml_datetime v0.6.3
   Compiling winnow v0.5.4
   Compiling once_cell v1.18.0
   Compiling subtle v2.5.0
   Compiling const-oid v0.9.4
   Compiling indexmap v2.0.0
   Compiling byteorder v1.4.3
   Compiling crunchy v0.2.2
   Compiling quote v1.0.32
   Compiling syn v2.0.28
   Compiling getrandom v0.2.10
   Compiling rustc-hex v2.1.0
   Compiling ppv-lite86 v0.2.17
   Compiling rand_core v0.6.4
   Compiling rand_chacha v0.3.1
   Compiling toml_edit v0.19.14
   Compiling crypto-common v0.1.6
   Compiling block-buffer v0.10.4
   Compiling arrayvec v0.7.4
   Compiling digest v0.10.7
   Compiling byte-slice-cast v1.2.2
   Compiling static_assertions v1.1.0
   Compiling convert_case v0.4.0
   Compiling rand v0.8.5
   Compiling cpufeatures v0.2.9
   Compiling memchr v2.5.0
   Compiling proc-macro-error-attr v1.0.4
   Compiling cc v1.0.82
   Compiling fixed-hash v0.8.0
   Compiling proc-macro-crate v1.3.1
   Compiling proc-macro-error v1.0.4
   Compiling tiny-keccak v2.0.2
   Compiling ahash v0.8.3
   Compiling pin-project-lite v0.2.11
   Compiling rustversion v1.0.14
   Compiling keccak v0.1.4
   Compiling der v0.7.8
   Compiling lock_api v0.4.10
   Compiling thiserror v1.0.44
   Compiling parking_lot_core v0.9.8
   Compiling radium v0.7.0
   Compiling bytes v1.4.0
   Compiling futures-core v0.3.28
   Compiling sha3 v0.10.8
   Compiling ff v0.13.0
   Compiling smallvec v1.11.0
   Compiling strsim v0.10.0
   Compiling base16ct v0.2.0
   Compiling fnv v1.0.7
   Compiling serde_json v1.0.104
   Compiling scopeguard v1.2.0
   Compiling ident_case v1.0.1
   Compiling tap v1.0.1
   Compiling heck v0.4.1
   Compiling wyz v0.5.1
   Compiling darling_core v0.20.3
   Compiling sec1 v0.7.3
   Compiling group v0.13.0
   Compiling serde_derive v1.0.183
   Compiling thiserror-impl v1.0.44
   Compiling aho-corasick v1.0.2
   Compiling hmac v0.12.1
   Compiling crypto-bigint v0.5.2
   Compiling impl-trait-for-tuples v0.2.2
   Compiling parity-scale-codec-derive v3.6.4
   Compiling rlp-derive v0.1.0
   Compiling derive_more v0.99.17
   Compiling scale-info-derive v2.9.0
   Compiling auto_impl v1.1.0
   Compiling num-traits v0.2.16
   Compiling ryu v1.0.15
   Compiling anyhow v1.0.72
   Compiling ruint-macro v1.1.0
   Compiling regex-syntax v0.7.4
   Compiling rustix v0.38.7
   Compiling tinyvec_macros v0.1.1
   Compiling funty v2.0.0
   Compiling itoa v1.0.9
   Compiling tinyvec v1.6.0
   Compiling darling_macro v0.20.3
   Compiling elliptic-curve v0.13.5
   Compiling rfc6979 v0.4.0
   Compiling parking_lot v0.12.1
   Compiling enumn v0.1.11
   Compiling spki v0.7.2
   Compiling secp256k1-sys v0.8.1
   Compiling regex-automata v0.3.6
   Compiling signature v2.1.0
   Compiling errno v0.3.2
   Compiling num-integer v0.1.45
   Compiling slab v0.4.8
   Compiling tokio v1.29.1
   Compiling unicode-segmentation v1.10.1
   Compiling futures-channel v0.3.28
   Compiling hex-literal v0.4.1
   Compiling futures-sink v0.3.28
   Compiling impl-serde v0.4.0
   Compiling hex v0.4.3
   Compiling uint v0.9.5
   Compiling hashbrown v0.13.2
   Compiling parity-scale-codec v3.6.4
   Compiling rlp v0.5.2
   Compiling bitvec v1.0.1
   Compiling impl-rlp v0.3.0
   Compiling scale-info v2.9.0
   Compiling impl-codec v0.6.0
   Compiling futures-task v0.3.28
   Compiling bitflags v2.3.3
   Compiling primitive-types v0.12.1
   Compiling ethbloom v0.13.0
   Compiling regex v1.9.3
   Compiling ethereum-types v0.14.1
   Compiling ruint v1.10.1
   Compiling convert_case v0.6.0
   Compiling ecdsa v0.16.8
   Compiling darling v0.20.3
   Compiling unicode-normalization v0.1.22
   Compiling revm-primitives v1.1.2
   Compiling open-fastrlp-derive v0.1.1
   Compiling strum_macros v0.25.2
   Compiling tokio-macros v2.1.0
   Compiling num_enum_derive v0.6.1
   Compiling sha2 v0.10.7
   Compiling block-padding v0.3.3
   Compiling socket2 v0.4.9
   Compiling mio v0.8.8
   Compiling signal-hook-registry v1.4.1
   Compiling num_cpus v1.16.0
   Compiling num-bigint v0.4.3
   Compiling futures-util v0.3.28
   Compiling percent-encoding v2.3.0
   Compiling glob v0.3.1
   Compiling fastrand v2.0.0
   Compiling unicode-bidi v0.3.13
   Compiling clang-sys v1.6.1
   Compiling idna v0.4.0
   Compiling tempfile v3.7.1
   Compiling form_urlencoded v1.2.0
   Compiling strum v0.25.0
   Compiling num_enum v0.6.1
   Compiling inout v0.1.3
   Compiling k256 v0.13.1
   Compiling open-fastrlp v0.1.4
   Compiling chrono v0.4.26
   Compiling serde_with_macros v2.3.3
   Compiling codecs-derive v0.1.0 (https://github.com/paradigmxyz/reth.git?rev=aa6f2cb0610fb4fa0926b42cfed7f8ff51e0db8a#aa6f2cb0)
   Compiling ethabi v18.0.0
   Compiling smol_str v0.1.24
   Compiling strum_macros v0.24.3
   Compiling modular-bitfield-impl v0.11.2
   Compiling tracing-attributes v0.1.26
   Compiling futures-macro v0.3.28
   Compiling reth-rlp-derive v0.1.1 (https://github.com/paradigmxyz/reth.git?rev=aa6f2cb0610fb4fa0926b42cfed7f8ff51e0db8a#aa6f2cb0)
   Compiling tracing-core v0.1.31
   Compiling unicode-xid v0.2.4
   Compiling pin-utils v0.1.0
   Compiling hash-db v0.15.2
   Compiling futures-io v0.3.28
   Compiling crc-catalog v2.2.0
   Compiling portable-atomic v1.4.2
   Compiling crc v3.0.1
   Compiling tracing v0.1.37
   Compiling strum v0.24.1
   Compiling triehash v0.8.4
   Compiling ethers-core v2.0.8 (https://github.com/gakonst/ethers-rs#5145992e)
   Compiling reth-rlp v0.1.2 (https://github.com/paradigmxyz/reth.git?rev=aa6f2cb0610fb4fa0926b42cfed7f8ff51e0db8a#aa6f2cb0)
   Compiling modular-bitfield v0.11.2
   Compiling serde_with v2.3.3
   Compiling reth-codecs v0.1.0 (https://github.com/paradigmxyz/reth.git?rev=aa6f2cb0610fb4fa0926b42cfed7f8ff51e0db8a#aa6f2cb0)
   Compiling secp256k1 v0.26.0
   Compiling cipher v0.4.4
   Compiling url v2.4.0
   Compiling sucds v0.5.0
   Compiling pin-project-internal v1.1.3
   Compiling plain_hasher v0.2.3
   Compiling ahash v0.7.6
   Compiling semver v1.0.18
   Compiling hex-literal v0.3.4
   Compiling portable-atomic v0.3.20
   Compiling minimal-lexical v0.2.1
   Compiling nom v7.1.3
   Compiling libloading v0.7.4
   Compiling pin-project v1.1.3
   Compiling enum-ordinalize v3.1.13
   Compiling futures-executor v0.3.28
   Compiling reth-primitives v0.1.0 (https://github.com/paradigmxyz/reth.git?rev=aa6f2cb0610fb4fa0926b42cfed7f8ff51e0db8a#aa6f2cb0)
   Compiling async-trait v0.1.72
   Compiling bindgen v0.61.0
   Compiling metrics v0.20.1
   Compiling snap v1.1.0
   Compiling cexpr v0.6.0
   Compiling educe v0.4.22
   Compiling futures v0.3.28
   Compiling reth-net-common v0.1.0 (https://github.com/paradigmxyz/reth.git?rev=aa6f2cb0610fb4fa0926b42cfed7f8ff51e0db8a#aa6f2cb0)
   Compiling ctr v0.9.2
   Compiling aes v0.8.3
   Compiling tokio-util v0.7.8
   Compiling tokio-stream v0.1.14
   Compiling metrics-macros v0.6.0
   Compiling bitflags v1.3.2
   Compiling lazy_static v1.4.0
   Compiling shlex v1.1.0
   Compiling lazycell v1.3.0
   Compiling rustc-hash v1.1.0
   Compiling peeking_take_while v0.1.2
   Compiling reth-ecies v0.1.0 (https://github.com/paradigmxyz/reth.git?rev=aa6f2cb0610fb4fa0926b42cfed7f8ff51e0db8a#aa6f2cb0)
   Compiling rustc_version v0.4.0
   Compiling heapless v0.7.16
   Compiling beef v0.5.2
   Compiling indexmap v1.9.3
   Compiling jsonrpsee-types v0.16.2
   Compiling reth-eth-wire v0.1.0 (https://github.com/paradigmxyz/reth.git?rev=aa6f2cb0610fb4fa0926b42cfed7f8ff51e0db8a#aa6f2cb0)
   Compiling lru v0.9.0
   Compiling hash32 v0.2.1
   Compiling hashbrown v0.12.3
   Compiling stable_deref_trait v1.2.0
   Compiling reth-network-api v0.1.0 (https://github.com/paradigmxyz/reth.git?rev=aa6f2cb0610fb4fa0926b42cfed7f8ff51e0db8a#aa6f2cb0)
   Compiling reth-rpc-types v0.1.0 (https://github.com/paradigmxyz/reth.git?rev=aa6f2cb0610fb4fa0926b42cfed7f8ff51e0db8a#aa6f2cb0)
   Compiling cobs v0.2.3
   Compiling postcard v1.0.6
   Compiling page_size v0.4.2
   Compiling reth-mdbx-sys v0.12.1-0 (https://github.com/paradigmxyz/reth.git?rev=aa6f2cb0610fb4fa0926b42cfed7f8ff51e0db8a#aa6f2cb0)
   Compiling reth-interfaces v0.1.0 (https://github.com/paradigmxyz/reth.git?rev=aa6f2cb0610fb4fa0926b42cfed7f8ff51e0db8a#aa6f2cb0)
error: failed to run custom build command for `reth-mdbx-sys v0.12.1-0 (https://github.com/paradigmxyz/reth.git?rev=aa6f2cb0610fb4fa0926b42cfed7f8ff51e0db8a#aa6f2cb0)`

Caused by:
  process didn't exit successfully: `/Users/xxx/Desktop/test-rs/target/release/build/reth-mdbx-sys-38d215bf8806b49b/build-script-build` (exit status: 101)
  --- stderr
  thread 'main' panicked at '"MDBX_version_info_struct_(unnamed_at_/Users/xxx/_cargo/git/checkouts/reth-36d3ea1d1152b20c/aa6f2cb/crates/storage/libmdbx-rs/mdbx-sys/libmdbx/mdbx_h_673_3)" is not a valid Ident', /Users/xxx/.cargo/registry/src/index.crates.io-6f17d22bba15001f/proc-macro2-1.0.66/src/fallback.rs:774:9
  note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
warning: build failed, waiting for other jobs to finish...

Ok, so that's the problem. Can you try with this commit 4b0b63766e7f25729be5a8bc614dfdcf17db97c0 in Cargo.toml? If it works with the latest commit, then we can update deps in Silius. Otherwise, this issue can be reported to reth repo.

Compiling silius-bundler v0.1.0 (/Users/weijunyuan/Desktop/orbiter-finance/silius/crates/bundler)
   Compiling silius-uopool v0.1.0 (/Users/weijunyuan/Desktop/orbiter-finance/silius/crates/uopool)
error[E0432]: unresolved import `reth_db::Error`
  --> crates/uopool/src/database/mempool.rs:16:5
   |
16 |     Error, TableType,
   |     ^^^^^ no `Error` in the root
   |
   = help: consider importing one of these items instead:
           anyhow::Error
           ethers::abi::Error
           ethers::prelude::MockResponse::Error
           ethers::prelude::ResponseData::Error
           reth_db::mdbx::Error
           reth_libmdbx::Error
           serde::__private::doc::Error
           serde::__private::fmt::Error
           serde::de::Error
           serde::de::value::Error
           serde::ser::Error
           serde_json::Error
           std::error::Error
           std::fmt::Error
           std::io::Error
           tokio::io::Error
           tokio::time::error::Error
           tracing::log::Level::Error
           tracing::log::LevelFilter::Error
           core::error::Error

@Vid201
Copy link
Member

Vid201 commented Aug 8, 2023

@octavei Hmm, this is related to reth package we are using for database. Can you try please creating empty Rust project and adding this to Cargo.toml to see if project builds:
reth-db = { git = "https://github.com/paradigmxyz/reth.git", rev = "aa6f2cb0610fb4fa0926b42cfed7f8ff51e0db8a" } reth-libmdbx = { git = "https://github.com/paradigmxyz/reth.git", rev = "aa6f2cb0610fb4fa0926b42cfed7f8ff51e0db8a" }
And then building the whole thing.

code:

[package]
name = "test-rs"
version = "0.1.0"
edition = "2021"

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[dependencies]
reth-db = { git = "https://github.com/paradigmxyz/reth.git", rev = "aa6f2cb0610fb4fa0926b42cfed7f8ff51e0db8a" }
reth-libmdbx = { git = "https://github.com/paradigmxyz/reth.git", rev = "aa6f2cb0610fb4fa0926b42cfed7f8ff51e0db8a" }

command:

cargo build --release

err info:

 test-rs git:(master) ✗ 
➜  test-rs git:(master) ✗ cargo build --release 
   Compiling proc-macro2 v1.0.66
   Compiling unicode-ident v1.0.11
   Compiling libc v0.2.147
   Compiling version_check v0.9.4
   Compiling cfg-if v1.0.0
   Compiling syn v1.0.109
   Compiling serde v1.0.183
   Compiling autocfg v1.1.0
   Compiling typenum v1.16.0
   Compiling zeroize v1.6.0
   Compiling equivalent v1.0.1
   Compiling generic-array v0.14.7
   Compiling hashbrown v0.14.0
   Compiling toml_datetime v0.6.3
   Compiling winnow v0.5.4
   Compiling once_cell v1.18.0
   Compiling subtle v2.5.0
   Compiling const-oid v0.9.4
   Compiling indexmap v2.0.0
   Compiling byteorder v1.4.3
   Compiling crunchy v0.2.2
   Compiling quote v1.0.32
   Compiling syn v2.0.28
   Compiling getrandom v0.2.10
   Compiling rustc-hex v2.1.0
   Compiling ppv-lite86 v0.2.17
   Compiling rand_core v0.6.4
   Compiling rand_chacha v0.3.1
   Compiling toml_edit v0.19.14
   Compiling crypto-common v0.1.6
   Compiling block-buffer v0.10.4
   Compiling arrayvec v0.7.4
   Compiling digest v0.10.7
   Compiling byte-slice-cast v1.2.2
   Compiling static_assertions v1.1.0
   Compiling convert_case v0.4.0
   Compiling rand v0.8.5
   Compiling cpufeatures v0.2.9
   Compiling memchr v2.5.0
   Compiling proc-macro-error-attr v1.0.4
   Compiling cc v1.0.82
   Compiling fixed-hash v0.8.0
   Compiling proc-macro-crate v1.3.1
   Compiling proc-macro-error v1.0.4
   Compiling tiny-keccak v2.0.2
   Compiling ahash v0.8.3
   Compiling pin-project-lite v0.2.11
   Compiling rustversion v1.0.14
   Compiling keccak v0.1.4
   Compiling der v0.7.8
   Compiling lock_api v0.4.10
   Compiling thiserror v1.0.44
   Compiling parking_lot_core v0.9.8
   Compiling radium v0.7.0
   Compiling bytes v1.4.0
   Compiling futures-core v0.3.28
   Compiling sha3 v0.10.8
   Compiling ff v0.13.0
   Compiling smallvec v1.11.0
   Compiling strsim v0.10.0
   Compiling base16ct v0.2.0
   Compiling fnv v1.0.7
   Compiling serde_json v1.0.104
   Compiling scopeguard v1.2.0
   Compiling ident_case v1.0.1
   Compiling tap v1.0.1
   Compiling heck v0.4.1
   Compiling wyz v0.5.1
   Compiling darling_core v0.20.3
   Compiling sec1 v0.7.3
   Compiling group v0.13.0
   Compiling serde_derive v1.0.183
   Compiling thiserror-impl v1.0.44
   Compiling aho-corasick v1.0.2
   Compiling hmac v0.12.1
   Compiling crypto-bigint v0.5.2
   Compiling impl-trait-for-tuples v0.2.2
   Compiling parity-scale-codec-derive v3.6.4
   Compiling rlp-derive v0.1.0
   Compiling derive_more v0.99.17
   Compiling scale-info-derive v2.9.0
   Compiling auto_impl v1.1.0
   Compiling num-traits v0.2.16
   Compiling ryu v1.0.15
   Compiling anyhow v1.0.72
   Compiling ruint-macro v1.1.0
   Compiling regex-syntax v0.7.4
   Compiling rustix v0.38.7
   Compiling tinyvec_macros v0.1.1
   Compiling funty v2.0.0
   Compiling itoa v1.0.9
   Compiling tinyvec v1.6.0
   Compiling darling_macro v0.20.3
   Compiling elliptic-curve v0.13.5
   Compiling rfc6979 v0.4.0
   Compiling parking_lot v0.12.1
   Compiling enumn v0.1.11
   Compiling spki v0.7.2
   Compiling secp256k1-sys v0.8.1
   Compiling regex-automata v0.3.6
   Compiling signature v2.1.0
   Compiling errno v0.3.2
   Compiling num-integer v0.1.45
   Compiling slab v0.4.8
   Compiling tokio v1.29.1
   Compiling unicode-segmentation v1.10.1
   Compiling futures-channel v0.3.28
   Compiling hex-literal v0.4.1
   Compiling futures-sink v0.3.28
   Compiling impl-serde v0.4.0
   Compiling hex v0.4.3
   Compiling uint v0.9.5
   Compiling hashbrown v0.13.2
   Compiling parity-scale-codec v3.6.4
   Compiling rlp v0.5.2
   Compiling bitvec v1.0.1
   Compiling impl-rlp v0.3.0
   Compiling scale-info v2.9.0
   Compiling impl-codec v0.6.0
   Compiling futures-task v0.3.28
   Compiling bitflags v2.3.3
   Compiling primitive-types v0.12.1
   Compiling ethbloom v0.13.0
   Compiling regex v1.9.3
   Compiling ethereum-types v0.14.1
   Compiling ruint v1.10.1
   Compiling convert_case v0.6.0
   Compiling ecdsa v0.16.8
   Compiling darling v0.20.3
   Compiling unicode-normalization v0.1.22
   Compiling revm-primitives v1.1.2
   Compiling open-fastrlp-derive v0.1.1
   Compiling strum_macros v0.25.2
   Compiling tokio-macros v2.1.0
   Compiling num_enum_derive v0.6.1
   Compiling sha2 v0.10.7
   Compiling block-padding v0.3.3
   Compiling socket2 v0.4.9
   Compiling mio v0.8.8
   Compiling signal-hook-registry v1.4.1
   Compiling num_cpus v1.16.0
   Compiling num-bigint v0.4.3
   Compiling futures-util v0.3.28
   Compiling percent-encoding v2.3.0
   Compiling glob v0.3.1
   Compiling fastrand v2.0.0
   Compiling unicode-bidi v0.3.13
   Compiling clang-sys v1.6.1
   Compiling idna v0.4.0
   Compiling tempfile v3.7.1
   Compiling form_urlencoded v1.2.0
   Compiling strum v0.25.0
   Compiling num_enum v0.6.1
   Compiling inout v0.1.3
   Compiling k256 v0.13.1
   Compiling open-fastrlp v0.1.4
   Compiling chrono v0.4.26
   Compiling serde_with_macros v2.3.3
   Compiling codecs-derive v0.1.0 (https://github.com/paradigmxyz/reth.git?rev=aa6f2cb0610fb4fa0926b42cfed7f8ff51e0db8a#aa6f2cb0)
   Compiling ethabi v18.0.0
   Compiling smol_str v0.1.24
   Compiling strum_macros v0.24.3
   Compiling modular-bitfield-impl v0.11.2
   Compiling tracing-attributes v0.1.26
   Compiling futures-macro v0.3.28
   Compiling reth-rlp-derive v0.1.1 (https://github.com/paradigmxyz/reth.git?rev=aa6f2cb0610fb4fa0926b42cfed7f8ff51e0db8a#aa6f2cb0)
   Compiling tracing-core v0.1.31
   Compiling unicode-xid v0.2.4
   Compiling pin-utils v0.1.0
   Compiling hash-db v0.15.2
   Compiling futures-io v0.3.28
   Compiling crc-catalog v2.2.0
   Compiling portable-atomic v1.4.2
   Compiling crc v3.0.1
   Compiling tracing v0.1.37
   Compiling strum v0.24.1
   Compiling triehash v0.8.4
   Compiling ethers-core v2.0.8 (https://github.com/gakonst/ethers-rs#5145992e)
   Compiling reth-rlp v0.1.2 (https://github.com/paradigmxyz/reth.git?rev=aa6f2cb0610fb4fa0926b42cfed7f8ff51e0db8a#aa6f2cb0)
   Compiling modular-bitfield v0.11.2
   Compiling serde_with v2.3.3
   Compiling reth-codecs v0.1.0 (https://github.com/paradigmxyz/reth.git?rev=aa6f2cb0610fb4fa0926b42cfed7f8ff51e0db8a#aa6f2cb0)
   Compiling secp256k1 v0.26.0
   Compiling cipher v0.4.4
   Compiling url v2.4.0
   Compiling sucds v0.5.0
   Compiling pin-project-internal v1.1.3
   Compiling plain_hasher v0.2.3
   Compiling ahash v0.7.6
   Compiling semver v1.0.18
   Compiling hex-literal v0.3.4
   Compiling portable-atomic v0.3.20
   Compiling minimal-lexical v0.2.1
   Compiling nom v7.1.3
   Compiling libloading v0.7.4
   Compiling pin-project v1.1.3
   Compiling enum-ordinalize v3.1.13
   Compiling futures-executor v0.3.28
   Compiling reth-primitives v0.1.0 (https://github.com/paradigmxyz/reth.git?rev=aa6f2cb0610fb4fa0926b42cfed7f8ff51e0db8a#aa6f2cb0)
   Compiling async-trait v0.1.72
   Compiling bindgen v0.61.0
   Compiling metrics v0.20.1
   Compiling snap v1.1.0
   Compiling cexpr v0.6.0
   Compiling educe v0.4.22
   Compiling futures v0.3.28
   Compiling reth-net-common v0.1.0 (https://github.com/paradigmxyz/reth.git?rev=aa6f2cb0610fb4fa0926b42cfed7f8ff51e0db8a#aa6f2cb0)
   Compiling ctr v0.9.2
   Compiling aes v0.8.3
   Compiling tokio-util v0.7.8
   Compiling tokio-stream v0.1.14
   Compiling metrics-macros v0.6.0
   Compiling bitflags v1.3.2
   Compiling lazy_static v1.4.0
   Compiling shlex v1.1.0
   Compiling lazycell v1.3.0
   Compiling rustc-hash v1.1.0
   Compiling peeking_take_while v0.1.2
   Compiling reth-ecies v0.1.0 (https://github.com/paradigmxyz/reth.git?rev=aa6f2cb0610fb4fa0926b42cfed7f8ff51e0db8a#aa6f2cb0)
   Compiling rustc_version v0.4.0
   Compiling heapless v0.7.16
   Compiling beef v0.5.2
   Compiling indexmap v1.9.3
   Compiling jsonrpsee-types v0.16.2
   Compiling reth-eth-wire v0.1.0 (https://github.com/paradigmxyz/reth.git?rev=aa6f2cb0610fb4fa0926b42cfed7f8ff51e0db8a#aa6f2cb0)
   Compiling lru v0.9.0
   Compiling hash32 v0.2.1
   Compiling hashbrown v0.12.3
   Compiling stable_deref_trait v1.2.0
   Compiling reth-network-api v0.1.0 (https://github.com/paradigmxyz/reth.git?rev=aa6f2cb0610fb4fa0926b42cfed7f8ff51e0db8a#aa6f2cb0)
   Compiling reth-rpc-types v0.1.0 (https://github.com/paradigmxyz/reth.git?rev=aa6f2cb0610fb4fa0926b42cfed7f8ff51e0db8a#aa6f2cb0)
   Compiling cobs v0.2.3
   Compiling postcard v1.0.6
   Compiling page_size v0.4.2
   Compiling reth-mdbx-sys v0.12.1-0 (https://github.com/paradigmxyz/reth.git?rev=aa6f2cb0610fb4fa0926b42cfed7f8ff51e0db8a#aa6f2cb0)
   Compiling reth-interfaces v0.1.0 (https://github.com/paradigmxyz/reth.git?rev=aa6f2cb0610fb4fa0926b42cfed7f8ff51e0db8a#aa6f2cb0)
error: failed to run custom build command for `reth-mdbx-sys v0.12.1-0 (https://github.com/paradigmxyz/reth.git?rev=aa6f2cb0610fb4fa0926b42cfed7f8ff51e0db8a#aa6f2cb0)`

Caused by:
  process didn't exit successfully: `/Users/xxx/Desktop/test-rs/target/release/build/reth-mdbx-sys-38d215bf8806b49b/build-script-build` (exit status: 101)
  --- stderr
  thread 'main' panicked at '"MDBX_version_info_struct_(unnamed_at_/Users/xxx/_cargo/git/checkouts/reth-36d3ea1d1152b20c/aa6f2cb/crates/storage/libmdbx-rs/mdbx-sys/libmdbx/mdbx_h_673_3)" is not a valid Ident', /Users/xxx/.cargo/registry/src/index.crates.io-6f17d22bba15001f/proc-macro2-1.0.66/src/fallback.rs:774:9
  note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
warning: build failed, waiting for other jobs to finish...

Ok, so that's the problem. Can you try with this commit 4b0b63766e7f25729be5a8bc614dfdcf17db97c0 in Cargo.toml? If it works with the latest commit, then we can update deps in Silius. Otherwise, this issue can be reported to reth repo.

Compiling silius-bundler v0.1.0 (/Users/weijunyuan/Desktop/orbiter-finance/silius/crates/bundler)
   Compiling silius-uopool v0.1.0 (/Users/weijunyuan/Desktop/orbiter-finance/silius/crates/uopool)
error[E0432]: unresolved import `reth_db::Error`
  --> crates/uopool/src/database/mempool.rs:16:5
   |
16 |     Error, TableType,
   |     ^^^^^ no `Error` in the root
   |
   = help: consider importing one of these items instead:
           anyhow::Error
           ethers::abi::Error
           ethers::prelude::MockResponse::Error
           ethers::prelude::ResponseData::Error
           reth_db::mdbx::Error
           reth_libmdbx::Error
           serde::__private::doc::Error
           serde::__private::fmt::Error
           serde::de::Error
           serde::de::value::Error
           serde::ser::Error
           serde_json::Error
           std::error::Error
           std::fmt::Error
           std::io::Error
           tokio::io::Error
           tokio::time::error::Error
           tracing::log::Level::Error
           tracing::log::LevelFilter::Error
           core::error::Error

Can you try changing the commit hash in your demo empty project? Just to see if building works. If we are going to update the commit hash in the Silius, some changes will have to be made because of the changes in reth crate.

@octavei
Copy link
Author

octavei commented Aug 8, 2023

@octavei Hmm, this is related to reth package we are using for database. Can you try please creating empty Rust project and adding this to Cargo.toml to see if project builds:
reth-db = { git = "https://github.com/paradigmxyz/reth.git", rev = "aa6f2cb0610fb4fa0926b42cfed7f8ff51e0db8a" } reth-libmdbx = { git = "https://github.com/paradigmxyz/reth.git", rev = "aa6f2cb0610fb4fa0926b42cfed7f8ff51e0db8a" }
And then building the whole thing.

code:

[package]
name = "test-rs"
version = "0.1.0"
edition = "2021"

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[dependencies]
reth-db = { git = "https://github.com/paradigmxyz/reth.git", rev = "aa6f2cb0610fb4fa0926b42cfed7f8ff51e0db8a" }
reth-libmdbx = { git = "https://github.com/paradigmxyz/reth.git", rev = "aa6f2cb0610fb4fa0926b42cfed7f8ff51e0db8a" }

command:

cargo build --release

err info:

 test-rs git:(master) ✗ 
➜  test-rs git:(master) ✗ cargo build --release 
   Compiling proc-macro2 v1.0.66
   Compiling unicode-ident v1.0.11
   Compiling libc v0.2.147
   Compiling version_check v0.9.4
   Compiling cfg-if v1.0.0
   Compiling syn v1.0.109
   Compiling serde v1.0.183
   Compiling autocfg v1.1.0
   Compiling typenum v1.16.0
   Compiling zeroize v1.6.0
   Compiling equivalent v1.0.1
   Compiling generic-array v0.14.7
   Compiling hashbrown v0.14.0
   Compiling toml_datetime v0.6.3
   Compiling winnow v0.5.4
   Compiling once_cell v1.18.0
   Compiling subtle v2.5.0
   Compiling const-oid v0.9.4
   Compiling indexmap v2.0.0
   Compiling byteorder v1.4.3
   Compiling crunchy v0.2.2
   Compiling quote v1.0.32
   Compiling syn v2.0.28
   Compiling getrandom v0.2.10
   Compiling rustc-hex v2.1.0
   Compiling ppv-lite86 v0.2.17
   Compiling rand_core v0.6.4
   Compiling rand_chacha v0.3.1
   Compiling toml_edit v0.19.14
   Compiling crypto-common v0.1.6
   Compiling block-buffer v0.10.4
   Compiling arrayvec v0.7.4
   Compiling digest v0.10.7
   Compiling byte-slice-cast v1.2.2
   Compiling static_assertions v1.1.0
   Compiling convert_case v0.4.0
   Compiling rand v0.8.5
   Compiling cpufeatures v0.2.9
   Compiling memchr v2.5.0
   Compiling proc-macro-error-attr v1.0.4
   Compiling cc v1.0.82
   Compiling fixed-hash v0.8.0
   Compiling proc-macro-crate v1.3.1
   Compiling proc-macro-error v1.0.4
   Compiling tiny-keccak v2.0.2
   Compiling ahash v0.8.3
   Compiling pin-project-lite v0.2.11
   Compiling rustversion v1.0.14
   Compiling keccak v0.1.4
   Compiling der v0.7.8
   Compiling lock_api v0.4.10
   Compiling thiserror v1.0.44
   Compiling parking_lot_core v0.9.8
   Compiling radium v0.7.0
   Compiling bytes v1.4.0
   Compiling futures-core v0.3.28
   Compiling sha3 v0.10.8
   Compiling ff v0.13.0
   Compiling smallvec v1.11.0
   Compiling strsim v0.10.0
   Compiling base16ct v0.2.0
   Compiling fnv v1.0.7
   Compiling serde_json v1.0.104
   Compiling scopeguard v1.2.0
   Compiling ident_case v1.0.1
   Compiling tap v1.0.1
   Compiling heck v0.4.1
   Compiling wyz v0.5.1
   Compiling darling_core v0.20.3
   Compiling sec1 v0.7.3
   Compiling group v0.13.0
   Compiling serde_derive v1.0.183
   Compiling thiserror-impl v1.0.44
   Compiling aho-corasick v1.0.2
   Compiling hmac v0.12.1
   Compiling crypto-bigint v0.5.2
   Compiling impl-trait-for-tuples v0.2.2
   Compiling parity-scale-codec-derive v3.6.4
   Compiling rlp-derive v0.1.0
   Compiling derive_more v0.99.17
   Compiling scale-info-derive v2.9.0
   Compiling auto_impl v1.1.0
   Compiling num-traits v0.2.16
   Compiling ryu v1.0.15
   Compiling anyhow v1.0.72
   Compiling ruint-macro v1.1.0
   Compiling regex-syntax v0.7.4
   Compiling rustix v0.38.7
   Compiling tinyvec_macros v0.1.1
   Compiling funty v2.0.0
   Compiling itoa v1.0.9
   Compiling tinyvec v1.6.0
   Compiling darling_macro v0.20.3
   Compiling elliptic-curve v0.13.5
   Compiling rfc6979 v0.4.0
   Compiling parking_lot v0.12.1
   Compiling enumn v0.1.11
   Compiling spki v0.7.2
   Compiling secp256k1-sys v0.8.1
   Compiling regex-automata v0.3.6
   Compiling signature v2.1.0
   Compiling errno v0.3.2
   Compiling num-integer v0.1.45
   Compiling slab v0.4.8
   Compiling tokio v1.29.1
   Compiling unicode-segmentation v1.10.1
   Compiling futures-channel v0.3.28
   Compiling hex-literal v0.4.1
   Compiling futures-sink v0.3.28
   Compiling impl-serde v0.4.0
   Compiling hex v0.4.3
   Compiling uint v0.9.5
   Compiling hashbrown v0.13.2
   Compiling parity-scale-codec v3.6.4
   Compiling rlp v0.5.2
   Compiling bitvec v1.0.1
   Compiling impl-rlp v0.3.0
   Compiling scale-info v2.9.0
   Compiling impl-codec v0.6.0
   Compiling futures-task v0.3.28
   Compiling bitflags v2.3.3
   Compiling primitive-types v0.12.1
   Compiling ethbloom v0.13.0
   Compiling regex v1.9.3
   Compiling ethereum-types v0.14.1
   Compiling ruint v1.10.1
   Compiling convert_case v0.6.0
   Compiling ecdsa v0.16.8
   Compiling darling v0.20.3
   Compiling unicode-normalization v0.1.22
   Compiling revm-primitives v1.1.2
   Compiling open-fastrlp-derive v0.1.1
   Compiling strum_macros v0.25.2
   Compiling tokio-macros v2.1.0
   Compiling num_enum_derive v0.6.1
   Compiling sha2 v0.10.7
   Compiling block-padding v0.3.3
   Compiling socket2 v0.4.9
   Compiling mio v0.8.8
   Compiling signal-hook-registry v1.4.1
   Compiling num_cpus v1.16.0
   Compiling num-bigint v0.4.3
   Compiling futures-util v0.3.28
   Compiling percent-encoding v2.3.0
   Compiling glob v0.3.1
   Compiling fastrand v2.0.0
   Compiling unicode-bidi v0.3.13
   Compiling clang-sys v1.6.1
   Compiling idna v0.4.0
   Compiling tempfile v3.7.1
   Compiling form_urlencoded v1.2.0
   Compiling strum v0.25.0
   Compiling num_enum v0.6.1
   Compiling inout v0.1.3
   Compiling k256 v0.13.1
   Compiling open-fastrlp v0.1.4
   Compiling chrono v0.4.26
   Compiling serde_with_macros v2.3.3
   Compiling codecs-derive v0.1.0 (https://github.com/paradigmxyz/reth.git?rev=aa6f2cb0610fb4fa0926b42cfed7f8ff51e0db8a#aa6f2cb0)
   Compiling ethabi v18.0.0
   Compiling smol_str v0.1.24
   Compiling strum_macros v0.24.3
   Compiling modular-bitfield-impl v0.11.2
   Compiling tracing-attributes v0.1.26
   Compiling futures-macro v0.3.28
   Compiling reth-rlp-derive v0.1.1 (https://github.com/paradigmxyz/reth.git?rev=aa6f2cb0610fb4fa0926b42cfed7f8ff51e0db8a#aa6f2cb0)
   Compiling tracing-core v0.1.31
   Compiling unicode-xid v0.2.4
   Compiling pin-utils v0.1.0
   Compiling hash-db v0.15.2
   Compiling futures-io v0.3.28
   Compiling crc-catalog v2.2.0
   Compiling portable-atomic v1.4.2
   Compiling crc v3.0.1
   Compiling tracing v0.1.37
   Compiling strum v0.24.1
   Compiling triehash v0.8.4
   Compiling ethers-core v2.0.8 (https://github.com/gakonst/ethers-rs#5145992e)
   Compiling reth-rlp v0.1.2 (https://github.com/paradigmxyz/reth.git?rev=aa6f2cb0610fb4fa0926b42cfed7f8ff51e0db8a#aa6f2cb0)
   Compiling modular-bitfield v0.11.2
   Compiling serde_with v2.3.3
   Compiling reth-codecs v0.1.0 (https://github.com/paradigmxyz/reth.git?rev=aa6f2cb0610fb4fa0926b42cfed7f8ff51e0db8a#aa6f2cb0)
   Compiling secp256k1 v0.26.0
   Compiling cipher v0.4.4
   Compiling url v2.4.0
   Compiling sucds v0.5.0
   Compiling pin-project-internal v1.1.3
   Compiling plain_hasher v0.2.3
   Compiling ahash v0.7.6
   Compiling semver v1.0.18
   Compiling hex-literal v0.3.4
   Compiling portable-atomic v0.3.20
   Compiling minimal-lexical v0.2.1
   Compiling nom v7.1.3
   Compiling libloading v0.7.4
   Compiling pin-project v1.1.3
   Compiling enum-ordinalize v3.1.13
   Compiling futures-executor v0.3.28
   Compiling reth-primitives v0.1.0 (https://github.com/paradigmxyz/reth.git?rev=aa6f2cb0610fb4fa0926b42cfed7f8ff51e0db8a#aa6f2cb0)
   Compiling async-trait v0.1.72
   Compiling bindgen v0.61.0
   Compiling metrics v0.20.1
   Compiling snap v1.1.0
   Compiling cexpr v0.6.0
   Compiling educe v0.4.22
   Compiling futures v0.3.28
   Compiling reth-net-common v0.1.0 (https://github.com/paradigmxyz/reth.git?rev=aa6f2cb0610fb4fa0926b42cfed7f8ff51e0db8a#aa6f2cb0)
   Compiling ctr v0.9.2
   Compiling aes v0.8.3
   Compiling tokio-util v0.7.8
   Compiling tokio-stream v0.1.14
   Compiling metrics-macros v0.6.0
   Compiling bitflags v1.3.2
   Compiling lazy_static v1.4.0
   Compiling shlex v1.1.0
   Compiling lazycell v1.3.0
   Compiling rustc-hash v1.1.0
   Compiling peeking_take_while v0.1.2
   Compiling reth-ecies v0.1.0 (https://github.com/paradigmxyz/reth.git?rev=aa6f2cb0610fb4fa0926b42cfed7f8ff51e0db8a#aa6f2cb0)
   Compiling rustc_version v0.4.0
   Compiling heapless v0.7.16
   Compiling beef v0.5.2
   Compiling indexmap v1.9.3
   Compiling jsonrpsee-types v0.16.2
   Compiling reth-eth-wire v0.1.0 (https://github.com/paradigmxyz/reth.git?rev=aa6f2cb0610fb4fa0926b42cfed7f8ff51e0db8a#aa6f2cb0)
   Compiling lru v0.9.0
   Compiling hash32 v0.2.1
   Compiling hashbrown v0.12.3
   Compiling stable_deref_trait v1.2.0
   Compiling reth-network-api v0.1.0 (https://github.com/paradigmxyz/reth.git?rev=aa6f2cb0610fb4fa0926b42cfed7f8ff51e0db8a#aa6f2cb0)
   Compiling reth-rpc-types v0.1.0 (https://github.com/paradigmxyz/reth.git?rev=aa6f2cb0610fb4fa0926b42cfed7f8ff51e0db8a#aa6f2cb0)
   Compiling cobs v0.2.3
   Compiling postcard v1.0.6
   Compiling page_size v0.4.2
   Compiling reth-mdbx-sys v0.12.1-0 (https://github.com/paradigmxyz/reth.git?rev=aa6f2cb0610fb4fa0926b42cfed7f8ff51e0db8a#aa6f2cb0)
   Compiling reth-interfaces v0.1.0 (https://github.com/paradigmxyz/reth.git?rev=aa6f2cb0610fb4fa0926b42cfed7f8ff51e0db8a#aa6f2cb0)
error: failed to run custom build command for `reth-mdbx-sys v0.12.1-0 (https://github.com/paradigmxyz/reth.git?rev=aa6f2cb0610fb4fa0926b42cfed7f8ff51e0db8a#aa6f2cb0)`

Caused by:
  process didn't exit successfully: `/Users/xxx/Desktop/test-rs/target/release/build/reth-mdbx-sys-38d215bf8806b49b/build-script-build` (exit status: 101)
  --- stderr
  thread 'main' panicked at '"MDBX_version_info_struct_(unnamed_at_/Users/xxx/_cargo/git/checkouts/reth-36d3ea1d1152b20c/aa6f2cb/crates/storage/libmdbx-rs/mdbx-sys/libmdbx/mdbx_h_673_3)" is not a valid Ident', /Users/xxx/.cargo/registry/src/index.crates.io-6f17d22bba15001f/proc-macro2-1.0.66/src/fallback.rs:774:9
  note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
warning: build failed, waiting for other jobs to finish...

Ok, so that's the problem. Can you try with this commit 4b0b63766e7f25729be5a8bc614dfdcf17db97c0 in Cargo.toml? If it works with the latest commit, then we can update deps in Silius. Otherwise, this issue can be reported to reth repo.

Compiling silius-bundler v0.1.0 (/Users/weijunyuan/Desktop/orbiter-finance/silius/crates/bundler)
   Compiling silius-uopool v0.1.0 (/Users/weijunyuan/Desktop/orbiter-finance/silius/crates/uopool)
error[E0432]: unresolved import `reth_db::Error`
  --> crates/uopool/src/database/mempool.rs:16:5
   |
16 |     Error, TableType,
   |     ^^^^^ no `Error` in the root
   |
   = help: consider importing one of these items instead:
           anyhow::Error
           ethers::abi::Error
           ethers::prelude::MockResponse::Error
           ethers::prelude::ResponseData::Error
           reth_db::mdbx::Error
           reth_libmdbx::Error
           serde::__private::doc::Error
           serde::__private::fmt::Error
           serde::de::Error
           serde::de::value::Error
           serde::ser::Error
           serde_json::Error
           std::error::Error
           std::fmt::Error
           std::io::Error
           tokio::io::Error
           tokio::time::error::Error
           tracing::log::Level::Error
           tracing::log::LevelFilter::Error
           core::error::Error

Can you try changing the commit hash in your demo empty project? Just to see if building works. If we are going to update the commit hash in the Silius, some changes will have to be made because of the changes in reth crate.

The latest commit is passed. I mean part of the code of silius may need to be changed. Thanks for your help!

@Vid201
Copy link
Member

Vid201 commented Aug 8, 2023

@octavei Hmm, this is related to reth package we are using for database. Can you try please creating empty Rust project and adding this to Cargo.toml to see if project builds:
reth-db = { git = "https://github.com/paradigmxyz/reth.git", rev = "aa6f2cb0610fb4fa0926b42cfed7f8ff51e0db8a" } reth-libmdbx = { git = "https://github.com/paradigmxyz/reth.git", rev = "aa6f2cb0610fb4fa0926b42cfed7f8ff51e0db8a" }
And then building the whole thing.

code:

[package]
name = "test-rs"
version = "0.1.0"
edition = "2021"

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[dependencies]
reth-db = { git = "https://github.com/paradigmxyz/reth.git", rev = "aa6f2cb0610fb4fa0926b42cfed7f8ff51e0db8a" }
reth-libmdbx = { git = "https://github.com/paradigmxyz/reth.git", rev = "aa6f2cb0610fb4fa0926b42cfed7f8ff51e0db8a" }

command:

cargo build --release

err info:

 test-rs git:(master) ✗ 
➜  test-rs git:(master) ✗ cargo build --release 
   Compiling proc-macro2 v1.0.66
   Compiling unicode-ident v1.0.11
   Compiling libc v0.2.147
   Compiling version_check v0.9.4
   Compiling cfg-if v1.0.0
   Compiling syn v1.0.109
   Compiling serde v1.0.183
   Compiling autocfg v1.1.0
   Compiling typenum v1.16.0
   Compiling zeroize v1.6.0
   Compiling equivalent v1.0.1
   Compiling generic-array v0.14.7
   Compiling hashbrown v0.14.0
   Compiling toml_datetime v0.6.3
   Compiling winnow v0.5.4
   Compiling once_cell v1.18.0
   Compiling subtle v2.5.0
   Compiling const-oid v0.9.4
   Compiling indexmap v2.0.0
   Compiling byteorder v1.4.3
   Compiling crunchy v0.2.2
   Compiling quote v1.0.32
   Compiling syn v2.0.28
   Compiling getrandom v0.2.10
   Compiling rustc-hex v2.1.0
   Compiling ppv-lite86 v0.2.17
   Compiling rand_core v0.6.4
   Compiling rand_chacha v0.3.1
   Compiling toml_edit v0.19.14
   Compiling crypto-common v0.1.6
   Compiling block-buffer v0.10.4
   Compiling arrayvec v0.7.4
   Compiling digest v0.10.7
   Compiling byte-slice-cast v1.2.2
   Compiling static_assertions v1.1.0
   Compiling convert_case v0.4.0
   Compiling rand v0.8.5
   Compiling cpufeatures v0.2.9
   Compiling memchr v2.5.0
   Compiling proc-macro-error-attr v1.0.4
   Compiling cc v1.0.82
   Compiling fixed-hash v0.8.0
   Compiling proc-macro-crate v1.3.1
   Compiling proc-macro-error v1.0.4
   Compiling tiny-keccak v2.0.2
   Compiling ahash v0.8.3
   Compiling pin-project-lite v0.2.11
   Compiling rustversion v1.0.14
   Compiling keccak v0.1.4
   Compiling der v0.7.8
   Compiling lock_api v0.4.10
   Compiling thiserror v1.0.44
   Compiling parking_lot_core v0.9.8
   Compiling radium v0.7.0
   Compiling bytes v1.4.0
   Compiling futures-core v0.3.28
   Compiling sha3 v0.10.8
   Compiling ff v0.13.0
   Compiling smallvec v1.11.0
   Compiling strsim v0.10.0
   Compiling base16ct v0.2.0
   Compiling fnv v1.0.7
   Compiling serde_json v1.0.104
   Compiling scopeguard v1.2.0
   Compiling ident_case v1.0.1
   Compiling tap v1.0.1
   Compiling heck v0.4.1
   Compiling wyz v0.5.1
   Compiling darling_core v0.20.3
   Compiling sec1 v0.7.3
   Compiling group v0.13.0
   Compiling serde_derive v1.0.183
   Compiling thiserror-impl v1.0.44
   Compiling aho-corasick v1.0.2
   Compiling hmac v0.12.1
   Compiling crypto-bigint v0.5.2
   Compiling impl-trait-for-tuples v0.2.2
   Compiling parity-scale-codec-derive v3.6.4
   Compiling rlp-derive v0.1.0
   Compiling derive_more v0.99.17
   Compiling scale-info-derive v2.9.0
   Compiling auto_impl v1.1.0
   Compiling num-traits v0.2.16
   Compiling ryu v1.0.15
   Compiling anyhow v1.0.72
   Compiling ruint-macro v1.1.0
   Compiling regex-syntax v0.7.4
   Compiling rustix v0.38.7
   Compiling tinyvec_macros v0.1.1
   Compiling funty v2.0.0
   Compiling itoa v1.0.9
   Compiling tinyvec v1.6.0
   Compiling darling_macro v0.20.3
   Compiling elliptic-curve v0.13.5
   Compiling rfc6979 v0.4.0
   Compiling parking_lot v0.12.1
   Compiling enumn v0.1.11
   Compiling spki v0.7.2
   Compiling secp256k1-sys v0.8.1
   Compiling regex-automata v0.3.6
   Compiling signature v2.1.0
   Compiling errno v0.3.2
   Compiling num-integer v0.1.45
   Compiling slab v0.4.8
   Compiling tokio v1.29.1
   Compiling unicode-segmentation v1.10.1
   Compiling futures-channel v0.3.28
   Compiling hex-literal v0.4.1
   Compiling futures-sink v0.3.28
   Compiling impl-serde v0.4.0
   Compiling hex v0.4.3
   Compiling uint v0.9.5
   Compiling hashbrown v0.13.2
   Compiling parity-scale-codec v3.6.4
   Compiling rlp v0.5.2
   Compiling bitvec v1.0.1
   Compiling impl-rlp v0.3.0
   Compiling scale-info v2.9.0
   Compiling impl-codec v0.6.0
   Compiling futures-task v0.3.28
   Compiling bitflags v2.3.3
   Compiling primitive-types v0.12.1
   Compiling ethbloom v0.13.0
   Compiling regex v1.9.3
   Compiling ethereum-types v0.14.1
   Compiling ruint v1.10.1
   Compiling convert_case v0.6.0
   Compiling ecdsa v0.16.8
   Compiling darling v0.20.3
   Compiling unicode-normalization v0.1.22
   Compiling revm-primitives v1.1.2
   Compiling open-fastrlp-derive v0.1.1
   Compiling strum_macros v0.25.2
   Compiling tokio-macros v2.1.0
   Compiling num_enum_derive v0.6.1
   Compiling sha2 v0.10.7
   Compiling block-padding v0.3.3
   Compiling socket2 v0.4.9
   Compiling mio v0.8.8
   Compiling signal-hook-registry v1.4.1
   Compiling num_cpus v1.16.0
   Compiling num-bigint v0.4.3
   Compiling futures-util v0.3.28
   Compiling percent-encoding v2.3.0
   Compiling glob v0.3.1
   Compiling fastrand v2.0.0
   Compiling unicode-bidi v0.3.13
   Compiling clang-sys v1.6.1
   Compiling idna v0.4.0
   Compiling tempfile v3.7.1
   Compiling form_urlencoded v1.2.0
   Compiling strum v0.25.0
   Compiling num_enum v0.6.1
   Compiling inout v0.1.3
   Compiling k256 v0.13.1
   Compiling open-fastrlp v0.1.4
   Compiling chrono v0.4.26
   Compiling serde_with_macros v2.3.3
   Compiling codecs-derive v0.1.0 (https://github.com/paradigmxyz/reth.git?rev=aa6f2cb0610fb4fa0926b42cfed7f8ff51e0db8a#aa6f2cb0)
   Compiling ethabi v18.0.0
   Compiling smol_str v0.1.24
   Compiling strum_macros v0.24.3
   Compiling modular-bitfield-impl v0.11.2
   Compiling tracing-attributes v0.1.26
   Compiling futures-macro v0.3.28
   Compiling reth-rlp-derive v0.1.1 (https://github.com/paradigmxyz/reth.git?rev=aa6f2cb0610fb4fa0926b42cfed7f8ff51e0db8a#aa6f2cb0)
   Compiling tracing-core v0.1.31
   Compiling unicode-xid v0.2.4
   Compiling pin-utils v0.1.0
   Compiling hash-db v0.15.2
   Compiling futures-io v0.3.28
   Compiling crc-catalog v2.2.0
   Compiling portable-atomic v1.4.2
   Compiling crc v3.0.1
   Compiling tracing v0.1.37
   Compiling strum v0.24.1
   Compiling triehash v0.8.4
   Compiling ethers-core v2.0.8 (https://github.com/gakonst/ethers-rs#5145992e)
   Compiling reth-rlp v0.1.2 (https://github.com/paradigmxyz/reth.git?rev=aa6f2cb0610fb4fa0926b42cfed7f8ff51e0db8a#aa6f2cb0)
   Compiling modular-bitfield v0.11.2
   Compiling serde_with v2.3.3
   Compiling reth-codecs v0.1.0 (https://github.com/paradigmxyz/reth.git?rev=aa6f2cb0610fb4fa0926b42cfed7f8ff51e0db8a#aa6f2cb0)
   Compiling secp256k1 v0.26.0
   Compiling cipher v0.4.4
   Compiling url v2.4.0
   Compiling sucds v0.5.0
   Compiling pin-project-internal v1.1.3
   Compiling plain_hasher v0.2.3
   Compiling ahash v0.7.6
   Compiling semver v1.0.18
   Compiling hex-literal v0.3.4
   Compiling portable-atomic v0.3.20
   Compiling minimal-lexical v0.2.1
   Compiling nom v7.1.3
   Compiling libloading v0.7.4
   Compiling pin-project v1.1.3
   Compiling enum-ordinalize v3.1.13
   Compiling futures-executor v0.3.28
   Compiling reth-primitives v0.1.0 (https://github.com/paradigmxyz/reth.git?rev=aa6f2cb0610fb4fa0926b42cfed7f8ff51e0db8a#aa6f2cb0)
   Compiling async-trait v0.1.72
   Compiling bindgen v0.61.0
   Compiling metrics v0.20.1
   Compiling snap v1.1.0
   Compiling cexpr v0.6.0
   Compiling educe v0.4.22
   Compiling futures v0.3.28
   Compiling reth-net-common v0.1.0 (https://github.com/paradigmxyz/reth.git?rev=aa6f2cb0610fb4fa0926b42cfed7f8ff51e0db8a#aa6f2cb0)
   Compiling ctr v0.9.2
   Compiling aes v0.8.3
   Compiling tokio-util v0.7.8
   Compiling tokio-stream v0.1.14
   Compiling metrics-macros v0.6.0
   Compiling bitflags v1.3.2
   Compiling lazy_static v1.4.0
   Compiling shlex v1.1.0
   Compiling lazycell v1.3.0
   Compiling rustc-hash v1.1.0
   Compiling peeking_take_while v0.1.2
   Compiling reth-ecies v0.1.0 (https://github.com/paradigmxyz/reth.git?rev=aa6f2cb0610fb4fa0926b42cfed7f8ff51e0db8a#aa6f2cb0)
   Compiling rustc_version v0.4.0
   Compiling heapless v0.7.16
   Compiling beef v0.5.2
   Compiling indexmap v1.9.3
   Compiling jsonrpsee-types v0.16.2
   Compiling reth-eth-wire v0.1.0 (https://github.com/paradigmxyz/reth.git?rev=aa6f2cb0610fb4fa0926b42cfed7f8ff51e0db8a#aa6f2cb0)
   Compiling lru v0.9.0
   Compiling hash32 v0.2.1
   Compiling hashbrown v0.12.3
   Compiling stable_deref_trait v1.2.0
   Compiling reth-network-api v0.1.0 (https://github.com/paradigmxyz/reth.git?rev=aa6f2cb0610fb4fa0926b42cfed7f8ff51e0db8a#aa6f2cb0)
   Compiling reth-rpc-types v0.1.0 (https://github.com/paradigmxyz/reth.git?rev=aa6f2cb0610fb4fa0926b42cfed7f8ff51e0db8a#aa6f2cb0)
   Compiling cobs v0.2.3
   Compiling postcard v1.0.6
   Compiling page_size v0.4.2
   Compiling reth-mdbx-sys v0.12.1-0 (https://github.com/paradigmxyz/reth.git?rev=aa6f2cb0610fb4fa0926b42cfed7f8ff51e0db8a#aa6f2cb0)
   Compiling reth-interfaces v0.1.0 (https://github.com/paradigmxyz/reth.git?rev=aa6f2cb0610fb4fa0926b42cfed7f8ff51e0db8a#aa6f2cb0)
error: failed to run custom build command for `reth-mdbx-sys v0.12.1-0 (https://github.com/paradigmxyz/reth.git?rev=aa6f2cb0610fb4fa0926b42cfed7f8ff51e0db8a#aa6f2cb0)`

Caused by:
  process didn't exit successfully: `/Users/xxx/Desktop/test-rs/target/release/build/reth-mdbx-sys-38d215bf8806b49b/build-script-build` (exit status: 101)
  --- stderr
  thread 'main' panicked at '"MDBX_version_info_struct_(unnamed_at_/Users/xxx/_cargo/git/checkouts/reth-36d3ea1d1152b20c/aa6f2cb/crates/storage/libmdbx-rs/mdbx-sys/libmdbx/mdbx_h_673_3)" is not a valid Ident', /Users/xxx/.cargo/registry/src/index.crates.io-6f17d22bba15001f/proc-macro2-1.0.66/src/fallback.rs:774:9
  note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
warning: build failed, waiting for other jobs to finish...

Ok, so that's the problem. Can you try with this commit 4b0b63766e7f25729be5a8bc614dfdcf17db97c0 in Cargo.toml? If it works with the latest commit, then we can update deps in Silius. Otherwise, this issue can be reported to reth repo.

Compiling silius-bundler v0.1.0 (/Users/weijunyuan/Desktop/orbiter-finance/silius/crates/bundler)
   Compiling silius-uopool v0.1.0 (/Users/weijunyuan/Desktop/orbiter-finance/silius/crates/uopool)
error[E0432]: unresolved import `reth_db::Error`
  --> crates/uopool/src/database/mempool.rs:16:5
   |
16 |     Error, TableType,
   |     ^^^^^ no `Error` in the root
   |
   = help: consider importing one of these items instead:
           anyhow::Error
           ethers::abi::Error
           ethers::prelude::MockResponse::Error
           ethers::prelude::ResponseData::Error
           reth_db::mdbx::Error
           reth_libmdbx::Error
           serde::__private::doc::Error
           serde::__private::fmt::Error
           serde::de::Error
           serde::de::value::Error
           serde::ser::Error
           serde_json::Error
           std::error::Error
           std::fmt::Error
           std::io::Error
           tokio::io::Error
           tokio::time::error::Error
           tracing::log::Level::Error
           tracing::log::LevelFilter::Error
           core::error::Error

Can you try changing the commit hash in your demo empty project? Just to see if building works. If we are going to update the commit hash in the Silius, some changes will have to be made because of the changes in reth crate.

The latest commit is passed. I mean part of the code of silius may need to be changed. Thanks for your help!

Thanks for reporting, I will update libs in the next PR.

@Vid201 Vid201 self-assigned this Aug 8, 2023
@Vid201 Vid201 added the T-bug Type: Something isn't working label Aug 8, 2023
@Vid201 Vid201 assigned zsluedem and unassigned Vid201 Aug 17, 2023
@zsluedem zsluedem mentioned this issue Aug 17, 2023
@Vid201 Vid201 added A-mempool Area: User operation mempool on hold On hold due to external dependencies. labels Dec 11, 2023
@anujmax
Copy link

anujmax commented Mar 26, 2024

hi @Vid201 @octavei ,

I am facing similar issue, were you able to resolve this?

@Vid201
Copy link
Member

Vid201 commented Mar 26, 2024

hi @Vid201 @octavei ,

I am facing similar issue, were you able to resolve this?

This is a problem related to Reth, we need to update Reth db dependency but cannot do it because of this: paradigmxyz/reth#4546

Waiting for them to fix this

I personally don't have issues building on my PC, maybe there is some workaround for youo. What arch do you have - apple?

@anujmax
Copy link

anujmax commented Mar 26, 2024

yes I have intel apple, I will try and find a workaround.

@Vid201
Copy link
Member

Vid201 commented Apr 2, 2024

yes I have intel apple, I will try and find a workaround.

One of the things you can try is to disable mdbx in the bin: https://github.com/silius-rs/silius/blob/main/bin/silius/Cargo.toml#L19

You can then use memory mempool and reputation. Let me know how that goes!

@Vid201 Vid201 assigned Vid201 and unassigned zsluedem Apr 23, 2024
@RomarQ
Copy link

RomarQ commented Aug 7, 2024

yes I have intel apple, I will try and find a workaround.

One of the things you can try is to disable mdbx in the bin: https://github.com/silius-rs/silius/blob/main/bin/silius/Cargo.toml#L19

You can then use memory mempool and reputation. Let me know how that goes!

Any update regarding this? The suggestion above will not work currently, the bin expects some exports that will not exist without mdbx feature enabled.

@johnson86tw
Copy link

johnson86tw commented Nov 1, 2024

I'm facing the similar issue with reth-mdbx-sys when running cargo run --release -- create-wallet --output-path ${HOME}/.silius --chain-id 17000

...

   Compiling postcard v1.0.8
   Compiling radix_trie v0.2.1
   Compiling libp2p-gossipsub v0.46.1
   Compiling prost-build v0.12.6
error: failed to run custom build command for `reth-mdbx-sys v0.12.1-0 (https://github.com/paradigmxyz/reth.git?rev=aa6f2cb0610fb4fa0926b42cfed7f8ff51e0db8a#aa6f2cb0)`

Caused by:
  process didn't exit successfully: `/home/johnson/silius/target/release/build/reth-mdbx-sys-e5c46f177602b6fb/build-script-build` (exit status: 101)
  --- stderr
  thread 'main' panicked at /home/johnson/.cargo/registry/src/index.crates.io-6f17d22bba15001f/bindgen-0.61.0/ir/context.rs:859:9:
  "MDBX_version_info_struct_(unnamed_at_/home/johnson/_cargo/git/checkouts/reth-36d3ea1d1152b20c/aa6f2cb/crates/storage/libmdbx-rs/mdbx-sys/libmdbx/mdbx_h_673_3)" is not a valid Ident
  stack backtrace:
     0:     0x60d56f1f63e5 - std::backtrace_rs::backtrace::libunwind::trace::h649ab3318d3445c5
                                 at /rustc/eeb90cda1969383f56a2637cbd3037bdf598841c/library/std/src/../../backtrace/src/backtrace/libunwind.rs:116:5
     1:     0x60d56f1f63e5 - std::backtrace_rs::backtrace::trace_unsynchronized::hf4bb60c3387150c3
                                 at /rustc/eeb90cda1969383f56a2637cbd3037bdf598841c/library/std/src/../../backtrace/src/backtrace/mod.rs:66:5
     2:     0x60d56f1f63e5 - std::sys::backtrace::_print_fmt::hd9186c800e44bd00
                                 at /rustc/eeb90cda1969383f56a2637cbd3037bdf598841c/library/std/src/sys/backtrace.rs:65:5
     3:     0x60d56f1f63e5 - <std::sys::backtrace::BacktraceLock::print::DisplayBacktrace as core::fmt::Display>::fmt::h1b9dad2a88e955ff
                                 at /rustc/eeb90cda1969383f56a2637cbd3037bdf598841c/library/std/src/sys/backtrace.rs:40:26
     4:     0x60d56f21eb2b - core::fmt::rt::Argument::fmt::h351a7824f737a6a0
                                 at /rustc/eeb90cda1969383f56a2637cbd3037bdf598841c/library/core/src/fmt/rt.rs:173:76
     5:     0x60d56f21eb2b - core::fmt::write::h4b5a1270214bc4a7
                                 at /rustc/eeb90cda1969383f56a2637cbd3037bdf598841c/library/core/src/fmt/mod.rs:1182:21
     6:     0x60d56f1f327f - std::io::Write::write_fmt::hd04af345a50c312d
                                 at /rustc/eeb90cda1969383f56a2637cbd3037bdf598841c/library/std/src/io/mod.rs:1827:15
     7:     0x60d56f1f7751 - std::sys::backtrace::BacktraceLock::print::h68d41b51481bce5c
                                 at /rustc/eeb90cda1969383f56a2637cbd3037bdf598841c/library/std/src/sys/backtrace.rs:43:9
     8:     0x60d56f1f7751 - std::panicking::default_hook::{{closure}}::h96ab15e9936be7ed
                                 at /rustc/eeb90cda1969383f56a2637cbd3037bdf598841c/library/std/src/panicking.rs:269:22
     9:     0x60d56f1f742c - std::panicking::default_hook::h3cacb9c27561ad33
                                 at /rustc/eeb90cda1969383f56a2637cbd3037bdf598841c/library/std/src/panicking.rs:296:9
    10:     0x60d56f1f7db1 - std::panicking::rust_panic_with_hook::hfe205f6954b2c97b
                                 at /rustc/eeb90cda1969383f56a2637cbd3037bdf598841c/library/std/src/panicking.rs:800:13
    11:     0x60d56f1f7c17 - std::panicking::begin_panic_handler::{{closure}}::h6cb44b3a50f28c44
                                 at /rustc/eeb90cda1969383f56a2637cbd3037bdf598841c/library/std/src/panicking.rs:674:13
    12:     0x60d56f1f68a9 - std::sys::backtrace::__rust_end_short_backtrace::hf1c1f2a92799bb0e
                                 at /rustc/eeb90cda1969383f56a2637cbd3037bdf598841c/library/std/src/sys/backtrace.rs:168:18
    13:     0x60d56f1f78a4 - rust_begin_unwind
                                 at /rustc/eeb90cda1969383f56a2637cbd3037bdf598841c/library/std/src/panicking.rs:665:5
    14:     0x60d56ea69d43 - core::panicking::panic_fmt::h3d8fc78294164da7
                                 at /rustc/eeb90cda1969383f56a2637cbd3037bdf598841c/library/core/src/panicking.rs:74:14
    15:     0x60d56f1a4ea0 - proc_macro2::fallback::validate_ident::h328ebbf602fece38
                                 at /home/johnson/.cargo/registry/src/index.crates.io-6f17d22bba15001f/proc-macro2-1.0.82/src/fallback.rs:860:9
    16:     0x60d56f1a4bb2 - proc_macro2::fallback::Ident::new_checked::h007b043430b073fc
                                 at /home/johnson/.cargo/registry/src/index.crates.io-6f17d22bba15001f/proc-macro2-1.0.82/src/fallback.rs:792:9
    17:     0x60d56f1a9349 - proc_macro2::imp::Ident::new_checked::h1179d54dd39a67d7
                                 at /home/johnson/.cargo/registry/src/index.crates.io-6f17d22bba15001f/proc-macro2-1.0.82/src/wrapper.rs:676:50
    18:     0x60d56f1b9b25 - proc_macro2::Ident::new::h0036b34d4b57cd31
                                 at /home/johnson/.cargo/registry/src/index.crates.io-6f17d22bba15001f/proc-macro2-1.0.82/src/lib.rs:985:21
    19:     0x60d56eb4cf79 - bindgen::ir::context::BindgenContext::rust_ident_raw::hbd8f763fbff4224f
                                 at /home/johnson/.cargo/registry/src/index.crates.io-6f17d22bba15001f/bindgen-0.61.0/ir/context.rs:859:9
    20:     0x60d56eb4cca8 - bindgen::ir::context::BindgenContext::rust_ident::ha754ee7a0e1c5e0d
                                 at /home/johnson/.cargo/registry/src/index.crates.io-6f17d22bba15001f/bindgen-0.61.0/ir/context.rs:851:9
    21:     0x60d56ec2149c - <bindgen::ir::comp::CompInfo as bindgen::codegen::CodeGenerator>::codegen::h86199c4966fdfca3
                                 at /home/johnson/.cargo/registry/src/index.crates.io-6f17d22bba15001f/bindgen-0.61.0/codegen/mod.rs:1827:31
    22:     0x60d56ebdb071 - <bindgen::ir::ty::Type as bindgen::codegen::CodeGenerator>::codegen::he616c5749f1fe7bd
                                 at /home/johnson/.cargo/registry/src/index.crates.io-6f17d22bba15001f/bindgen-0.61.0/codegen/mod.rs:815:39
    23:     0x60d56eb2525e - <bindgen::ir::item::Item as bindgen::codegen::CodeGenerator>::codegen::hdce5a5fb1454e0d8
                                 at /home/johnson/.cargo/registry/src/index.crates.io-6f17d22bba15001f/bindgen-0.61.0/codegen/mod.rs:501:17
    24:     0x60d56ec28837 - <bindgen::ir::comp::CompInfo as bindgen::codegen::CodeGenerator>::codegen::h86199c4966fdfca3
                                 at /home/johnson/.cargo/registry/src/index.crates.io-6f17d22bba15001f/bindgen-0.61.0/codegen/mod.rs:2156:13
    25:     0x60d56ebdb071 - <bindgen::ir::ty::Type as bindgen::codegen::CodeGenerator>::codegen::he616c5749f1fe7bd
                                 at /home/johnson/.cargo/registry/src/index.crates.io-6f17d22bba15001f/bindgen-0.61.0/codegen/mod.rs:815:39
    26:     0x60d56eb2525e - <bindgen::ir::item::Item as bindgen::codegen::CodeGenerator>::codegen::hdce5a5fb1454e0d8
                                 at /home/johnson/.cargo/registry/src/index.crates.io-6f17d22bba15001f/bindgen-0.61.0/codegen/mod.rs:501:17
    27:     0x60d56ebb28a8 - <bindgen::ir::module::Module as bindgen::codegen::CodeGenerator>::codegen::{{closure}}::h27c4276b5e0da364
                                 at /home/johnson/.cargo/registry/src/index.crates.io-6f17d22bba15001f/bindgen-0.61.0/codegen/mod.rs:524:21
    28:     0x60d56ebd855f - <bindgen::ir::module::Module as bindgen::codegen::CodeGenerator>::codegen::ha70a2cb949053eee
                                 at /home/johnson/.cargo/registry/src/index.crates.io-6f17d22bba15001f/bindgen-0.61.0/codegen/mod.rs:554:13
    29:     0x60d56eb2523b - <bindgen::ir::item::Item as bindgen::codegen::CodeGenerator>::codegen::hdce5a5fb1454e0d8
                                 at /home/johnson/.cargo/registry/src/index.crates.io-6f17d22bba15001f/bindgen-0.61.0/codegen/mod.rs:492:17
    30:     0x60d56ebc2767 - bindgen::codegen::codegen::{{closure}}::h2d7e4965a81ae90b
                                 at /home/johnson/.cargo/registry/src/index.crates.io-6f17d22bba15001f/bindgen-0.61.0/codegen/mod.rs:4498:9
    31:     0x60d56eb4f748 - bindgen::ir::context::BindgenContext::gen::h0b00c6a4adba6286
                                 at /home/johnson/.cargo/registry/src/index.crates.io-6f17d22bba15001f/bindgen-0.61.0/ir/context.rs:1174:19
    32:     0x60d56ebc1e9d - bindgen::codegen::codegen::h89bf44d07a11af34
                                 at /home/johnson/.cargo/registry/src/index.crates.io-6f17d22bba15001f/bindgen-0.61.0/codegen/mod.rs:4462:5
    33:     0x60d56ec4f6b1 - bindgen::Bindings::generate::hc94f77bdf7be076a
                                 at /home/johnson/.cargo/registry/src/index.crates.io-6f17d22bba15001f/bindgen-0.61.0/lib.rs:2545:43
    34:     0x60d56ec4ccda - bindgen::Builder::generate::hbac116e7ea555174
                                 at /home/johnson/.cargo/registry/src/index.crates.io-6f17d22bba15001f/bindgen-0.61.0/lib.rs:1580:9
    35:     0x60d56ea6e47e - build_script_build::main::hbe37cf02dbda74f7
                                 at /home/johnson/.cargo/git/checkouts/reth-36d3ea1d1152b20c/aa6f2cb/crates/storage/libmdbx-rs/mdbx-sys/build.rs:57:20
    36:     0x60d56ea6b1eb - core::ops::function::FnOnce::call_once::ha0b443c7d79912e1
                                 at /rustc/eeb90cda1969383f56a2637cbd3037bdf598841c/library/core/src/ops/function.rs:250:5
    37:     0x60d56ea6b0ee - std::sys::backtrace::__rust_begin_short_backtrace::h8e88c46d39d108bb
                                 at /rustc/eeb90cda1969383f56a2637cbd3037bdf598841c/library/std/src/sys/backtrace.rs:152:18
    38:     0x60d56ea6b051 - std::rt::lang_start::{{closure}}::ha5494a53b7d7b0e3
                                 at /rustc/eeb90cda1969383f56a2637cbd3037bdf598841c/library/std/src/rt.rs:162:18
    39:     0x60d56f1eea20 - core::ops::function::impls::<impl core::ops::function::FnOnce<A> for &F>::call_once::h2feec6363bd28ad6
                                 at /rustc/eeb90cda1969383f56a2637cbd3037bdf598841c/library/core/src/ops/function.rs:284:13
    40:     0x60d56f1eea20 - std::panicking::try::do_call::h71b24ad3a8e797d5
                                 at /rustc/eeb90cda1969383f56a2637cbd3037bdf598841c/library/std/src/panicking.rs:557:40
    41:     0x60d56f1eea20 - std::panicking::try::h8412d1bfb4bcbcc1
                                 at /rustc/eeb90cda1969383f56a2637cbd3037bdf598841c/library/std/src/panicking.rs:521:19
    42:     0x60d56f1eea20 - std::panic::catch_unwind::h2053d3ee5bd8db53
                                 at /rustc/eeb90cda1969383f56a2637cbd3037bdf598841c/library/std/src/panic.rs:350:14
    43:     0x60d56f1eea20 - std::rt::lang_start_internal::{{closure}}::h82eb98fe4f8e75b8
                                 at /rustc/eeb90cda1969383f56a2637cbd3037bdf598841c/library/std/src/rt.rs:141:48
    44:     0x60d56f1eea20 - std::panicking::try::do_call::h793dba66a0bbd3de
                                 at /rustc/eeb90cda1969383f56a2637cbd3037bdf598841c/library/std/src/panicking.rs:557:40
    45:     0x60d56f1eea20 - std::panicking::try::he09b629b3ba06846
                                 at /rustc/eeb90cda1969383f56a2637cbd3037bdf598841c/library/std/src/panicking.rs:521:19
    46:     0x60d56f1eea20 - std::panic::catch_unwind::h7964c913fc871155
                                 at /rustc/eeb90cda1969383f56a2637cbd3037bdf598841c/library/std/src/panic.rs:350:14
    47:     0x60d56f1eea20 - std::rt::lang_start_internal::h5e7c81cecd7f0954
                                 at /rustc/eeb90cda1969383f56a2637cbd3037bdf598841c/library/std/src/rt.rs:141:20
    48:     0x60d56ea6b02a - std::rt::lang_start::h8dce53fcdaf9f4e2
                                 at /rustc/eeb90cda1969383f56a2637cbd3037bdf598841c/library/std/src/rt.rs:161:17
    49:     0x60d56ea6ec0e - main
    50:     0x70b9ebe2a1ca - <unknown>
    51:     0x70b9ebe2a28b - __libc_start_main
    52:     0x60d56ea6a575 - _start
    53:                0x0 - <unknown>
warning: build failed, waiting for other jobs to finish...

I'm running on GCP VM. My system info:

johnson@aa:~/silius$ rustup show
Default host: x86_64-unknown-linux-gnu
rustup home:  /home/johnson/.rustup

installed toolchains
--------------------

stable-x86_64-unknown-linux-gnu (default)
1.81.0-x86_64-unknown-linux-gnu

active toolchain
----------------

1.81.0-x86_64-unknown-linux-gnu (overridden by '/home/johnson/silius/rust-toolchain.toml')
rustc 1.81.0 (eeb90cda1 2024-09-04)
No LSB modules are available.
Distributor ID:	Ubuntu
Description:	Ubuntu 24.04.1 LTS
Release:	24.04
Codename:	noble
gcc (Ubuntu 13.2.0-23ubuntu4) 13.2.0
Copyright (C) 2023 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

Ubuntu clang version 18.1.3 (1ubuntu1)
Target: x86_64-pc-linux-gnu
Thread model: posix
InstalledDir: /usr/bin
18.1.3

Reference

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-mempool Area: User operation mempool on hold On hold due to external dependencies. T-bug Type: Something isn't working
Projects
None yet
Development

No branches or pull requests

6 participants