Failure to build static musl package with aws-lc-sys dependencies #840
Replies: 7 comments 5 replies
-
|
This dependency is required by default for rustls, though it can be disabled and replaced by the |
Beta Was this translation helpful? Give feedback.
-
|
I don't know enough about Seems like the build is failing due to |
Beta Was this translation helpful? Give feedback.
-
|
According to https://crates.io/crates/aws-lc-sys it does support musl, and passing AWS_LC_SYS_STATIC=1 to the environment doesn't seem to work either as described in https://github.com/aws/aws-lc-rs/blob/main/book/src/resources.md . |
Beta Was this translation helpful? Give feedback.
-
|
After adding gcc to nativeBuildInputs, it compiled successfully |
Beta Was this translation helpful? Give feedback.
-
|
I tried to put some musl from musl/cross/static packages and got symbols mismatch. so I use crave with from toml which has musl target, so seems need to find out how to access that musl, like |
Beta Was this translation helpful? Give feedback.
-
|
seems like it is aws-lc-sys issues and was fixed in recent packages aws/aws-lc-rs#818 |
Beta Was this translation helpful? Give feedback.
-
|
worked for me update to latest cc and aws-lc crates. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Describe the bug
Building a static command with aws-lc-sys fails with the following error:
cannot find -lc: No such file or directoryReproduction
In the examples/cross-musl/Cargo.toml, add:
Then run the following commands:
Beta Was this translation helpful? Give feedback.
All reactions