我如何解决因“与`cc`链接失败:退出代码:1”而导致的货物建造失败

时间:2019-11-27 05:24:49

标签: rust

我克隆了a project并运行了cargo build。它失败并显示“错误:与cc链接失败:退出代码:1”以及有关“体系结构x86_64的未定义符号:...”的内容。

关于如何解决此问题的任何想法?

我将MacOS 10.13.6与每晚1.40.0的货物一起使用(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)

0 个答案:

没有答案