-
Notifications
You must be signed in to change notification settings - Fork 12.8k
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
"error: unused macro definition" when trying to compile libcore for msp430 target with recent nightly. #49617
Comments
This macro is conditionally used in code that depends on the target’s pointer width. I suspect that this error happens on any 16-bit platform. Adding (As an aside, we should probably have CI on rust-lang/rust that libcore at least compiles for one 16-bit platform.) |
Fix build error when compiling libcore for 16bit targets Fixes rust-lang#49617 cc @SimonSapin
@SimonSapin Looking at @pftbest 's fix I guess my q is: why don't 16 bit targets (msp430/avr) need this macro at all? |
#49415 has some background on the removal of |
Fix build error when compiling libcore for 16bit targets Fixes rust-lang#49617 cc @SimonSapin
I have a Rust application written using the msp430 backend. which means using the nightly compiler. Travis CI daily cron builds have been failing with the nightly compiler since March 27, 2018 with the following error (I am currently not in a position to get a backtrace/increase verbosity, I will update when possible):
My msp430 firmware uses
xargo
to create alibcore
for msp430 every timelibcore
is updated, and recently a new feature has triggered a lint that causes compilation to fail due to an unused macro. Sincelibcore
can't be compiled, the whole build fails. A stopgap solution for now is to use a nightly before March 27, 2018 which compileslibcore
for msp430 successfully.cc: @SimonSapin, based on a chat in
#rust-embedded
with @japaric, PR #49305 might have tickled the lint into failing compilation for the msp430 backend?The text was updated successfully, but these errors were encountered: