You need to enable JavaScript to run this app. M1 Mac Big Sur编译telldus-core报ld找不到-lSystem错误求助
优惠活动
大模型
产品
解决方案
定价
更多

M1 Mac Big Sur编译telldus-core报ld找不到-lSystem错误求助

M1 Big Sur环境下编译telldus-core遇到链接器报错

基础运行环境

  • 硬件:搭载M1芯片的Mac设备
  • 系统版本:Big Sur
  • 目标操作:本地编译telldus-core项目

已尝试的排查操作

  • 检索公开社区的同类报错相关帖子,未找到可落地的有效解决方案
  • 重新安装Xcode,报错问题未得到解决
  • 自身对CMake、Makefile的熟悉程度较低,暂无法判断安装文档要求的编译参数-DCMAKE_INSTALL_PREFIX=/usr未设置,是否与当前报错存在关联

全部异常提示信息

  1. CMake配置环节触发固定警告:You are compiling sources from trunk. Don't do that!
  2. 编译器自动识别阶段的链接失败报错,核心报错点为链接器无法定位基础系统库,完整日志如下:

C编译器识别流程报错

Compiling the C compiler identification source file "CMakeCCompilerId.c" failed.
Compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc
Build flags:
Id flags:

The output was:
1
ld: library not found for -lSystem
clang: error: linker command failed with exit code 1 (use -v to see invocation)

CXX编译器识别流程报错

Compiling the CXX compiler identification source file "CMakeCXXCompilerId.cpp" failed.
Compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++
Build flags:
Id flags:

The output was:
1
ld: library not found for -lc++
clang: error: linker command failed with exit code 1 (use -v to see invocation)

内容的提问来源于stack exchange,提问作者SuperCed

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.10.27 08:36:04