Skip to content
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

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

Open
N5FPP opened this issue Mar 27, 2019 · 2 comments
Open

Comments

@N5FPP
Copy link

N5FPP commented Mar 27, 2019

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
Copy link

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
Copy link
Contributor

jcsoo commented Mar 29, 2019

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants