This service is available only in Japanese-language.

gcc-12.2.0-r0 do_compileが失敗する

bitbake core-image-minimal -c populate_sdk_ext を実行した際にエラーが発生してしまいます。
解消のためご助言をいただけましたら幸いです。
実行時のログは下記のとおりです。

NOTE: Resolving any missing task queue dependencies
Build Configuration:
BB_VERSION = "2.2.0"
BUILD_SYS = "x86_64-linux"
NATIVELSBSTRING = "ubuntu-22.04"
TARGET_SYS = "aarch64-poky-linux"
MACHINE = "qemuarm64"
DISTRO = "poky"
DISTRO_VERSION = "4.1.3"
TUNE_FEATURES = "aarch64 armv8a crc cortexa57"
TARGET_FPU = ""
meta
meta-poky
meta-yocto-bsp = "langdale:91d0157d6daf4ea61d6b4e090c0b682d3f3ca60f"
meta-msgq = "<unknown>:<unknown>"
省略
NOTE: Running task 2057 of 3754 (/home/user/yocto/poky/meta/recipes-devtools/gcc/gcc_12.2.bb:do_compile)
NOTE: recipe gcc-12.2.0-r0: task do_compile: Started
ERROR: gcc-12.2.0-r0 do_compile: oe_runmake failed
ERROR: gcc-12.2.0-r0 do_compile: ExecutionError('/home/user/yocto/build/tmp/work/cortexa57-poky-linux/gcc/12.2.0-r0/temp/run.do_compile.1969548', 1, None, None)
ERROR: Logfile of failure stored in: /home/user/yocto/build/tmp/work/cortexa57-poky-linux/gcc/12.2.0-r0/temp/log.do_compile.1969548
NOTE: recipe gcc-12.2.0-r0: task do_compile: Failed
ERROR: Task (/home/user/yocto/poky/meta/recipes-devtools/gcc/gcc_12.2.bb:do_compile) failed with exit code '1'
NOTE: Running task 2058 of 3754 (/home/user/yocto/poky/meta/recipes-extended/unzip/unzip_6.0.bb:do_compile)
NOTE: recipe unzip-1_6.0-r5: task do_compile: Started
NOTE: recipe unzip-1_6.0-r5: task do_compile: Succeeded
NOTE: Tasks Summary: Attempted 2058 tasks of which 0 didn't need to be rerun and 1 failed.

解決方法として、
$ bitbake -c cleansstate gcc
$ bitbake gcc
を実行してgccパッケージのビルドをやり直してみたのですが、以下のエラーが出てしまいます。

省略
-o gimple-match.o -MT gimple-match.o -MMD -MP -MF ./.deps/gimple-match.TPo gimple-match.cc
| {standard input}: Assembler messages:
| {standard input}:2015626: Warning: end of file not at end of a line; newline inserted
| {standard input}:2016729: Error: unknown pseudo-op: `.lo'
| {standard input}: Error: open CFI at the end of file; missing .cfi_endproc directive
| aarch64-poky-linux-g++: fatal error: Killed signal terminated program cc1plus
| compilation terminated.
| make[1]: *** [Makefile:1144: gimple-match.o] Error 1
| make[1]: Leaving directory '/home/user/yocto/build/tmp/work/cortexa57-poky-linux/gcc/12.2.0-r0/gcc-12.2.0/build.aarch64-poky-linux.aarch64-poky-linux/gcc'
| make: *** [Makefile:4619: all-gcc] Error 2
| ERROR: oe_runmake failed
| WARNING: exit code 1 from a shell command.
ERROR: Task (/home/user/yocto/poky/meta/recipes-devtools/gcc/gcc_12.2.bb:do_compile) failed with exit code '1'
NOTE: Tasks Summary: Attempted 694 tasks of which 689 didn't need to be rerun and 1 failed.

Summary: 1 task failed:
/home/user/yocto/poky/meta/recipes-devtools/gcc/gcc_12.2.bb:do_compile
Summary: There were 2 ERROR messages, returning a non-zero exit code.

以上、何卒よろしくお願いいたします。

"fatal error: Killed signal terminated program cc1plus" をキーワードに検索を行いますと同様の事例の確認が行えると思いますが、原因はメモリ不足によりOOM_KILLERが実行されcc1plusが強制終了されたためと推測します。

経験則となりますが、CPUのスレッド辺り4GB程度のメモリ容量(実メモリ+SWAP)を用意することで、メモリ不足を原因とする予測不可能なエラーは起こらなくなっています。

メモリ容量を増やしたところ、無事ビルドが完了しました。
ご教示いただきありがとうございました。