We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
TL;DR while building doc tests -L$(NATIVE_DEPS_DIR) isn't added to flags and therefore linking fails.
You can test it on this
Here is output:
---- x509::X509Generator_0 stdout ---- error: linking with `cc` failed: exit code: 1 note: cc '-m64' '-L' '/usr/local/lib/rustlib/x86_64-apple-darwin/lib' '-o' '/var/folders/16/s545z2td41s5qlx8x2c8gsyr0000gn/T/rs-4807-0-rustdoctest/rust_out' '/var/folders/16/s545z2td41s5qlx8x2c8gsyr0000gn/T/rs-4807-0-rustdoctest/rust_out.o' '-Wl,-force_load,/usr/local/lib/rustlib/x86_64-apple-darwin/lib/libmorestack.a' '-nodefaultlibs' '-fno-lto' '-Wl,-dead_strip' '-L' '/usr/local/lib/rustlib/x86_64-apple-darwin/lib' '-lnative-4e7c5e5c' '/Users/vhbit/projects/external/rust-openssl/target/libopenssl-b42eb84ad09c633f.rlib' '-L' '/usr/local/lib/rustlib/x86_64-apple-darwin/lib' '-lstd-4e7c5e5c' '-L' '/usr/local/lib/rustlib/x86_64-apple-darwin/lib' '-lsync-4e7c5e5c' '-L' '/usr/local/lib/rustlib/x86_64-apple-darwin/lib' '-lrustrt-4e7c5e5c' '-L' '/Users/vhbit/projects/external/rust-openssl/target' '-L' '/Users/vhbit/projects/external/rust-openssl/target/deps' '-L' '/Users/vhbit/projects/external/rust-openssl/.rust' '-L' '/Users/vhbit/projects/external/rust-openssl' '-lssl' '-lcrypto' '-lwrapped' '-lSystem' '-lpthread' '-lc' '-lm' '-lcompiler-rt' note: ld: warning: directory not found for option '-L/Users/vhbit/projects/external/rust-openssl/.rust' ld: library not found for -lwrapped clang: error: linker command failed with exit code 1 (use -v to see invocation) error: aborting due to previous error task 'x509::X509Generator_0' failed at 'Box<Any>', /Users/vhbit/projects/auto-rust/src/libsyntax/diagnostic.rs:134 failures: x509::X509Generator_0
Here is output of build command:
Running `rustc src/lib.rs --crate-name openssl --crate-type lib -g -C metadata=b42eb84ad09c633f -C extra-filename=-b42eb84ad09c633f --out-dir /Users/vhbit/projects/external/rust-openssl/target --dep-info /Users/vhbit/projects/external/rust-openssl/target/.fingerprint/openssl-b42eb84ad09c633f/dep-lib-openssl -L /Users/vhbit/projects/external/rust-openssl/target -L /Users/vhbit/projects/external/rust-openssl/target/deps -L /Users/vhbit/projects/external/rust-openssl/target/native/openssl-b42eb84ad09c633f`
The text was updated successfully, but these errors were encountered:
Forcing static linking solved the issue, so it seems to be my configuration mistake rather than Cargo error.
Sorry, something went wrong.
No branches or pull requests
TL;DR while building doc tests -L$(NATIVE_DEPS_DIR) isn't added to flags and therefore linking fails.
You can test it on this
Here is output:
Here is output of build command:
The text was updated successfully, but these errors were encountered: