-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Closed
Description
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`
Metadata
Metadata
Assignees
Labels
No labels