-
Notifications
You must be signed in to change notification settings - Fork 21
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
Missing definitions for avr-unknown-gnu-atmega328 #20
Comments
It does fix the build issues. I'm stuck on rust-lang/compiler-builtins#400 so can't do runtime evaluation of them right now. (The established workaround appears to be to use a 2021-01 nightly, but way too much in the rest of my environment has changed to support such an old nightly). |
I do also get some errors from C2Rust when using this, as it expects c_ulong to be u16 (pointer-sized) but it arrives as u32, but that can easily be an error on its side. AVR manuals seem to confirm that unsigned long is conventionally 32 bit long there, so your patch seems to be right. |
I assume everyone using Rust on AVR is stuck with |
Sorry, I really can only come back to this when AVR is supported on recent nightlies again; AIU the workaround would be building a patched LLVM and rustc from that, and AVR is a very small niche case for my applications... |
For the avr-unknown-gnu-atmega328 platform (which is tier 3 currently), no ad and pwd modules are defined, resulting in errors like
I can probably provide a PR at a later point, right now I just encountered this, and want to document it so I can pick it up later.
The text was updated successfully, but these errors were encountered: