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

Builds targeting AVR fail with an error #82

Open
rihardsk opened this issue Nov 18, 2022 · 1 comment
Open

Builds targeting AVR fail with an error #82

rihardsk opened this issue Nov 18, 2022 · 1 comment

Comments

@rihardsk
Copy link

If I add postcard to a project targeting AVR, I get an error

error: cannot find macro `llvm_asm` in this scope
   --> /home/rihards/.cargo/registry/src/github.com-1ecc6299db9ec823/critical-section-0.2.7/src/lib.rs:127:13
    |
127 |             llvm_asm!(
    |             ^^^^^^^^

The critical-section dependency is transitively brought in by heapless. There's already a corresponding issue in their repo – rust-embedded/heapless#312.

The solution seems to be to wait for heapless to make a new release and switch to using it.

@jamesmunns
Copy link
Owner

Cool! Feel free to @ me or open a PR when there is a new release, and I can bump the heapless dep.

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