You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

编译gz-rendering时遇Internal Compiler Error: Segmentation Fault求助

问题描述

每次构建/编译gz-rendering包时,触发以下内部编译器错误:

In file included from /usr/include/gz/math7/gz/math/AxisAlignedBox.hh:25,
                 from /home/jjayalekshmi/gz-rendering-cpy/include/gz/rendering/Visual.hh:21,
                 from /home/jjayalekshmi/gz-rendering-cpy/src/Visual.cc:18:
/usr/include/gz/math7/gz/math/MassMatrix3.hh: In member function ‘gz::math::v7::Vector3<T> gz::math::v7::MassMatrix3<T>::PrincipalMoments(T) const’:
/usr/include/gz/math7/gz/math/MassMatrix3.hh:498:20: internal compiler error: Segmentation fault
  498 |         T p = std::pow(b, 2) - 3*c;
      |                    ^~~
0x78952a04251f ???
    ./signal/../sysdeps/unix/sysv/linux/x86_64/libc_sigaction.c:0
0x78952a029d8f __libc_start_call_main
    ../sysdeps/nptl/libc_start_call_main.h:58
0x78952a029e3f __libc_start_main_impl
    ../csu/libc-start.c:392
Please submit a full bug report,
with preprocessed source if appropriate.
Please include the complete backtrace with any bug report.
See <file:///usr/share/doc/gcc-11/README.Bugs> for instructions.
make[2]: *** [src/CMakeFiles/gz-rendering8.dir/build.make:930: src/CMakeFiles/gz-rendering8.dir/Visual.cc.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:1626: src/CMakeFiles/gz-rendering8.dir/all] Error 2
make: *** [Makefile:166: all] Error 2

已执行的排查操作:

  • 运行MemTest 17小时,未检测到内存错误
  • 对CPU降频,排除系统过热问题
  • 将gcc降级至11.4.0版本

硬件配置:

  • 主板:MSI MAG Z790 Tomahawk
  • 内存:TeamGroup T-Force Vulcan 32GB(2×16GB)
  • CPU:Intel Core i9-14900K 24核14代
  • GPU:Tesla P100

补充背景:新系统此前运行正常;一周未使用但期间保持开机,返回后出现死机,重装系统、单条内存运行仍偶尔死机。

后续解决建议
  • 调整CPU参数:在BIOS中关闭超线程(HT)、EIST等超频/节能选项,切换至默认性能模式,测试编译和系统稳定性——14代Intel CPU存在个别批次兼容性问题,该操作可排除指令集冲突。
  • 更新主板BIOS:前往MSI官网下载对应Z790主板的最新稳定版BIOS并刷新,解决新CPU与旧BIOS的适配问题。
  • 切换编译器:尝试使用gcc 12.x系列或clang编译器,规避gcc 11.x与14代CPU指令集的兼容性缺陷。例如安装clang后,通过CC=clang CXX=clang++ cmake ..重新配置项目再编译。
  • 检测存储设备:用smartctl工具检查硬盘/SSD的健康状态,同时验证重装系统所用镜像的完整性,排除磁盘故障引发的系统异常。
  • 排查电源供电:14900K+Tesla P100功耗较高,确认电源额定功率不低于750W(金牌及以上),检查电源接口是否插紧,必要时更换电源测试。
  • 提交编译器Bug:若以上操作无效,按照错误提示生成预编译代码和完整回溯信息,提交给gcc官方Bug跟踪系统,明确标注CPU型号与系统环境。

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

相关产品推荐
方舟 Agent Plan

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

最近更新时间:2026.06.22 10:54:58