-
Notifications
You must be signed in to change notification settings - Fork 514
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
linking with rust-lld
failed: exit code: 1
#246
Comments
What's the the reason When comming back to 05-led-roulette today (which was laying around for several months), I also experienced an issue with
I upated to Rust 1.44 beforehand. In my case the troublemaker was an outdated cortex-m-rt. Updating this crate with |
I also have the same issue. When I build the src/05-led-roulette/src/main.rs code file. It builds fine with no errors. But when I try to build another code in The Led and Delay abstractions section of the Discovery book. (Code Link) that code gives this I am using Windows 10 The rustup Version is: The rustc Version is: |
Thanks, Sir @imran82ali Note. add = sign. |
Assalam O Alaikum Dear All, I am also facing the same problem when compiling hello-world for itm, i have change in my Auxillary/cargo.toml file (cortex-mm = "=0.6.4" but getting same problem "linking with /////////////////////////////////////////////////////////////////////////// root@ubuntu:/home/babarsaeed/Desktop/06-hello-world# rustup --version --verbose root@ubuntu:/home/babarsaeed/Desktop/06-hello-world# rustc --version --verbose root@ubuntu:/home/babarsaeed/Desktop/06-hello-world# cargo --version --verbose @sir Imran please help is required for resolving the issue. Best Regards |
This is what worked for me, thanks! |
Hello everyone, several changes and fixes have landed in this repository recently (for example #341). They include switching to the actively maintained As of cc254bb I can build all examples successfully. $ git describe --always --dirty
cc254b
$ rustc --version
rustc 1.52.1 (9bc8c42bb 2021-05-09)
$ cargo build --target thumbv7em-none-eabihf Yes, there are still warnings about unused variables, constants, ... But the build itself works. @imran82ali I expect this to resolve your issues too. Does the latest updates work out for you? |
Hi there, can someone help me with this error?
error: aborting due to previous error; 1 warning emitted error: could not compile config file runner = "gdb -q"rustflags = [ memory.x is also showing error SOMETHING_IS_GONNA_HAPPEN |
Hello @NitinSaxenait, I have no idea what's going wrong at a first glance. Could you please give information on how you got there? Which example are you trying to build? Which revision of the examples and versions of tooling are you using (like I've done in #246 (comment))? |
``@sirhcel i am trying to build the first example from Discovery Book using my own repo. i am getting this error -> error: linking with |
Alright @NitinSaxenait, but I still have no idea what the error you are getting is about. https://github.com/NitinSaxenait/My_DiscoveryRepo looks pretty empty to me. Could you please publish the actual code that fails and link it here? The compiler looks pretty up to date.
Depending on the microcontroller your are using, explicitly providing |
The code which i want to load in stm32 Discovery board. `#![no_main] use panic_halt as _; #[entry]
} error: linking with memory.x MEMORY |
@NitinSaxenait, I meant publishing the whole project code to a repository and linking it from this issue. The project setup might make the little difference as well ... ;-) I made the following assumptions about your setup: STM32F3DISCOVERY, directly using src/issue-246-interrupt-vectors $ cargo build --target thumbv7em-none-eabihf
[...]
Compiling interrupt-vectors v0.1.0 ([...]/src/issue-246-interrupt-vectors)
Finished dev [unoptimized + debuginfo] target(s) in 53.07s |
@sirhcel that's what i wanted, it worked thanks for your help :) |
this totally worked - thx! |
Dear Experts,
I am working on Discovery repository, I am building this for STM32F3 Discovery. I am facing following error linking with
rust-lld
failed: exit code: 1 When I am building by cargo build --target thumbv7em-none-eabihfIt was working fine a couple of weeks ago, I am using Linux 18.04 LTS, I have updated rust my current version is
imran82ali@gmail:~$ rustup --version --verbose
rustup 1.21.1 (7832b2ebe 2019-12-20)
imran82ali@gmail:~$ rustc --version --verbose
rustc 1.44.0 (49cae5576 2020-06-01)
binary: rustc
commit-hash: 49cae55760da0a43428eba73abcb659bb70cf2e4
commit-date: 2020-06-01
host: x86_64-unknown-linux-gnu
release: 1.44.0
LLVM version: 9.0
Looking forward for your response.
Thanks, IMRAN ALI
The text was updated successfully, but these errors were encountered: