编译时遇到如下错误是怎么回事?
本帖最后由 harrix 于 2022-12-30 14:35 编辑编译遇到如下错误,请帮解答一下,谢谢。百度一下说是虚拟机内存大小问题,但我是用公司服务器编译的,需要如何处理?2022-12-30T13:34:28 aarch64-buildroot-linux-gnu-g++.br_real: fatal error: Killed signal terminated program cc1plus
2022-12-30T13:34:28 compilation terminated.
CXX obj/content/browser/browser/mixed_content_navigation_throttle.o
2022-12-30T13:36:29 ninja: build stopped: subcommand failed.
2022-12-30T13:36:32 Makefile.gn_run:398: recipe for target 'run_ninja' failed
2022-12-30T13:36:32 make: *** Error 1
2022-12-30T13:36:32 Makefile:82: recipe for target 'sub-gn_run-pro-make_first' failed
2022-12-30T13:36:32 make: *** Error 2
2022-12-30T13:36:32 Makefile:76: recipe for target 'sub-core-make_first' failed
2022-12-30T13:36:32 make: *** Error 2
2022-12-30T13:36:32 Makefile:48: recipe for target 'sub-src-make_first' failed
2022-12-30T13:36:32 make: *** Error 2
2022-12-30T13:36:32 package/pkg-generic.mk:228: recipe for target '/home/lingzhi/sdb/lz05/RK3568/feiling/OK3568-linux-source/buildroot/output/OK3568/build/qt5webengine-5.14.2/.stamp_built' failed
2022-12-30T13:36:32 make: *** Error 2
2022-12-30T13:36:34 /home/sdb/RK3568/feiling/OK3568-linux-source/buildroot/output/OK3568/Makefile:16: recipe for target '_all' failed
2022-12-30T13:36:34 make: *** Error 2
Command exited with non-zero status 1
you take 10:42.04 to build builroot
ERROR: Running build_buildroot failed!
ERROR: exit code 1 from line 559:
/usr/bin/time -f "you take %E to build builroot" $COMMON_DIR/mk-buildroot.sh $BOARD_CONFIG
您在服务器中使用的环境是我们提供的吗?建议还是使用我们提供的虚拟机进行编译,因为不确定因素较多,您这个报错只能看到最开始的g++编译终止之后整体全部停止,至于内存大小的影响,您可以看一下build.sh中,在相应的make编译后有-jx,您可以适当减小x的数值,编译时所占用的内存就会减小。
页:
[1]