首页 > 解决方案 > 我正在尝试使用 cmake 安装 lightly-qt,但收到此错误消息:

问题描述

/usr/share/cmake-3.21/Modules/CMakeTestCCompiler.cmake:69 处的 CMake 错误(消息):C 编译器

"/usr/bin/cc"

无法编译简单的测试程序。

它失败并显示以下输出:

Change Dir: /home/jamesc/Lightly/build/CMakeFiles/CMakeTmp

Run Build Command(s):/usr/bin/make -f Makefile cmTC_b349a/fast && /usr/bin/make  -f CMakeFiles/cmTC_b349a.dir/build.make CMakeFiles/cmTC_b349a.dir/build
make[1]: Entering directory '/home/jamesc/Lightly/build/CMakeFiles/CMakeTmp'
Building C object CMakeFiles/cmTC_b349a.dir/testCCompiler.c.o
/usr/bin/cc    -o CMakeFiles/cmTC_b349a.dir/testCCompiler.c.o -c /home/jamesc/Lightly/build/CMakeFiles/CMakeTmp/testCCompiler.c
cc: internal compiler error: Segmentation fault signal terminated program cc1
Please submit a full bug report,
with preprocessed source if appropriate.
See <https://bugs.archlinux.org/> for instructions.
make[1]: *** [CMakeFiles/cmTC_b349a.dir/build.make:78: CMakeFiles/cmTC_b349a.dir/testCCompiler.c.o] Error 4
make[1]: Leaving directory '/home/jamesc/Lightly/build/CMakeFiles/CMakeTmp'
make: *** [Makefile:127: cmTC_b349a/fast] Error 2

CMake 将无法正确生成此项目。调用堆栈(最近调用优先):CMakeLists.txt:2(项目)

标签: cmakezsh

解决方案


推荐阅读