Closed hug-dev closed 5 years ago
'eh_personality' not found
You get this error when you compile cortex-m crates for the host. To cross compile you need cargo build --target thumbv7m-none-eabi
for example. You don't need the --target
to cross compile within the quickstart directory because .cargo/config sets the default compilation target to thumbv7m-none-eabi (for example).
Oh yes that is because I was outside of the project directory that cargo
did not pick the target
information from .cargo/config
. Adding --target
works!
Problem
When a
cortex-m-quickstart
project is built from another directory usingcargo build --manifest-path=oof-test/Cargo.toml
command it fails with the following output:How to reproduce
cargo generate --git https://github.com/rust-embedded/cortex-m-quickstart
oof-test
cargo build --manifest-path=oof-test/Cargo.toml
Why is it a problem?
I would like to create a Rust workspace with multiple
cortex-m-quickstart
projects, but because of that I can not. The workaround I did is to have a script thatpushd
into the Cargo projects andcargo build
from there. Could be nice to have that working!