bobbin-rs / bobbin-sdk

A multi-platform embedded software development kit using the Rust programming language.
Apache License 2.0
43 stars 4 forks source link

boards packages using unknown debugging option '-Z linker-flavor=ld' #7

Open N5FPP opened 5 years ago

N5FPP commented 5 years ago

When doing a top-level build of bobbin-sdk and entering the board builds I get the following error for all boards packages I try to build for.

~/Workspaces/Rust/Bobbin/bobbin-sdk
* pascal@tsunami  (master=) [52] > make
...
make -C board/
make[1]: Entering directory '/home/pascal/Workspaces/Rust/Bobbin/bobbin-sdk/board'
make -C arduino-zero
make[2]: Entering directory '/home/pascal/Workspaces/Rust/Bobbin/bobbin-sdk/board/arduino-zero'
error: failed to run `rustc` to learn about target-specific information

Caused by:
  process didn't exit successfully: `rustc - --crate-name ___ --print=file-names -C link-arg=-Tlink.x -C linker=arm-none-eabi-ld -Z linker-flavor=ld --target thumbv6m-none-eabi --crate-type bin --crate-type rlib --crate-type dylib --crate-type cdylib --crate-type staticlib --crate-type proc-macro` (exit code: 1)
--- stderr
error: unknown debugging option: `linker-flavor`

I'm building with the current nightly, 1.35.0-nightly (fbd34efb3 2019-03-26). Doing a 'rustc -Z help' shows there is no currently supported linker-flavor option.

I'm not sure how to overcome this. Any hints?

thomasantony commented 5 years ago

I was able to compile using nightly-2018-11-13 and by updating all the references to panic-abort to point to version 0.3.0.

jcsoo commented 5 years ago

Thank you for the update - I will test this out and make changes as necessary.