-
Notifications
You must be signed in to change notification settings - Fork 162
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
link error when building for debug, works with --release #19
Comments
I see this is probably related to your PR about codegen units 32. |
Fixed in cortex-m-rt v0.3.6. Affected users try |
I completely rebuilt my vagga container (whose script follows the tutorial.) Now I get:
For my commands:
?Related to rust-lang/cargo#4486 Again, I am rookie. Not sure when to do "cargo update" but if I rebuilt my container completely, I don't think I need it. My script for building the container (following the tutorial) could easily be flawed. |
@bootchk Sorry about that. Xargo v0.3.9 can't compile compiler-builtins -- this is a regression cf. japaric/xargo#167. Please switch back to version v0.3.8. (the command for that is |
Now: = note: arm-none-eabi-ld: I will check that I built my "nordic" device crate correctly. Please let me know if my reports are premature. Thanks for your work. |
But the tail of my blinky.rs is: `// This part is the same as before extern "C" fn default_handler() { Which I think is the interrupt handler for all interrupt vectors. |
The link section has been renamed to If you are linking to a device crate, a crate generated using svd2rust, make sure you are using the latest version of svd2rust with cortex-m-rt v0.3.x. The |
Thanks, it compiles and links now. Sorry for using stale version. FYI I also tried lld-5.0. It doesn't find link.x down in the dependencies, and chokes on link.x syntax (lld not quite compatible with gcc ld scripts yet). |
Yeah, I know; I try lld every now and then. It would be great if lld had full support for ld-style linker scripts because we eventually (may) want to embed lld in rustc. If that happens then we wouldn't need arm-none-eabi-ld to link Cortex-M programs; we couild simply use the lld embedded in rustc. |
This works: xargo build --release --target thumbv7m-none-eabi -v
But without --release I get:
Same error as in your FAQ but different cause?
Rookie to rust. My dev environment is in a vagga container https://github.com/bootchk/rustDevContainers rustNordicBlinky. The container script follows your tutorial more or less, for Nordic nrf52832. I get a blinky.rs to compile and load to a NRF52DK board, but it doesn't blink yet.
The text was updated successfully, but these errors were encountered: