Skip to content
This repository has been archived by the owner on Jan 24, 2022. It is now read-only.

Unable to compile under x86_64-unknown-linux-musl #208

Closed
mamins1376 opened this issue Oct 25, 2019 · 2 comments
Closed

Unable to compile under x86_64-unknown-linux-musl #208

mamins1376 opened this issue Oct 25, 2019 · 2 comments
Labels

Comments

@mamins1376
Copy link

Coming from The Embedded Book, I'm stuck in the cross-compiling section.

# cargo build --target=thumbv6m-none-eabi
error: cannot produce proc-macro for `cortex-m-rt-macros v0.1.5` as the target `thumbv6m-none-eabi` does not support these crate types

Also tried to do that with both RUSTFLAGS='-C target-feature=-crt-static' and adding that to .cargo/config. I think there supposed to be a way to the that specifically to rustc when compiling cortex-m-rt-macros?

@thejpster
Copy link
Contributor

I think this is related to rust-lang/rust#40174.

@jonas-schievink
Copy link
Contributor

The upstream issue has been fixed, closing.

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

No branches or pull requests

3 participants