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

"cannot use value of type *mut T for inline assembly" error on RISC-V without A extension, MSP430, and pre-v6 no-std Arm targets #208

Closed
MabezDev opened this issue Feb 24, 2025 · 2 comments
Labels
C-upstream-bug Category: This is a bug of compiler or dependencies (the fix may require action in the upstream) O-arm Target: 32-bit Arm processors (armv6, armv7, thumb...), including 64-bit Arm in AArch32 state O-msp430 Target: MSP430 O-riscv Target: RISC-V architecture

Comments

@MabezDev
Copy link

We just starting seeing CI failures in esp-hal due to portable atomic: https://github.com/esp-rs/esp-hal/actions/runs/13493374398/job/37695291454?pr=3163#step:6:510. It seems your nightly CI checks also pick this up: https://github.com/taiki-e/portable-atomic/actions/runs/13489586486/job/37686017536#step:18:278.

@taiki-e
Copy link
Owner

taiki-e commented Feb 24, 2025

This is a rustc bug and I reported at rust-lang/rust#137512.

@taiki-e taiki-e added the C-upstream-bug Category: This is a bug of compiler or dependencies (the fix may require action in the upstream) label Feb 24, 2025
taiki-e added a commit that referenced this issue Feb 24, 2025
taiki-e added a commit that referenced this issue Feb 24, 2025
taiki-e added a commit that referenced this issue Feb 24, 2025
@taiki-e
Copy link
Owner

taiki-e commented Feb 24, 2025

Published v1.11.0 which contains a workaround for this rustc bug.

@taiki-e taiki-e added O-arm Target: 32-bit Arm processors (armv6, armv7, thumb...), including 64-bit Arm in AArch32 state O-riscv Target: RISC-V architecture O-msp430 Target: MSP430 labels Feb 24, 2025
@taiki-e taiki-e changed the title RISCV nightly failures "cannot use value of type *mut T for inline assembly" error on RISC-V without A extension, MSP430, and pre-v6 no-std Arm targets Feb 24, 2025
@taiki-e taiki-e pinned this issue Feb 24, 2025
@taiki-e taiki-e unpinned this issue Mar 1, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-upstream-bug Category: This is a bug of compiler or dependencies (the fix may require action in the upstream) O-arm Target: 32-bit Arm processors (armv6, armv7, thumb...), including 64-bit Arm in AArch32 state O-msp430 Target: MSP430 O-riscv Target: RISC-V architecture
Projects
None yet
Development

No branches or pull requests

2 participants