Skip to content

Instantly share code, notes, and snippets.

@DrBluefall
Created January 20, 2020 22:55
Show Gist options
  • Save DrBluefall/0dec5cbbf464dc8e4db654c09adc5989 to your computer and use it in GitHub Desktop.
Save DrBluefall/0dec5cbbf464dc8e4db654c09adc5989 to your computer and use it in GitHub Desktop.
$ make debug
RUSTFLAGS=" -C opt-level=0 " cargo +nightly rustc --target "x86_64-unknown-linux-gnu" --verbose
Compiling rvterm v0.1.0 (/Users/prismarine/Projects/rvterm)
Running `rustc --edition=2018 --crate-name rvterm src/main.rs --error-format=json --json=diagnostic-rendered-ansi --crate-type bin --emit=dep-info,link -C debuginfo=2 -C metadata=3ece1e63ddec6500 -C extra-filename=-3ece1e63ddec6500 --out-dir /Users/prismarine/Projects/rvterm/target/x86_64-unknown-linux-gnu/debug/deps --target x86_64-unknown-linux-gnu -C incremental=/Users/prismarine/Projects/rvterm/target/x86_64-unknown-linux-gnu/debug/incremental -L dependency=/Users/prismarine/Projects/rvterm/target/x86_64-unknown-linux-gnu/debug/deps -L dependency=/Users/prismarine/Projects/rvterm/target/debug/deps -C opt-level=0`
error: linking with `cc` failed: exit code: 1
|
= note: "cc" "cc" "-Wl,--as-needed" "-Wl,-z,noexecstack" "-m64" "-L" "/Users/prismarine/.rustup/toolchains/nightly-x86_64-apple-darwin/lib/rustlib/x86_64-unknown-linux-gnu/lib" "/Users/prismarine/Projects/rvterm/target/x86_64-unknown-linux-gnu/debug/deps/rvterm-3ece1e63ddec6500.2z1ozab1gkn12m51.rcgu.o" "/Users/prismarine/Projects/rvterm/target/x86_64-unknown-linux-gnu/debug/deps/rvterm-3ece1e63ddec6500.3fbm3k97cngey5gs.rcgu.o" "/Users/prismarine/Projects/rvterm/target/x86_64-unknown-linux-gnu/debug/deps/rvterm-3ece1e63ddec6500.3gj4a4dgq8ltlvdn.rcgu.o" "/Users/prismarine/Projects/rvterm/target/x86_64-unknown-linux-gnu/debug/deps/rvterm-3ece1e63ddec6500.4glh1mo2bg03cejp.rcgu.o" "/Users/prismarine/Projects/rvterm/target/x86_64-unknown-linux-gnu/debug/deps/rvterm-3ece1e63ddec6500.4ro07v6rprr987co.rcgu.o" "/Users/prismarine/Projects/rvterm/target/x86_64-unknown-linux-gnu/debug/deps/rvterm-3ece1e63ddec6500.ulnfzrv03zobg36.rcgu.o" "-o" "/Users/prismarine/Projects/rvterm/target/x86_64-unknown-linux-gnu/debug/deps/rvterm-3ece1e63ddec6500" "/Users/prismarine/Projects/rvterm/target/x86_64-unknown-linux-gnu/debug/deps/rvterm-3ece1e63ddec6500.1vm2uzrlnts4jhxk.rcgu.o" "-Wl,--gc-sections" "-pie" "-Wl,-zrelro" "-Wl,-znow" "-nodefaultlibs" "-L" "/Users/prismarine/Projects/rvterm/target/x86_64-unknown-linux-gnu/debug/deps" "-L" "/Users/prismarine/Projects/rvterm/target/debug/deps" "-L" "/Users/prismarine/.rustup/toolchains/nightly-x86_64-apple-darwin/lib/rustlib/x86_64-unknown-linux-gnu/lib" "-Wl,--start-group" "-Wl,-Bstatic" "/Users/prismarine/.rustup/toolchains/nightly-x86_64-apple-darwin/lib/rustlib/x86_64-unknown-linux-gnu/lib/libstd-b153b83c9c1c6c1f.rlib" "/Users/prismarine/.rustup/toolchains/nightly-x86_64-apple-darwin/lib/rustlib/x86_64-unknown-linux-gnu/lib/libpanic_unwind-ff74737cd8bbb298.rlib" "/Users/prismarine/.rustup/toolchains/nightly-x86_64-apple-darwin/lib/rustlib/x86_64-unknown-linux-gnu/lib/libhashbrown-2267460a56900e75.rlib" "/Users/prismarine/.rustup/toolchains/nightly-x86_64-apple-darwin/lib/rustlib/x86_64-unknown-linux-gnu/lib/librustc_std_workspace_alloc-c255c421355d68b0.rlib" "/Users/prismarine/.rustup/toolchains/nightly-x86_64-apple-darwin/lib/rustlib/x86_64-unknown-linux-gnu/lib/libbacktrace-bb8d13f93963d3d3.rlib" "/Users/prismarine/.rustup/toolchains/nightly-x86_64-apple-darwin/lib/rustlib/x86_64-unknown-linux-gnu/lib/libbacktrace_sys-fc5e3870a30b28e4.rlib" "/Users/prismarine/.rustup/toolchains/nightly-x86_64-apple-darwin/lib/rustlib/x86_64-unknown-linux-gnu/lib/librustc_demangle-3bc3d05f64ad0ad6.rlib" "/Users/prismarine/.rustup/toolchains/nightly-x86_64-apple-darwin/lib/rustlib/x86_64-unknown-linux-gnu/lib/libunwind-0a5e8f0c3ec2c413.rlib" "/Users/prismarine/.rustup/toolchains/nightly-x86_64-apple-darwin/lib/rustlib/x86_64-unknown-linux-gnu/lib/libcfg_if-3cb6dc1d22c519ed.rlib" "/Users/prismarine/.rustup/toolchains/nightly-x86_64-apple-darwin/lib/rustlib/x86_64-unknown-linux-gnu/lib/liblibc-55aef1559ad2be59.rlib" "/Users/prismarine/.rustup/toolchains/nightly-x86_64-apple-darwin/lib/rustlib/x86_64-unknown-linux-gnu/lib/liballoc-e6671844ee42c32a.rlib" "/Users/prismarine/.rustup/toolchains/nightly-x86_64-apple-darwin/lib/rustlib/x86_64-unknown-linux-gnu/lib/librustc_std_workspace_core-464189b722abe6c0.rlib" "/Users/prismarine/.rustup/toolchains/nightly-x86_64-apple-darwin/lib/rustlib/x86_64-unknown-linux-gnu/lib/libcore-9f75b1b7c35ab8a8.rlib" "-Wl,--end-group" "/Users/prismarine/.rustup/toolchains/nightly-x86_64-apple-darwin/lib/rustlib/x86_64-unknown-linux-gnu/lib/libcompiler_builtins-d7594cefb5f3edfe.rlib" "-Wl,-Bdynamic" "-ldl" "-lrt" "-lpthread" "-lgcc_s" "-lc" "-lm" "-lrt" "-lpthread" "-lutil" "-lutil"
= note: clang: warning: argument unused during compilation: '-pie' [-Wunused-command-line-argument]
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 `rvterm`.
Caused by:
process didn't exit successfully: `rustc --edition=2018 --crate-name rvterm src/main.rs --error-format=json --json=diagnostic-rendered-ansi --crate-type bin --emit=dep-info,link -C debuginfo=2 -C metadata=3ece1e63ddec6500 -C extra-filename=-3ece1e63ddec6500 --out-dir /Users/prismarine/Projects/rvterm/target/x86_64-unknown-linux-gnu/debug/deps --target x86_64-unknown-linux-gnu -C incremental=/Users/prismarine/Projects/rvterm/target/x86_64-unknown-linux-gnu/debug/incremental -L dependency=/Users/prismarine/Projects/rvterm/target/x86_64-unknown-linux-gnu/debug/deps -L dependency=/Users/prismarine/Projects/rvterm/target/debug/deps -C opt-level=0` (exit code: 1)
make: *** [debug] Error 101
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment