我正在尝试编译 hifiberryos。我克隆了 Git 存储库,按照说明操作,一切都很顺利,直到我编译它时出现此错误。
**arm-buildroot-linux-gnueabihf-g++.br_real:** **fatal error**: killed signal terminated program cc1plus
compilation terminated.
make[4]: *** [Source/WebCore/CMakeFiles/Webcore.dir/build.make:2463: Source/WebCore/CMakeFiles/WebCore.dir/_ _ /_ _/DerivedSources/WebCore/unified-sources/UnifiedSource-3a52ce78-41.cpp.o] Error 1
make[4]: *** waiting for unfinished processes....
make[3]: *** [CMakeFiles/Makefile2:918: Source/WebCore/CMakeFiles/Webcore.dir/all] Error 2
make[2]: *** [Makefile:152: all] Error 2
make[1]: *** [package/pkp-generic.mk:250: /home/matteo/buildroot-4/build/wpewebkit-2.30.3/.stamp_built] Error 2
make: *** [Makefile:84: _all] Error 2
答案1
我想知道构建是否因为内存不足而失败。检查 dmesg 的输出,看看进程是否被内存不足终止程序终止或由于内存不足而出现分段错误。一个可以尝试的解决方案是添加更多交换。