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

Unable to compile. Error: linking with cc failed: exit code: 1 #5

Open
scimetfoo opened this issue Mar 7, 2016 · 2 comments
Open

Comments

@scimetfoo
Copy link

I'm trying to build the binary cargo build --release but I get the following error:

note: "cc" "-Wl,--as-needed" "-m64" "-L" "/usr/local/lib/rustlib/x86_64-unknown-linux-gnu/lib" "/home/murtaza/Desktop/leaf-examples/target/release/leaf_examples.0.o" "-o" "/home/murtaza/Desktop/leaf-examples/target/release/leaf_examples" "-Wl,--gc-sections" "-pie" "-Wl,-O1" "-nodefaultlibs" "-L" "/home/murtaza/Desktop/leaf-examples/target/release" "-L" "/home/murtaza/Desktop/leaf-examples/target/release/deps" "-L" "/usr/lib/x86_64-linux-gnu" "-L" "/home/murtaza/Desktop/leaf-examples/target/release/build/openssl-sys-ccfba7b0e0a23a8e/out" "-L" "/usr/local/lib/rustlib/x86_64-unknown-linux-gnu/lib" "-Wl,-Bstatic" "-Wl,-Bdynamic" "/home/murtaza/Desktop/leaf-examples/target/release/deps/libdocopt-eb02b06dca39e75f.rlib" "/home/murtaza/Desktop/leaf-examples/target/release/deps/libhyper-2ba027f1404b8ddb.rlib" "/home/murtaza/Desktop/leaf-examples/target/release/deps/libsolicit-8632432b3a4330d6.rlib" "/home/murtaza/Desktop/leaf-examples/target/release/deps/libhttparse-5c82294627258d33.rlib" "/home/murtaza/Desktop/leaf-examples/target/release/deps/libhpack-8f91a695370f3d75.rlib" "/home/murtaza/Desktop/leaf-examples/target/release/deps/libstrsim-fa50309ddd5f7139.rlib" "/home/murtaza/Desktop/leaf-examples/target/release/deps/liblanguage_tags-668f109940a16d3d.rlib" "/home/murtaza/Desktop/leaf-examples/target/release/deps/libnum_cpus-e273cfbbb0ba5cac.rlib" "/home/murtaza/Desktop/leaf-examples/target/release/deps/libtraitobject-4ea485452a3a4a0b.rlib" "/home/murtaza/Desktop/leaf-examples/target/release/deps/libenv_logger-2fedde90a22290a6.rlib" "/home/murtaza/Desktop/leaf-examples/target/release/deps/libregex-ea979451af017568.rlib" "/home/murtaza/Desktop/leaf-examples/target/release/deps/libaho_corasick-eea45523c8483aac.rlib" "/home/murtaza/Desktop/leaf-examples/target/release/deps/libutf8_ranges-afda04de2a52d0c6.rlib" "/home/murtaza/Desktop/leaf-examples/target/release/deps/libcsv-38833c6c563f720e.rlib" "/home/murtaza/Desktop/leaf-examples/target/release/deps/libmime-b95e634e9256396c.rlib" "/home/murtaza/Desktop/leaf-examples/target/release/deps/libcookie-14f7332b9f1085f4.rlib" "/home/murtaza/Desktop/leaf-examples/target/release/deps/libopenssl-4082d291dfec4f37.rlib" "/home/murtaza/Desktop/leaf-examples/target/release/deps/libopenssl_sys-ccfba7b0e0a23a8e.rlib" "/home/murtaza/Desktop/leaf-examples/target/release/deps/liblibc-dd3420cb049117bb.rlib" "/home/murtaza/Desktop/leaf-examples/target/release/deps/libserde-199a888172a9cdd1.rlib" "/home/murtaza/Desktop/leaf-examples/target/release/deps/libtypeable-7ddee84661471c9b.rlib" "/home/murtaza/Desktop/leaf-examples/target/release/deps/libmemchr-545f7c18e4fb5174.rlib" "/home/murtaza/Desktop/leaf-examples/target/release/deps/liburl-3f8ca9274c8ba747.rlib" "/home/murtaza/Desktop/leaf-examples/target/release/deps/libuuid-fed17b74aa7673e2.rlib" "/home/murtaza/Desktop/leaf-examples/target/release/deps/libmatches-737aa40e66529b02.rlib" "/home/murtaza/Desktop/leaf-examples/target/release/deps/libleaf-1941b6714b37cdd8.rlib" "/home/murtaza/Desktop/leaf-examples/target/release/deps/libcollenchyma_nn-f77eb8f370d7400a.rlib" "/home/murtaza/Desktop/leaf-examples/target/release/deps/liblog-0b1f2bad29d31333.rlib" "/home/murtaza/Desktop/leaf-examples/target/release/deps/libcudnn-854d347fd7afab90.rlib" "/home/murtaza/Desktop/leaf-examples/target/release/deps/libtimeit-32b1006bf5998cae.rlib" "/home/murtaza/Desktop/leaf-examples/target/release/deps/libtime-22c21fe32894ddad.rlib" "/home/murtaza/Desktop/leaf-examples/target/release/deps/libcudnn_sys-9f4c28c0b836a8f7.rlib" "/home/murtaza/Desktop/leaf-examples/target/release/deps/libcollenchyma_blas-a8b9d5dd0a4541d1.rlib" "/home/murtaza/Desktop/leaf-examples/target/release/deps/libcollenchyma-9c720fde0214e273.rlib" "/home/murtaza/Desktop/leaf-examples/target/release/deps/libenum_primitive-2dc0d7f5a40461af.rlib" "/home/murtaza/Desktop/leaf-examples/target/release/deps/librblas-f688441f4b40cb58.rlib" "/home/murtaza/Desktop/leaf-examples/target/release/deps/libbitflags-646076c1f4684754.rlib" "/home/murtaza/Desktop/leaf-examples/target/release/deps/libnum-d3b232b2ec3de579.rlib" "/home/murtaza/Desktop/leaf-examples/target/release/deps/librand-6fab17fc670a2bc8.rlib" "/home/murtaza/Desktop/leaf-examples/target/release/deps/librustc_serialize-79a17eda1cd94e46.rlib" "/home/murtaza/Desktop/leaf-examples/target/release/deps/libcublas-75b68f8b15390ba0.rlib" "/home/murtaza/Desktop/leaf-examples/target/release/deps/libbyteorder-bff578a6925be5fe.rlib" "/home/murtaza/Desktop/leaf-examples/target/release/deps/liblinear_map-9d19437a952d430c.rlib" "/home/murtaza/Desktop/leaf-examples/target/release/deps/libregex_syntax-46f1c6091c03f7ce.rlib" "/home/murtaza/Desktop/leaf-examples/target/release/deps/liblazy_static-007034d2ad8108ce.rlib" "/home/murtaza/Desktop/leaf-examples/target/release/deps/libcublas_sys-c067fced6fd7f628.rlib" "/home/murtaza/Desktop/leaf-examples/target/release/deps/liblibc-c862fb1c783dd674.rlib" "/home/murtaza/Desktop/leaf-examples/target/release/deps/libbyteorder-3945c3ad3e0e1d9c.rlib" "/home/murtaza/Desktop/leaf-examples/target/release/deps/libunicase-6994b2722f6a1cd7.rlib" "/usr/local/lib/rustlib/x86_64-unknown-linux-gnu/lib/libstd-6a154fe0.rlib" "/usr/local/lib/rustlib/x86_64-unknown-linux-gnu/lib/libcollections-6a154fe0.rlib" "/usr/local/lib/rustlib/x86_64-unknown-linux-gnu/lib/librustc_unicode-6a154fe0.rlib" "/usr/local/lib/rustlib/x86_64-unknown-linux-gnu/lib/librand-6a154fe0.rlib" "/usr/local/lib/rustlib/x86_64-unknown-linux-gnu/lib/liballoc-6a154fe0.rlib" "/usr/local/lib/rustlib/x86_64-unknown-linux-gnu/lib/liballoc_jemalloc-6a154fe0.rlib" "/usr/local/lib/rustlib/x86_64-unknown-linux-gnu/lib/liblibc-6a154fe0.rlib" "/usr/local/lib/rustlib/x86_64-unknown-linux-gnu/lib/libcore-6a154fe0.rlib" "-l" "ssl" "-l" "crypto" "-l" "c" "-l" "m" "-l" "cudnn" "-l" "OpenCL" "-l" "OpenCL" "-l" "cuda" "-l" "blas" "-l" "cublas" "-l" "cublas" "-l" "dl" "-l" "pthread" "-l" "gcc_s" "-l" "pthread" "-l" "c" "-l" "m" "-l" "rt" "-l" "compiler-rt"

@xerebz
Copy link

xerebz commented Mar 9, 2016

The error is cut off, can you provide the whole output?

@hobofan
Copy link
Member

hobofan commented Mar 10, 2016

This and #7 are probably the same issue though there isn't a error message reported there.

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

3 participants