Skip to content

Instantly share code, notes, and snippets.

@U007D
Created February 28, 2017 11:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save U007D/c060513edcf55fae9ac5c67c336a8a27 to your computer and use it in GitHub Desktop.
Save U007D/c060513edcf55fae9ac5c67c336a8a27 to your computer and use it in GitHub Desktop.
xargo run --target armv7-unknown-linux-steedeabihf
Compiling core v0.0.0 (file:///Users/bRad/.rustup/toolchains/nightly-x86_64-apple-darwin/lib/rustlib/src/rust/src/libcore)
Compiling std_unicode v0.0.0 (file:///Users/bRad/.rustup/toolchains/nightly-x86_64-apple-darwin/lib/rustlib/src/rust/src/libstd_unicode)
Compiling alloc v0.0.0 (file:///Users/bRad/.rustup/toolchains/nightly-x86_64-apple-darwin/lib/rustlib/src/rust/src/liballoc)
Compiling collections v0.0.0 (file:///Users/bRad/.rustup/toolchains/nightly-x86_64-apple-darwin/lib/rustlib/src/rust/src/libcollections)
Finished release [optimized] target(s) in 19.41 secs
Compiling rand v0.0.0 (file:///Users/bRad/.rustup/toolchains/nightly-x86_64-apple-darwin/lib/rustlib/src/rust/src/librand)
Finished release [optimized] target(s) in 1.58 secs
Updating git repository `https://github.com/japaric/steed`
Updating git repository `https://github.com/redox-os/ralloc`
Updating git repository `https://github.com/rust-lang-nursery/compiler-builtins`
Updating registry `https://github.com/rust-lang/crates.io-index`
Downloading sc v0.1.5
Downloading unborrow v0.3.1
Downloading rustc-cfg v0.3.0
Compiling sc v0.1.5
Compiling unborrow v0.3.1
Compiling rustc-cfg v0.3.0
Compiling ralloc_shim v0.1.1 (https://github.com/redox-os/ralloc#35fd0db9)
Compiling ralloc v1.0.0 (https://github.com/redox-os/ralloc#35fd0db9)
Compiling compiler_builtins v0.1.0 (https://github.com/rust-lang-nursery/compiler-builtins#0507842b)
Compiling std v0.1.0 (https://github.com/japaric/steed#d2ace31d)
Finished release [optimized] target(s) in 11.84 secs
Compiling hello v0.1.0 (file:///Users/bRad/Development/toolchains/rust/hello)
error: linking with `cc` failed: exit code: 1
|
= note: "cc" "-Wl,--as-needed" "-Wl,--build-id=none" "-Wl,-z,noexecstack" "-nostartfiles" "-static" "-L" "/Users/bRad/.xargo/lib/rustlib/armv7-unknown-linux-steedeabihf/lib" "/Users/bRad/Development/toolchains/rust/hello/target/armv7-unknown-linux-steedeabihf/debug/deps/hello-0991cfa18062d722.0.o" "-o" "/Users/bRad/Development/toolchains/rust/hello/target/armv7-unknown-linux-steedeabihf/debug/deps/hello-0991cfa18062d722" "-Wl,--gc-sections" "-nodefaultlibs" "-L" "/Users/bRad/Development/toolchains/rust/hello/target/armv7-unknown-linux-steedeabihf/debug/deps" "-L" "/Users/bRad/Development/toolchains/rust/hello/target/debug/deps" "-L" "/Users/bRad/.xargo/lib/rustlib/armv7-unknown-linux-steedeabihf/lib" "-Wl,-Bstatic" "-Wl,-Bdynamic" "/Users/bRad/.xargo/lib/rustlib/armv7-unknown-linux-steedeabihf/lib/libstd-bb40cc9c3579a09c.rlib" "/Users/bRad/.xargo/lib/rustlib/armv7-unknown-linux-steedeabihf/lib/libcollections-ea247e9941d76447.rlib" "/Users/bRad/.xargo/lib/rustlib/armv7-unknown-linux-steedeabihf/lib/liballoc-8822446a17c83f7f.rlib" "/Users/bRad/.xargo/lib/rustlib/armv7-unknown-linux-steedeabihf/lib/libralloc-214b72e3110676fc.rlib" "/Users/bRad/.xargo/lib/rustlib/armv7-unknown-linux-steedeabihf/lib/librand-8fa86f69e7373826.rlib" "/Users/bRad/.xargo/lib/rustlib/armv7-unknown-linux-steedeabihf/lib/libstd_unicode-804e7337c69564ad.rlib" "/Users/bRad/.xargo/lib/rustlib/armv7-unknown-linux-steedeabihf/lib/libralloc_shim-094a5847d31d0a1d.rlib" "/Users/bRad/.xargo/lib/rustlib/armv7-unknown-linux-steedeabihf/lib/libsc-979258bc38534d78.rlib" "/Users/bRad/.xargo/lib/rustlib/armv7-unknown-linux-steedeabihf/lib/libcore-89b19dcb9372380f.rlib" "/Users/bRad/.xargo/lib/rustlib/armv7-unknown-linux-steedeabihf/lib/libcompiler_builtins-1f18d4142a8b01da.rlib"
= note: ld: unknown option: --as-needed
clang: error: linker command failed with exit code 1 (use -v to see invocation)
error: aborting due to previous error
error: Could not compile `hello`.
To learn more, run the command again with --verbose.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment