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 fail: aarch64-musl #209

Open
DirectorX opened this issue Jan 23, 2021 · 3 comments
Open

Build fail: aarch64-musl #209

DirectorX opened this issue Jan 23, 2021 · 3 comments

Comments

@DirectorX
Copy link

error[E0425]: cannot find value `MAP_32BIT` in crate `libc`

https://github.com/void-linux/void-packages/runs/1754525587?check_suite_focus=true

@Luminarys
Copy link
Owner

Looks like an issue in nix, I'll take a look

@DirectorX
Copy link
Author

Thanks, for now I’ve disabled the build for aarch64-musl

@n8henrie
Copy link

n8henrie commented Mar 6, 2023

Current master fails on aarch64-unknown-linux-musl due to dependency on https://github.com/andrewjstone/amy==0.10.0 (latest), which depends on nix==0.10.0. Looks like this was fixed in nix==0.12; simply patching amy to update to 0.12 allows synapse to compile on aarch64-unknown-linux-musl.

I've submitted a PR to amy, but given that the last commit was in 2018 I'm not sure if it will be merged in a timely fashion or at all. If merged I'll happily make a PR here.

In the meantime, anybody in a rush can patch with my fork (whose only change is to update nix as described)

$ cargo build --all \
    --target aarch64-unknown-linux-musl \
    --config 'target.aarch64-unknown-linux-musl.linker="rust-lld"' \
    --config 'patch.crates-io.amy.git = "https://github.com/n8henrie/amy"' \
    --config 'patch.crates-io.amy.branch = "patch-1"'

relevant links

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

No branches or pull requests

3 participants