Skip to content

Instantly share code, notes, and snippets.

@sdogruyol
Created May 26, 2015 09:06
Show Gist options
  • Save sdogruyol/0dc483f69c7ce7f4afdc to your computer and use it in GitHub Desktop.
Save sdogruyol/0dc483f69c7ce7f4afdc to your computer and use it in GitHub Desktop.
Cross compile error
error: linking with `cc` failed: exit code: 1
note: "cc" "-Wl,--as-needed" "-m64" "-L" "/Users/serdardogruyol/.multirust/toolchains/stable/lib/rustlib/x86_64-unknown-linux-gnu/lib" "-o" "/Users/serdardogruyol/playground/nickel-bootstrap/target/x86_64-unknown-linux-gnu/release/nickel_bootstrap" "/Users/serdardogruyol/playground/nickel-bootstrap/target/x86_64-unknown-linux-gnu/release/nickel_bootstrap.o" "-Wl,--whole-archive" "-lmorestack" "-Wl,--no-whole-archive" "-Wl,--gc-sections" "-pie" "-Wl,-O1" "-nodefaultlibs" "/Users/serdardogruyol/playground/nickel-bootstrap/target/x86_64-unknown-linux-gnu/release/deps/libnickel-208053cb0090b951.rlib" "/Users/serdardogruyol/playground/nickel-bootstrap/target/x86_64-unknown-linux-gnu/release/deps/libplugin-3a7a2e6890e6fef2.rlib" "/Users/serdardogruyol/playground/nickel-bootstrap/target/x86_64-unknown-linux-gnu/release/deps/libregex-3bea3061fd389532.rlib" "/Users/serdardogruyol/playground/nickel-bootstrap/target/x86_64-unknown-linux-gnu/release/deps/libhyper-d2c777982525a7b2.rlib" "/Users/serdardogruyol/playground/nickel-bootstrap/target/x86_64-unknown-linux-gnu/release/deps/libunicase-29c711cff0d04b16.rlib" "/Users/serdardogruyol/playground/nickel-bootstrap/target/x86_64-unknown-linux-gnu/release/deps/libtypeable-e1c7f5ec8654ad3e.rlib" "/Users/serdardogruyol/playground/nickel-bootstrap/target/x86_64-unknown-linux-gnu/release/deps/libmime-e3d384f950d18291.rlib" "/Users/serdardogruyol/playground/nickel-bootstrap/target/x86_64-unknown-linux-gnu/release/deps/libhttparse-262bba09b9a8af87.rlib" "/Users/serdardogruyol/playground/nickel-bootstrap/target/x86_64-unknown-linux-gnu/release/deps/libmustache-697e53605bf70235.rlib" "/Users/serdardogruyol/playground/nickel-bootstrap/target/x86_64-unknown-linux-gnu/release/deps/liblog-54cf393d3c69686f.rlib" "/Users/serdardogruyol/playground/nickel-bootstrap/target/x86_64-unknown-linux-gnu/release/deps/libgroupable-71ed858535bee1b9.rlib" "/Users/serdardogruyol/playground/nickel-bootstrap/target/x86_64-unknown-linux-gnu/release/deps/libnum_cpus-51b2c6c8fecf9ef6.rlib" "/Users/serdardogruyol/playground/nickel-bootstrap/target/x86_64-unknown-linux-gnu/release/deps/libtypemap-3869793a80fd19d6.rlib" "/Users/serdardogruyol/playground/nickel-bootstrap/target/x86_64-unknown-linux-gnu/release/deps/libunsafe_any-a082092056257a0f.rlib" "/Users/serdardogruyol/playground/nickel-bootstrap/target/x86_64-unknown-linux-gnu/release/deps/libtraitobject-dc1e70e5c4501fdd.rlib" "/Users/serdardogruyol/playground/nickel-bootstrap/target/x86_64-unknown-linux-gnu/release/deps/libcookie-06b0342919872728.rlib" "/Users/serdardogruyol/playground/nickel-bootstrap/target/x86_64-unknown-linux-gnu/release/deps/liburl-beb2c5952735425a.rlib" "/Users/serdardogruyol/playground/nickel-bootstrap/target/x86_64-unknown-linux-gnu/release/deps/librustc_serialize-9ef26f158d5284e0.rlib" "/Users/serdardogruyol/playground/nickel-bootstrap/target/x86_64-unknown-linux-gnu/release/deps/libtime-e758cbe877e9589d.rlib" "/Users/serdardogruyol/playground/nickel-bootstrap/target/x86_64-unknown-linux-gnu/release/deps/libmatches-68db25b520030534.rlib" "/Users/serdardogruyol/playground/nickel-bootstrap/target/x86_64-unknown-linux-gnu/release/deps/libopenssl-a36d86f1beea2185.rlib" "/Users/serdardogruyol/playground/nickel-bootstrap/target/x86_64-unknown-linux-gnu/release/deps/liblazy_static-953c0e8789f76850.rlib" "/Users/serdardogruyol/playground/nickel-bootstrap/target/x86_64-unknown-linux-gnu/release/deps/libbitflags-518ea12e21428edd.rlib" "/Users/serdardogruyol/playground/nickel-bootstrap/target/x86_64-unknown-linux-gnu/release/deps/libopenssl_sys-5040130ff99796a0.rlib" "/Users/serdardogruyol/playground/nickel-bootstrap/target/x86_64-unknown-linux-gnu/release/deps/liblibc-674726c388d62fa2.rlib" "/Users/serdardogruyol/.multirust/toolchains/stable/lib/rustlib/x86_64-unknown-linux-gnu/lib/libstd-4e7c5e5c.rlib" "/Users/serdardogruyol/.multirust/toolchains/stable/lib/rustlib/x86_64-unknown-linux-gnu/lib/libcollections-4e7c5e5c.rlib" "/Users/serdardogruyol/.multirust/toolchains/stable/lib/rustlib/x86_64-unknown-linux-gnu/lib/libunicode-4e7c5e5c.rlib" "/Users/serdardogruyol/.multirust/toolchains/stable/lib/rustlib/x86_64-unknown-linux-gnu/lib/librand-4e7c5e5c.rlib" "/Users/serdardogruyol/.multirust/toolchains/stable/lib/rustlib/x86_64-unknown-linux-gnu/lib/liballoc-4e7c5e5c.rlib" "/Users/serdardogruyol/.multirust/toolchains/stable/lib/rustlib/x86_64-unknown-linux-gnu/lib/liblibc-4e7c5e5c.rlib" "/Users/serdardogruyol/.multirust/toolchains/stable/lib/rustlib/x86_64-unknown-linux-gnu/lib/libcore-4e7c5e5c.rlib" "-L" "/Users/serdardogruyol/playground/nickel-bootstrap/target/x86_64-unknown-linux-gnu/release" "-L" "/Users/serdardogruyol/playground/nickel-bootstrap/target/x86_64-unknown-linux-gnu/release/deps" "-L" "/Users/serdardogruyol/playground/nickel-bootstrap/target/x86_64-unknown-linux-gnu/release/build/openssl-sys-5040130ff99796a0/out" "-L" "/Users/serdardogruyol/playground/nickel-bootstrap/target/x86_64-unknown-linux-gnu/release/build/time-e758cbe877e9589d/out" "-L" "/Users/serdardogruyol/.multirust/toolchains/stable/lib/rustlib/x86_64-unknown-linux-gnu/lib" "-L" "/Users/serdardogruyol/playground/nickel-bootstrap/.rust/lib/x86_64-unknown-linux-gnu" "-L" "/Users/serdardogruyol/playground/nickel-bootstrap/lib/x86_64-unknown-linux-gnu" "-Wl,--whole-archive" "-Wl,-Bstatic" "-Wl,--no-whole-archive" "-Wl,-Bdynamic" "-lrt" "-lcrypto" "-lssl" "-lc" "-lm" "-ldl" "-lpthread" "-lrt" "-lgcc_s" "-lpthread" "-lc" "-lm" "-Wl,-rpath,$ORIGIN/../../../../../.multirust/toolchains/stable/lib/rustlib/x86_64-unknown-linux-gnu/lib" "-Wl,-rpath,/usr/local/lib/rustlib/x86_64-unknown-linux-gnu/lib" "-lcompiler-rt"
note: clang: warning: argument unused during compilation: '-pie'
ld: warning: directory not found for option '-L/Users/serdardogruyol/playground/nickel-bootstrap/.rust/lib/x86_64-unknown-linux-gnu'
ld: warning: directory not found for option '-L/Users/serdardogruyol/playground/nickel-bootstrap/lib/x86_64-unknown-linux-gnu'
ld: unknown option: --as-needed
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment