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

Failed to link sndfile #1

Closed
tuxzz opened this issue Apr 3, 2020 · 1 comment · Fixed by #2
Closed

Failed to link sndfile #1

tuxzz opened this issue Apr 3, 2020 · 1 comment · Fixed by #2
Labels
bug Something isn't working
Milestone

Comments

@tuxzz
Copy link
Contributor

tuxzz commented Apr 3, 2020

error: linking with `cc` failed: exit code: 1
  |
  = note: "cc" "-Wl,--as-needed" "-Wl,-z,noexecstack" "-m64" "-L" "/home/tuxzz/.rustup/toolchains/nightly-2020-03-09-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib" "/home/tuxzz/libsndfile-rs/sndfile-sys/target/debug/deps/sndfile_sys-fe0059ee069ecdca.18nu2r13nier77iq.rcgu.o" "/home/tuxzz/libsndfile-rs/sndfile-sys/target/debug/deps/sndfile_sys-fe0059ee069ecdca.1m05ya1fiowi9v65.rcgu.o" "/home/tuxzz/libsndfile-rs/sndfile-sys/target/debug/deps/sndfile_sys-fe0059ee069ecdca.1o66nladdmad7sch.rcgu.o" "/home/tuxzz/libsndfile-rs/sndfile-sys/target/debug/deps/sndfile_sys-fe0059ee069ecdca.1umd185pstbn54sr.rcgu.o" "/home/tuxzz/libsndfile-rs/sndfile-sys/target/debug/deps/sndfile_sys-fe0059ee069ecdca.1ynz6vlik15mtjv.rcgu.o" "/home/tuxzz/libsndfile-rs/sndfile-sys/target/debug/deps/sndfile_sys-fe0059ee069ecdca.27mqb1hm9d5yiflx.rcgu.o" "/home/tuxzz/libsndfile-rs/sndfile-sys/target/debug/deps/sndfile_sys-fe0059ee069ecdca.3vigj5rawlynxr37.rcgu.o" "/home/tuxzz/libsndfile-rs/sndfile-sys/target/debug/deps/sndfile_sys-fe0059ee069ecdca.3xglyjc8zf0zj0bq.rcgu.o" "/home/tuxzz/libsndfile-rs/sndfile-sys/target/debug/deps/sndfile_sys-fe0059ee069ecdca.42jxangwgzsztjlh.rcgu.o" "/home/tuxzz/libsndfile-rs/sndfile-sys/target/debug/deps/sndfile_sys-fe0059ee069ecdca.4egx9mfjaiqo7iw8.rcgu.o" "/home/tuxzz/libsndfile-rs/sndfile-sys/target/debug/deps/sndfile_sys-fe0059ee069ecdca.jfxhqifsm4x2ctr.rcgu.o" "-o" "/home/tuxzz/libsndfile-rs/sndfile-sys/target/debug/deps/sndfile_sys-fe0059ee069ecdca" "/home/tuxzz/libsndfile-rs/sndfile-sys/target/debug/deps/sndfile_sys-fe0059ee069ecdca.2onvywhtyq0r1v8x.rcgu.o" "-Wl,--gc-sections" "-pie" "-Wl,-zrelro" "-Wl,-znow" "-nodefaultlibs" "-L" "/home/tuxzz/libsndfile-rs/sndfile-sys/target/debug/deps" "-L" "/home/tuxzz/.rustup/toolchains/nightly-2020-03-09-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib" "-Wl,-Bstatic" "/home/tuxzz/.rustup/toolchains/nightly-2020-03-09-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libtest-1b57f6c3b53116f9.rlib" "/home/tuxzz/.rustup/toolchains/nightly-2020-03-09-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libterm-86aa0771e8cd9e2a.rlib" "/home/tuxzz/.rustup/toolchains/nightly-2020-03-09-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libgetopts-0d5b4f875fdd83fd.rlib" "/home/tuxzz/.rustup/toolchains/nightly-2020-03-09-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libunicode_width-d671b300a5386349.rlib" "/home/tuxzz/.rustup/toolchains/nightly-2020-03-09-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/librustc_std_workspace_std-cf1de0060a67e135.rlib" "/home/tuxzz/libsndfile-rs/sndfile-sys/target/debug/deps/liblibc-e31e1d4767bf7785.rlib" "-Wl,--start-group" "/home/tuxzz/.rustup/toolchains/nightly-2020-03-09-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libstd-11511aed690f2c93.rlib" "/home/tuxzz/.rustup/toolchains/nightly-2020-03-09-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libpanic_unwind-3087937e3435cd36.rlib" "/home/tuxzz/.rustup/toolchains/nightly-2020-03-09-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libhashbrown-4bfc0674f0e6d7c9.rlib" "/home/tuxzz/.rustup/toolchains/nightly-2020-03-09-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/librustc_std_workspace_alloc-c997dadb52e4a592.rlib" "/home/tuxzz/.rustup/toolchains/nightly-2020-03-09-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libbacktrace-4639ab9d9b7ff1e5.rlib" "/home/tuxzz/.rustup/toolchains/nightly-2020-03-09-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libbacktrace_sys-03a4b2e4d6df8b0f.rlib" "/home/tuxzz/.rustup/toolchains/nightly-2020-03-09-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/librustc_demangle-4ac9597f7e9c643d.rlib" "/home/tuxzz/.rustup/toolchains/nightly-2020-03-09-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libunwind-83a257afa5db78cd.rlib" "/home/tuxzz/.rustup/toolchains/nightly-2020-03-09-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libcfg_if-f2874247c8ce183b.rlib" "/home/tuxzz/.rustup/toolchains/nightly-2020-03-09-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/liblibc-b5ab644d9db91ae4.rlib" "/home/tuxzz/.rustup/toolchains/nightly-2020-03-09-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/liballoc-76919a4aea2efc5e.rlib" "/home/tuxzz/.rustup/toolchains/nightly-2020-03-09-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/librustc_std_workspace_core-0cca7c72a501dcdd.rlib" "/home/tuxzz/.rustup/toolchains/nightly-2020-03-09-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libcore-53add92393666e06.rlib" "-Wl,--end-group" "/home/tuxzz/.rustup/toolchains/nightly-2020-03-09-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libcompiler_builtins-8e3a0691bec6d2b2.rlib" "-Wl,-Bdynamic" "-lutil" "-ldl" "-lutil" "-ldl" "-lrt" "-lpthread" "-lgcc_s" "-lc" "-lm" "-lrt" "-lpthread" "-lutil" "-lutil"
  = note: /usr/bin/ld: /home/tuxzz/libsndfile-rs/sndfile-sys/target/debug/deps/sndfile_sys-fe0059ee069ecdca.18nu2r13nier77iq.rcgu.o: in function `sndfile_sys::test::test_link':
          /home/tuxzz/libsndfile-rs/sndfile-sys/src/test.rs:5: undefined reference to `sf_error'
          collect2: Error:ld returns 1
          

error: aborting due to previous error

error: could not compile `sndfile-sys`.

To learn more, run the command again with --verbose.

System: Archlinux
libsndfile: 1.0.28-3
Rust toolchain: nightly-2020-03-09-x86_64-unknown-linux-gnu

PR is coming.

tuxzz added a commit to tuxzz/sndfile-sys that referenced this issue Apr 3, 2020
@tuxzz tuxzz mentioned this issue Apr 3, 2020
evpobr added a commit that referenced this issue Apr 3, 2020
@evpobr
Copy link
Owner

evpobr commented Apr 3, 2020

Thanks @tuxzz

@tuxzz tuxzz closed this as completed Apr 4, 2020
@evpobr evpobr added the bug Something isn't working label Apr 4, 2020
@evpobr evpobr added this to the v0.2.1 milestone Apr 4, 2020
@evpobr evpobr linked a pull request Apr 4, 2020 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants