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

Using "linker-flavor": "ld.lld" fails to build on Linux #420

Closed
shingtaklam1324 opened this issue Mar 17, 2018 · 1 comment
Closed

Using "linker-flavor": "ld.lld" fails to build on Linux #420

shingtaklam1324 opened this issue Mar 17, 2018 · 1 comment

Comments

@shingtaklam1324
Copy link

Error Mesage

❭ RUST_TARGET_PATH=$(pwd) cargo build --target x86_64-blog_os
error: failed to run `rustc` to learn about target-specific information

Caused by:
  process didn't exit successfully: `rustc - --crate-name ___ --print=file-names --target x86_64-blog_os --crate-type bin --crate-type rlib` (exit code: 101)
--- stderr
error: Error loading target specification: linker flavor must be one of: em binaryen gcc ld msvc
  |
  = help: Use `--print target-list` for a list of built-in targets

Build System

  • x86_64-unknown-linux-gnu
  • Elementary OS 0.4.1 Loki
  • Built on "Ubuntu 16.04 LTS"

Solution

Regressing to x86_64-blog_os.json before #398 fixed the issue.

@shingtaklam1324
Copy link
Author

Updating rustc fixed the issue

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

1 participant