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

Failed to install on musl system (aipine linux) #388

Closed
gspe opened this issue Apr 11, 2020 · 2 comments
Closed

Failed to install on musl system (aipine linux) #388

gspe opened this issue Apr 11, 2020 · 2 comments

Comments

@gspe
Copy link

gspe commented Apr 11, 2020

I'm trying to install rust-analyzer on alpine linux docker but the installation fail with this error:

error: failed to compile `rust-analyzer v0.1.0 (/rust/rust-analyzer/crates/rust-analyzer)`, intermediate artifacts can be found at `/rust/rust-analyzer/target`

Caused by:
  cannot produce proc-macro for `chalk-derive v0.1.0 (https://github.com/rust-lang/chalk.git?rev=039fc904a05f8cb3d0c682c9a57a63dda7a35356#039fc904)` as the target `x86_64-unknown-linux-musl` does not support these crate types
Error: install server

Caused by:
    0: process `cargo install --path crates/rust-analyzer --locked --force ` failed
    1: exit code: 101
@detrumi
Copy link
Member

detrumi commented Apr 11, 2020

This is a rustc limitation, see rust#40174.

Proc macros are really convenient in chalk for deriving traits like Fold, so I don't think we'll be removing them. Also, I think rust-analyzer itself makes use of proc macros as well, so removing their usage from chalk wouldn't solve your problem.

@jackh726
Copy link
Member

Unfortunately, I'm really not sure there's anything for us to do here. As @detrumi said, seems like a rustc issue.

Sorry 😟

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

3 participants