You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Following Working on Cargo, I tried to build Cargo by cargo build --verbose command below. However, the linking phase of cargo failed due to OpenSSL.
The main error is shown below:
= note: ld: reference to symbol (which has not been assigned an address) __ZN4curl4init9INIT_CTOR17hf07493778f5f0015E in '__ZN4curl4init17h813a56f03992ef7eE' from /private/tmp/cargo/target/debug/deps/libcurl-fd4bb0321dc1012c.rlib(curl-fd4bb0321dc1012c.curl.99716010-cgu.2.rcgu.o) for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Downgrade the OpenSSL version or change the C compiler from the Apple clang (because the Apple clang often behaves strangely)? However, I don't know how Cargo chooses the OpenSSL library directory and a C compiler internally.
Or please let me know if something else went wrong.
Notes
Architecture
$ uname -av
Darwin Kens-MacBook-Pro-2021.local 21.1.0 Darwin Kernel Version 21.1.0: Wed Oct 13 17:33:24 PDT 2021; root:xnu-8019.41.5~1/RELEASE_ARM64_T8101 arm64
$ cc --version
Apple clang version 13.0.0 (clang-1300.0.29.3)
Target: arm64-apple-darwin21.1.0
Thread model: posix
InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin
Problem
Following Working on Cargo, I tried to build Cargo by
cargo build --verbose
command below. However, the linking phase ofcargo
failed due to OpenSSL.The main error is shown below:
Full errors:
Steps
rust-lang/cargo
cd cargo
cargo build
Possible Solution(s)
Downgrade the OpenSSL version or change the C compiler from the Apple clang (because the Apple clang often behaves strangely)? However, I don't know how Cargo chooses the OpenSSL library directory and a C compiler internally.
Or please let me know if something else went wrong.
Notes
Version
The text was updated successfully, but these errors were encountered: