我尝试将我的一个Rust项目编译到x86_64-unknown-linux-gnu目标:

$ cargo build --target=x86_64-unknown-linux-gnu
 Compiling deployer v0.1.0 (file:///Users/raphael/web/deployer)
  error: linking with `cc` failed: exit code: 1
  |
  = note: "cc"
  = note: clang: warning: argument unused during compilation: '-pie'
ld: unknown option: --as-needed
clang: error: linker command failed with exit code 1 (use -v to see invocation)

我不知道如何处理这样的消息 . 我该怎么做才能让它发挥作用?

这是我的 Cargo.toml 文件:

[package]
name = "deployer"
version = "0.1.0"
authors = ["..."]

[dependencies]
clap = "2.14.0"
time = "0.1.35"
slack-hook = "0.2"

货物版本:

cargo 0.13.0-nightly (109cb7c 2016-08-19)

锈版:

rustc 1.12.0 (3191fbae9 2016-09-23)

我尝试用rustup更新所有内容,但我仍然遇到同样的问题 .