Rust 如何解决货物建造失败的问题;链接“cc”失败:退出代码:1“;

Rust 如何解决货物建造失败的问题;链接“cc”失败:退出代码:1“;,rust,Rust,我克隆并运行了货物构建。它失败的原因是“错误:链接cc失败:退出代码:1”和“架构x86_64的未定义符号:…” 有没有办法解决这个问题 我正在使用MacOS 10.13.6和cargo 1.40.0-每晚(5da4b4d47 2019-10-28) 编辑:添加完整错误日志: = note: ld: warning: text-based stub file /System/Library/Frameworks//Security.framework/Security.tbd and lib

我克隆并运行了
货物构建
。它失败的原因是“错误:链接cc失败:退出代码:1”和“架构x86_64的未定义符号:…”

有没有办法解决这个问题

我正在使用MacOS 10.13.6和cargo 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)

你能告诉我们那些是什么符号吗?这些与告诉您如何解决问题有关。添加完整的错误日志。我试过每晚使用
cargo 1.41.0(8280633db 2019-11-11)
cargo 1.39.0(1c6ec66d5 2019-09-30)
没有得到任何错误。@bk2204添加了我认为是错误日志相关部分的内容。这是一个巨大的输出,所以不想粘贴整个东西。