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

"the asm! macro is not allowed in naked functions" in recent nightlies #38

Open
VisualEhrmanntraut opened this issue Oct 8, 2024 · 4 comments

Comments

@VisualEhrmanntraut
Copy link

error[E0787]: the `asm!` macro is not allowed in naked functions
  --> /Users/visual/.cargo/git/checkouts/unwinding-943b7a48f658f090/76a9f9d/src/unwinder/arch/x86_64.rs:64:9
   |
64 | /         asm!(
65 | |             "
66 | |             sub rsp, 0x98
67 | |             .cfi_def_cfa_offset 0xA0
...  |
94 | |             options(noreturn)
95 | |         );
   | |_________^ consider using the `naked_asm!` macro instead

For more information about this error, try `rustc --explain E0787`.
error: could not compile `unwinding` (lib) due to 1 previous error
@VisualEhrmanntraut VisualEhrmanntraut changed the title the asm! macro is not allowed in naked functions in recent nightlies "the asm! macro is not allowed in naked functions" in recent nightlies Oct 8, 2024
@sunfishcode
Copy link
Contributor

There is now a fix for this on the dev branch in e651ead.

@VisualEhrmanntraut
Copy link
Author

Seems to work.

@xobs
Copy link
Contributor

xobs commented Oct 13, 2024

This is causing build failures of libstd on nightly for Xous (see rust-lang/rust#131602). Will a new version be tagged soon?

@nbdd0121
Copy link
Owner

Published 0.2.3

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

4 participants