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 for aarch64-unknown-linux-musl #951

Closed
vi opened this issue Oct 10, 2018 · 10 comments
Closed

Fails to build for aarch64-unknown-linux-musl #951

vi opened this issue Oct 10, 2018 · 10 comments

Comments

@vi
Copy link
Contributor

vi commented Oct 10, 2018

error[E0425]: cannot find value `MAP_32BIT` in module `libc`                                                                                          
  --> /home/vi/.cargo/registry/src/github.com-1ecc6299db9ec823/nix-0.11.0/src/sys/mman.rs:53:9                                                        
   |                                                                                                                                                  
53 |         MAP_32BIT;                                                                                                                               
   |         ^^^^^^^^^ not found in `libc`                                                                                                            
                                                                                                                                                      
error: aborting due to previous error                                                                                                                 
                                                                                                                                                      
For more information about this error, try `rustc --explain E0425`.                                                                                   
error: Could not compile `nix`.                                                                                                                       

To learn more, run the command again with --verbose.
@asomers
Copy link
Member

asomers commented Oct 10, 2018

This is probably a bug in libc. You should check aarch64 musl to see if that symbol is actually defined. If so, then submit a PR to libc to fix it. If not, then it's a bug in Nix.

@light4
Copy link

light4 commented Oct 26, 2018

I checked the latest musl repo, find that MAP_32BIT does not defined in aarch64.

@vi
Copy link
Contributor Author

vi commented Oct 26, 2018

So shall nix-rust workaround and not use it on that platform then?

@asomers
Copy link
Member

asomers commented Oct 26, 2018

Nix doesn't do workarounds. Instead, we should simply disable the feature on unsupported platforms.

@dalance
Copy link
Contributor

dalance commented Mar 9, 2020

This issue seems to be fixed at 7f0fb19.
If so, I think this issue should be closed.

@asomers
Copy link
Member

asomers commented Mar 9, 2020

Are you sure? The timestamps suggest otherwise.

@dalance
Copy link
Contributor

dalance commented Mar 9, 2020

The original error message shows the nix version is v0.11.0, and the commit is released at v0.12.0.
So I think it is fixed at v0.12.0.

@asomers
Copy link
Member

asomers commented Mar 9, 2020

Ahh, good. Have you tested it lately? I don't have that toolchain installed.

@dalance
Copy link
Contributor

dalance commented Mar 9, 2020

No. I don't have the environment too.

@asomers
Copy link
Member

asomers commented Mar 9, 2020

Just installed it. Works for me.

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

5 participants