Closed xJonathanLEI closed 3 years ago
Might be an upstream rustc issue, see https://github.com/rust-lang/rust/issues/56935 and https://github.com/rust-lang/rust/issues/85386
Thank for the quick reply! Taking a look at the referenced issues now.
Strangely enough, adding the following to my Cargo.toml
solves the issue.
openssl = { version = "0.10.34", features = ["vendored"] }
Turns out it's related to OpenSSL.
Platform
Linux 65fe86937035 5.4.0-73-generic #82-Ubuntu SMP Wed Apr 14 17:39:42 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux`
Description
I'm trying to cross-compile a Rust application that depends on ethers-rs with the help of
rust-musl-cross
. However, compilation fails and after some debugging, I found ethers-rs to be the one causing the error.I'm not opening this issue on ethers-rs as that library can be compiled outside
rust-musl-cross
without issues.Steps to Reproduce
Create a
Dockerfile
anywhere with the following content:Run:
Expected Result
Compilation succeeds.
Actual Result
Compilation fails with: