You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I notice in rust-lang/rust#70173 that some time ago people temporarily started getting errors saying that llvm_asm! is gone, but that seems to be an old temporary rust nightly issue.
I can compile the crate fine on my machine.
Re. updating to the new asm! macro:
The Rust toolchain needs currently not-implemented target-specific support for enabling the asm! macro on AVR:
error[E0472]: asm! is unsupported on this target
--> src/lib.rs:36:13
|
36 | asm!("nop");
| ^
What version of nightly are you using/does upgrading fix the problem?
The llvm_asm macro should still work. I added an example in d9eff38 and it compiles on my machine fine. I vaguely remember that a temporary llvm_asm macro regression caused it to stop working around this time. The asm macro is still not supported by AVR.
Activity
dylanmckay commentedon Oct 29, 2020
Hey there,
I notice that the
llvm_asm!macro has been semi deprecated, but it still should be working.It works for me with current
masterat 2b14a08 and up-to-date nightly compiler version:I notice in rust-lang/rust#70173 that some time ago people temporarily started getting errors saying that
llvm_asm!is gone, but that seems to be an old temporary rust nightly issue.I can compile the crate fine on my machine.
Re. updating to the new
asm!macro:The Rust toolchain needs currently not-implemented target-specific support for enabling the
asm!macro on AVR:What version of nightly are you using/does upgrading fix the problem?
ArthurFleischman commentedon Jan 31, 2021
any improvements?
dylanmckay commentedon Feb 1, 2021
The
llvm_asmmacro should still work. I added an example in d9eff38 and it compiles on my machine fine. I vaguely remember that a temporaryllvm_asmmacro regression caused it to stop working around this time. Theasmmacro is still not supported by AVR.andrewshadura commentedon Feb 25, 2021
I’m getting an error with the latest nightly with both 0.3.1 and 0.3.2:
benstockil commentedon Jul 5, 2021
Yeah, I'm getting the same issue as @andrewshadura. Is there a way around this error?
polawat commentedon Aug 29, 2021
I got a similar issue and got it to work bychanging the nightly version to nightly-2021-01-07
rustup override set nightly-2021-01-07zag2art commentedon Jan 31, 2022
rust-lang/rust#92816
Any improvements according to this?
[-]Doesn't work![/-][+]llvm_asm macro has been deprecated[/+]stappersg commentedon Jan 31, 2022
Rahix/avr-device#91
stappersg commentedon May 21, 2022
#18 has been merged, now dealing with #19 ...
stappersg commentedon Jun 8, 2022
This not an issue any more.