简体   繁体   English

更新 macOS 后使用 Make 生成 C++ 代码错误

[英]Build errors with Make for C++ code after updating macOS

I am trying to build a C++ code with “make“ but after that I updated my macOS from 12.3 to 12.6, I am getting this error:我正在尝试使用“make”构建 C++ 代码,但之后我将 macOS 从 12.3 更新到 12.6,我收到此错误:

A linker snapshot was created at: /tmp/libqints.dylib-2022-09-16-155828.ld-snapshot linker 快照创建于:/tmp/libqints.dylib-2022-09-16-155828.ld-snapshot

ld: Assertion failed: (_file->_atomsArrayCount == computedAtomCount && "more atoms allocated than expected"), function parse, file macho_relocatable_file.cpp, line 2061. ld:断言失败:(_file->_atomsArrayCount == computedAtomCount &&“分配的原子比预期的多”),function 解析,文件 macho_relocatable_file.cpp,第 2061 行。

And I'm using gcc(12.2.0) compiler installed with home-brew.我正在使用随 home-brew 安装的 gcc(12.2.0) 编译器。

But before the update, everything was working fine.但在更新之前,一切正常。

This question has been answered here .这个问题已经在这里回答了。 Basically, it's a known XCode 14.0 bug and the only current solution is to downgrade to the XCode 13.4 command-line tools.基本上,这是一个已知的 XCode 14.0 错误,当前唯一的解决方案是降级到 XCode 13.4 命令行工具。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM