-
Notifications
You must be signed in to change notification settings - Fork 39
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
Comments
|
I'm not quite sure what is causing this err. Because I was able to compile and pass it a few days ago. |
@octavei Hmm, this is related to
And then building the whole thing. |
code:
command:
err info:
|
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. |
|
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. |
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? |
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 |
I'm facing the similar issue with ...
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 |
env:
Mac M1
stable-aarch64-apple-darwin (default) (override)
nightly-2023-01-28-aarch64-apple-darwin
nightly-aarch64-apple-darwin
cargo build --release
➜ 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 backtracewarning: build failed, waiting for other jobs to finish...
The text was updated successfully, but these errors were encountered: