-
Notifications
You must be signed in to change notification settings - Fork 515
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 while compiling example 05-led-roulette #287
Comments
Thanks for reporting! For now, you can probably fix this by upgrading |
@adamgreig suggested the following work-around. He said a "proper" fix should be coming maybe tonight:
After that change I was able to successfully build:
|
I'll note we are also hitting this in the ATSAMD CI (ie: atsamd-rs/atsamd#391): https://github.com/atsamd-rs/atsamd/pull/391/checks?check_run_id=1765507423 |
This is a bug in cortex-m 0.6.6 which we will fix soon, but is there any particular reason you're still using 0.5? |
322: Fix missing peripheral::itm export, prepare v0.6.7 r=jonas-schievink a=adamgreig This fixes the issue where cortex-m 0.5.10 re-exports 0.6's peripheral::itm module; in principle it's possible other crates could have been using this module directly too (it is public) but in practice it doesn't contain anything useful (all the useful things are in the top-level itm module). Should fix rust-embedded/discovery#287. Co-authored-by: Adam Greig <[email protected]>
Fixed by the new 0.6.7 release. Thanks again for reporting! |
Verified it works for me, txs @adamgreig ! |
HI all, The problem was fixed with cargo readobj --target thumbv7em-none-eabihf --bin led-roulette -- -file-headers |
cargo build --target thumbv7em-none-eabihf
Compiling typenum v1.12.0
Compiling semver-parser v0.7.0
Compiling version_check v0.9.2
Compiling nb v1.0.0
Compiling proc-macro2 v1.0.24
Compiling void v1.0.2
Compiling cortex-m v0.7.1
Compiling unicode-xid v0.2.1
Compiling stable_deref_trait v1.2.0
Compiling vcell v0.1.3
Compiling syn v1.0.60
Compiling cortex-m v0.6.6
Compiling bitfield v0.13.2
Compiling cortex-m-rt v0.6.13
Compiling cortex-m v0.5.10
Compiling r0 v0.2.2
Compiling stm32f30x v0.7.1
Compiling aligned v0.2.0
Compiling f3 v0.6.1
Compiling panic-halt v0.2.0
Compiling nb v0.1.3
Compiling volatile-register v0.2.0
Compiling semver v0.9.0
Compiling generic-array v0.14.4
Compiling embedded-hal v0.2.4
Compiling rustc_version v0.2.3
Compiling bare-metal v0.2.5
Compiling cast v0.2.3
Compiling quote v1.0.8
Compiling generic-array v0.12.3
Compiling generic-array v0.13.2
Compiling generic-array v0.11.1
Compiling l3gd20 v0.2.0
Compiling as-slice v0.1.4
Compiling aligned v0.3.4
error[E0432]: unresolved import
cortex_m_0_6::peripheral::itm
--> /Users/ccui/.cargo/registry/src/crates.rustcc.com-a21e0f92747beca3/cortex-m-0.5.10/src/peripheral/mod.rs:91:46
|
91 | pub use cortex_m_0_6::peripheral::{cbp, fpb, itm, tpiu};
| ^^^ no
itm
inperipheral
error: aborting due to previous error
For more information about this error, try
rustc --explain E0432
.error: could not compile
cortex-m
To learn more, run the command again with --verbose.
warning: build failed, waiting for other jobs to finish...
error: build failed
I use macbook pro with M1 CPU, rustc 1.50.0-beta.8 (1cd030396 2021-01-20)
The text was updated successfully, but these errors were encountered: