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

Fails to build on linux-musl-aarch64 #2022

Closed
michalszmidt opened this issue Aug 26, 2023 · 3 comments
Closed

Fails to build on linux-musl-aarch64 #2022

michalszmidt opened this issue Aug 26, 2023 · 3 comments

Comments

@michalszmidt
Copy link

There is another thread of this issue here: rust-lang/rustup#3324
But it seems that those builds fails only with openssl as a dependency.

I've setup a toy-repo with CirrusCI aarch64 runners on Alpine.

there are 3 configurations

  1. FAILS Explicitly selecting openssl: build log
  2. FAILS Bindings-over system tls: build log
  3. PASSES Rustls: build log

App does simple dns-over-tls query to example.com

build with cargo build --release --verbose
alpine latest stable
rust latest stable from rustup

Thanks in advance!

@michalszmidt
Copy link
Author

I fetched rust from alpine repo and compilation passed.
See those builds

So what we know is:

  • Rust fetched from rustup on musl aarch64 will fail with openssl dependency
  • Rust fetched from rustup on musl aarch64 without openssl dependency will pass
  • Rust fetched from alpine with openssl dependency will pass
  • glibc and amd64 combinations will pass

@sfackler
Copy link
Owner

rust-lang/rust#89626

@michalszmidt
Copy link
Author

I confirm that adding below to cargo.toml works for openssl and native-tls options
build logs

[target.aarch64-unknown-linux-musl]
rustflags = ["-C", "-mno-outline-atomics"]

I suppose you didn't apply it for some reason, so I close this issue.
Maybe worth mentioning in wiki?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants