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

Building on macos fails #23

Closed
kaukas opened this issue May 10, 2019 · 1 comment
Closed

Building on macos fails #23

kaukas opened this issue May 10, 2019 · 1 comment

Comments

@kaukas
Copy link

kaukas commented May 10, 2019

Hello.

Trying to build cassandra-cpp on macos I get:

cc "-m64" "-L" "$HOME/.rustup/toolchains/stable-x86_64-apple-darwin/lib/rustlib/x86_64-apple-darwin/lib" "$PROJECT/target/debug/deps/rs_scroller-d39e8fcc964e37b9.1qnj6s9830d6r3y4.rcgu.o" "$PROJECT/target/debug/deps/rs_scroller-d39e8fcc964e37b9.2km8au3oo5rblp3j.rcgu.o" "$PROJECT/target/debug/deps/rs_scroller-d39e8fcc964e37b9.38uecmwb2fnturi4.rcgu.o" "$PROJECT/target/debug/deps/rs_scroller-d39e8fcc964e37b9.44uxcephuzfifzah.rcgu.o" "$PROJECT/target/debug/deps/rs_scroller-d39e8fcc964e37b9.64j2o7n9o8cqkb8.rcgu.o" "-o" "$PROJECT/target/debug/deps/rs_scroller-d39e8fcc964e37b9" "$PROJECT/target/debug/deps/rs_scroller-d39e8fcc964e37b9.4o3e8l6pgl6azvvw.rcgu.o" "-Wl,-dead_strip" "-nodefaultlibs" "-L" "$PROJECT/target/debug/deps" "-L" "/usr/lib" "-L" "/usr/local/Cellar/openssl/1.0.2r/lib" "-L" "/usr/lib/x86_64-linux-gnu" "-L" "/usr/local/lib/x86_64-linux-gnu" "-L" "/usr/local/lib64" "-L" "/usr/local/lib" "-L" "/usr/lib64/" "-L" "/usr/lib/" "-L" "/usr/lib/x86_64-linux-gnu" "-L" "/usr/local/lib/x86_64-linux-gnu" "-L" "/usr/local/lib64" "-L" "/usr/local/lib" "-L" "/usr/lib64/" "-L" "$PROJECT/target/debug/build/decimal-285435f0a574f7d3/out" "-L" "$HOME/.rustup/toolchains/stable-x86_64-apple-darwin/lib/rustlib/x86_64-apple-darwin/lib" "$PROJECT/target/debug/deps/libcassandra_cpp-c4f071033b509a6c.rlib" "$PROJECT/target/debug/deps/liberror_chain-9c4bcc9c2cb9a03d.rlib" "$PROJECT/target/debug/deps/libbacktrace-cf7352330f54a870.rlib" "$PROJECT/target/debug/deps/librustc_demangle-b8b81e046f6fbd17.rlib" "$PROJECT/target/debug/deps/libcfg_if-8e10b3381722fba2.rlib" "$PROJECT/target/debug/deps/libcassandra_cpp_sys-e973b7aab8ddf2c9.rlib" "$PROJECT/target/debug/deps/libfutures-7ab953d11b2e1dbd.rlib" "$PROJECT/target/debug/deps/libuuid-75133e9e80dc36ad.rlib" "$PROJECT/target/debug/deps/libtime-4b38edaff19428bf.rlib" "$PROJECT/target/debug/deps/libdecimal-0adaa612c7665d20.rlib" "$PROJECT/target/debug/deps/libserde-2513191d4879d6ff.rlib" "$PROJECT/target/debug/deps/librustc_serialize-5668abe9247a5d09.rlib" "$PROJECT/target/debug/deps/libord_subset-31daa916131e4804.rlib" "$PROJECT/target/debug/deps/liblibc-104dc3581e71f1ec.rlib" "$PROJECT/target/debug/deps/libbitflags-8346604936f544cf.rlib" "$PROJECT/target/debug/deps/libslog-c9c9aef676e33be9.rlib" "$HOME/.rustup/toolchains/stable-x86_64-apple-darwin/lib/rustlib/x86_64-apple-darwin/lib/libstd-64d1544b9dc8a8d7.rlib" "$HOME/.rustup/toolchains/stable-x86_64-apple-darwin/lib/rustlib/x86_64-apple-darwin/lib/libpanic_unwind-47702365139f147e.rlib" "$HOME/.rustup/toolchains/stable-x86_64-apple-darwin/lib/rustlib/x86_64-apple-darwin/lib/libbacktrace_sys-0aefa3a2bfa44649.rlib" "$HOME/.rustup/toolchains/stable-x86_64-apple-darwin/lib/rustlib/x86_64-apple-darwin/lib/libunwind-c2b22c88cacffeb6.rlib" "$HOME/.rustup/toolchains/stable-x86_64-apple-darwin/lib/rustlib/x86_64-apple-darwin/lib/librustc_demangle-fca4484aa9be2d09.rlib" "$HOME/.rustup/toolchains/stable-x86_64-apple-darwin/lib/rustlib/x86_64-apple-darwin/lib/liblibc-4728c64ee20d89f8.rlib" "$HOME/.rustup/toolchains/stable-x86_64-apple-darwin/lib/rustlib/x86_64-apple-darwin/lib/liballoc-1722fbf72ce989c9.rlib" "$HOME/.rustup/toolchains/stable-x86_64-apple-darwin/lib/rustlib/x86_64-apple-darwin/lib/librustc_std_workspace_core-0836ff3f3d6a6ee6.rlib" "$HOME/.rustup/toolchains/stable-x86_64-apple-darwin/lib/rustlib/x86_64-apple-darwin/lib/libcore-91c9fbc323ad09b7.rlib" "$HOME/.rustup/toolchains/stable-x86_64-apple-darwin/lib/rustlib/x86_64-apple-darwin/lib/libcompiler_builtins-43b96ba2cdcc7cb3.rlib" "-lcassandra" "-lcrypto" "-lssl" "-lstdc++" "-luv" "-lcassandra" "-lcrypto" "-lssl" "-lstdc++" "-luv" "-lSystem" "-lresolv" "-lc" "-lm"
ld: warning: directory not found for option '-L/usr/lib/x86_64-linux-gnu'
ld: warning: directory not found for option '-L/usr/local/lib/x86_64-linux-gnu'
ld: warning: directory not found for option '-L/usr/local/lib64'
ld: warning: directory not found for option '-L/usr/lib64/'
ld: warning: directory not found for option '-L/usr/lib/x86_64-linux-gnu'
ld: warning: directory not found for option '-L/usr/local/lib/x86_64-linux-gnu'
ld: warning: directory not found for option '-L/usr/local/lib64'
ld: warning: directory not found for option '-L/usr/lib64/'
ld: library not found for -lstdc++
clang: error: linker command failed with exit code 1 (use -v to see invocation)

Removing stdc++ dependency works. I don't think it's needed on macos at all.

Also, please note that both cassandra-cpp and cassandra-sys-rs have the same build.rs files. I don't think that's necessary.

@kw217
Copy link
Collaborator

kw217 commented Jan 29, 2020

Fixed by #24

@kw217 kw217 closed this as completed Jan 29, 2020
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

2 participants