我克隆了一个项目并运行cargo build。它失败并显示“错误:与 cc 链接失败:退出代码:1”以及有关“体系结构 x86_64 的未定义符号:...”的信息。
关于如何解决这个问题有什么想法吗?
我正在使用 MacOS 10.13.6 和 Cargo 1.40.0-nightly (5da4b4d47 2019-10-28)
编辑:添加完整的错误日志:
= note: ld: warning: text-based stub file /System/Library/Frameworks//Security.framework/Security.tbd and library file /System/Library/Frameworks//Security.framework/Security are out of sync. Falling back to library file for linking.
ld: warning: text-based stub file /System/Library/Frameworks//CoreFoundation.framework/CoreFoundation.tbd and library file /System/Library/Frameworks//CoreFoundation.framework/CoreFoundation are out of sync. Falling back to library file for linking.
ld: warning: text-based stub file /System/Library/Frameworks//Security.framework/Security.tbd and library file /System/Library/Frameworks//Security.framework/Security are out of sync. Falling back to library file for linking.
ld: warning: text-based stub file /System/Library/Frameworks//CoreFoundation.framework/CoreFoundation.tbd and library file /System/Library/Frameworks//CoreFoundation.framework/CoreFoundation are out of sync. Falling back to library file for linking.
ld: warning: text-based stub file /System/Library/Frameworks//CoreFoundation.framework/CoreFoundation.tbd and library file /System/Library/Frameworks//CoreFoundation.framework/CoreFoundation are out of sync. Falling back to library file for linking.
Undefined symbols for architecture x86_64:
"___isOSVersionAtLeast", referenced from:
_sectransp_connect_step1 in libcurl_sys-c02273f998a26b4c.rlib(sectransp.o)
_sectransp_connect_step2 in libcurl_sys-c02273f998a26b4c.rlib(sectransp.o)
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
1556 次 |
| 最近记录: |