-
Notifications
You must be signed in to change notification settings - Fork 30
Upgrade toolchain and disable LTO #9
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
Conversation
Newest rustc contains an important bugfix to AVR's code generator (rust-lang/rust#98567).
Under certain conditions, it triggers a confusing linking error¹. ¹ rust-lang/compiler-builtins#347
Newest rustc contains an important bugfix to AVR's code generator (rust-lang/rust#98567). Ref: Rahix/avr-hal-template#9
Hey, completely missed to also leave a comment here. As you might have noticed, I have already pulled in the toolchain update commit here and in For the LTO change, I am unsure. From my experience, a lot of programs do not compile at all without LTO as a lot of libraries aren't annotated with |
Fair argument about the LTO - I suggested it mostly because people relatively frequently stumble upon that issue on internet (two times on r/rust already, IIRC) and it's peculiarly nasty, since it gives those "oh no, rust avr is broken again" vibes, when it's not even AVR's codegen fault 😓 But yeah, if from your experience disabing LTO makes things even worse, then maybe it's better to keep it enabled and focus on actually fixing the underlying issue 😄 |
I agree, the situation is a bit unfortunate... I do wonder, does the workaround I posted in that issue not work for the cases where you're hitting it? |
Hmm, in which issue? 👀 |
Ah, I see! I haven't checked that one yet, I'll try the next time I face this error. |
Lemme close this one, to keep it tidy - I'll re-open in case I find anything :-) |
(commit messages contain rationale)