DebuggerX
deepin
2025-06-28 14:12 我前段时间在v23上碰到了这个问题,最后查下来,是因为系统同时装了gcc-12和gcc-13导致的,试试把其中一个卸掉再编译看看。
卸的时候小心一点,别把依赖搞崩了……
Reply Like 0 View the author
我前段时间在v23上碰到了这个问题,最后查下来,是因为系统同时装了gcc-12和gcc-13导致的,试试把其中一个卸掉再编译看看。
卸的时候小心一点,别把依赖搞崩了……
v25遇到相同的问题,根据楼上的提示,clang++ -v果然找到了gcc13
但这个gcc13并不完整
果然使用clang++直接编译helloword文件提示缺库,链接到gcc12成功,问题找到
purge gcc13 clang再装一次clang免得自己手动配置,解决了问题
果然是,先关掉只读文件系统(deepin-immutable-writable enable), 再删掉/usr/lib/gcc/x86_64-linux-gnu/13目录就可以了
Popular Events
More
deepin v25 安装flutter 运行桌面端程序,编译报错
donnchao@donnchao-PC:~/Documents/flutter_application_1$ flutter build linux
Flutter assets will be downloaded from https://storage.flutter-io.cn. Make sure you trust this source!
CMake Error at /usr/share/cmake-3.31/Modules/CMakeTestCXXCompiler.cmake:73 (message):
The C++ compiler
is not able to compile a simple test program.
It fails with the following output:
CMake will not be able to correctly generate this project.
Call Stack (most recent call first):
CMakeLists.txt:3 (project)
Building Linux application...
Unable to generate build files