Compiling embedded Rust on ARM: linker `rust-lld` not found

Hi,
I want to use an embedded PC (Odroid N2) as my everyday PC and I also want to use it to develop some stuff in Rust for ARM Cortex devices.

I have an Odroid N2 with Ubuntu Mate 18.04 and I have installed the latest stable version of Rust. I followed the instructions on the Rust embedded discovery book, but it fails to compile

odroid@odroid:~/dev/discovery/src/05-led-roulette$ cargo build --target thumbv7em-none-eabihf
   Compiling cortex-m-rt v0.6.12
   Compiling stm32f30x v0.7.1
   Compiling stm32f30x-hal v0.2.0
   Compiling f3 v0.6.1
   Compiling aux5 v0.1.0 (/home/odroid/dev/discovery/src/05-led-roulette/auxiliary)
   Compiling led-roulette v0.1.0 (/home/odroid/dev/discovery/src/05-led-roulette)
error: linker `rust-lld` not found
  |
  = note: No such file or directory (os error 2)

error: aborting due to previous error

error: could not compile `led-roulette`.

Is it possible to fix that on the Odroid or do I have to switch to a regular PC? Did I miss something to install?

Regards
Markus

@MarkuBu,
Have you tried this , error: linker `rust-lld` not found · Issue #52362 · rust-lang/rust · GitHub ,they were facing similar problems on Raspberry Pi . Basically , I think you have to compile the linker for your platform .

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.