This service is available only in Japanese-language.

bitbakeエラー

Yoctoをビルドで失敗を繰り返しています。
具体的になにをすれば解決できるか、教えていただければ幸いです。

sa@sa-VirtualBox:~/user_work/build$ bitbake core-image-weston
WARNING: /home/sa/user_work/build/../poky/meta/lib/oe/maketype.py:99: DeprecationWarning: Using or importing the ABCs from 'collections' instead of from 'collections.abc' is deprecated since Python 3.3, and in 3.9 it will stop working
if not isinstance(obj, collections.Callable):

WARNING: Host distribution "ubuntu-20.04" has not been validated with this version of the build system; you may possibly experience unexpected failures. It is recommended that you use a tested distribution.
NOTE: /home/sa/user_work/build/../meta-qt5/recipes-qt/qt5/qtbase_git.bb: base_contains is deprecated, please use bb.utils.contains instead. | ETA: 0:11:23
NOTE: /home/sa/user_work/build/../meta-qt5/recipes-qt/qt5/qtbase_git.bb: base_contains is deprecated, please use bb.utils.contains instead.
NOTE: /home/sa/user_work/build/../meta-qt5/recipes-qt/qt5/qtbase_git.bb: base_contains is deprecated, please use bb.utils.contains instead.
NOTE: /home/sa/user_work/build/../meta-qt5/recipes-qt/qt5/qtbase_git.bb: base_contains is deprecated, please use bb.utils.contains instead.
NOTE: /home/sa/user_work/build/../meta-qt5/recipes-qt/qt5/qtbase_git.bb: base_contains is deprecated, please use bb.utils.contains instead.
NOTE: /home/sa/user_work/build/../meta-renesas/meta-rzg1/recipes-qt/packagegroups/packagegroup-qt5-examples.bb: base_contains is deprecated, please use bb.utils.contains instead.
NOTE: /home/sa/user_work/build/../meta-renesas/meta-rzg1/recipes-qt/packagegroups/packagegroup-qt5-examples.bb: base_contains is deprecated, please use bb.utils.contains instead.
WARNING: /home/sa/user_work/build/../meta-renesas/meta-rzg1/recipes-multimedia/s3ctl-module/s3ctl-user-module.bb: Unable to get checksum for s3ctl-user-module SRC_URI entry s3ctl.tar.bz2: file could not be found
WARNING: /home/sa/user_work/build/../meta-renesas/meta-rzg1/recipes-multimedia/omx-module/omx-user-module.bb: Unable to get checksum for omx-user-module SRC_URI entry RTM0AC0000ZMCL0100JPCL4.tar.bz2: file could not be found
WARNING: /home/sa/user_work/build/../meta-renesas/meta-rzg1/recipes-multimedia/omx-module/omx-user-module.bb: Unable to get checksum for omx-user-module SRC_URI entry RTM0AC0000MVPL0100JPCL4.tar.bz2: file could not be found
WARNING: /home/sa/user_work/build/../meta-renesas/meta-rzg1/recipes-multimedia/omx-module/omx-user-module.bb: Unable to get checksum for omx-user-module SRC_URI entry RTM0AC0000M264D100JPCL4.tar.bz2: file could not be found
WARNING: /home/sa/user_work/build/../meta-renesas/meta-rzg1/recipes-multimedia/omx-module/omx-user-module.bb: Unable to get checksum for omx-user-module SRC_URI entry RTM0AC0000M264E100JPCL4.tar.bz2: file could not be found
WARNING: /home/sa/user_work/build/../meta-renesas/meta-rzg1/recipes-multimedia/omx-module/omx-user-module.bb: Unable to get checksum for omx-user-module SRC_URI entry RTM0AC0000MVRC0100JPCL4.tar.bz2: file could not be found
WARNING: /home/sa/user_work/build/../meta-renesas/meta-rzg1/recipes-multimedia/mmngr-module/mmngrbuf-user-module.bb: Unable to get checksum for mmngrbuf-user-module SRC_URI entry mmngrbuf.tar.bz2: file could not be found
WARNING: /home/sa/user_work/build/../meta-renesas/meta-rzg1/recipes-multimedia/mmngr-module/mmngr-user-module.bb: Unable to get checksum for mmngr-user-module SRC_URI entry mmngr.tar.bz2: file could not be found
WARNING: /home/sa/user_work/build/../meta-renesas/meta-rzg1/recipes-multimedia/fdpm-module/fdpm-user-module.bb: Unable to get checksum for fdpm-user-module SRC_URI entry fdpm.tar.bz2: file could not be found
WARNING: /home/sa/user_work/build/../meta-renesas/meta-rzg1/recipes-kernel/vspm-module/kernel-module-vspm.bb: Unable to get checksum for kernel-module-vspm SRC_URI entry vspm-kernel.tar.bz2: file could not be found
WARNING: /home/sa/user_work/build/../meta-renesas/meta-rzg1/recipes-kernel/uvcs-module/kernel-module-uvcs.bb: Unable to get checksum for kernel-module-uvcs SRC_URI entry uvcs-kernel.tar.bz2: file could not be found
WARNING: /home/sa/user_work/build/../meta-renesas/meta-rzg1/recipes-kernel/s3ctl-module/kernel-module-s3ctl.bb: Unable to get checksum for kernel-module-s3ctl SRC_URI entry s3ctl-kernel.tar.bz2: file could not be found
WARNING: /home/sa/user_work/build/../meta-renesas/meta-rzg1/recipes-kernel/mmngr-module/kernel-module-mmngrbuf.bb: Unable to get checksum for kernel-module-mmngrbuf SRC_URI entry mmngrbuf.tar.bz2: file could not be found
WARNING: /home/sa/user_work/build/../meta-renesas/meta-rzg1/recipes-kernel/mmngr-module/kernel-module-mmngr.bb: Unable to get checksum for kernel-module-mmngr SRC_URI entry mmngr.tar.bz2: file could not be found
WARNING: /home/sa/user_work/build/../meta-renesas/meta-rzg1/recipes-kernel/fdpm-module/kernel-module-fdpm.bb: Unable to get checksum for kernel-module-fdpm SRC_URI entry fdpm-kernel.tar.bz2: file could not be found
NOTE: /home/sa/user_work/build/../meta-renesas/meta-rzg1/recipes-bsp/u-boot/u-boot_2013.01.01.bb: base_contains is deprecated, please use bb.utils.contains instead.
WARNING: /home/sa/user_work/build/../meta-renesas/meta-rzg1/recipes-multimedia/vspm-module/vspm-user-module.bb: Unable to get checksum for vspm-user-module SRC_URI entry vspm-user.tar.bz2: file could not be found
Parsing recipes: 100% |########################################################################################################################| Time: 0:13:17
Parsing of 2178 .bb files complete (0 cached, 2178 parsed). 3033 targets, 268 skipped, 7 masked, 0 errors.
NOTE: Resolving any missing task queue dependencies

Build Configuration:
BB_VERSION = "1.36.0"
BUILD_SYS = "x86_64-linux"
NATIVELSBSTRING = "universal"
TARGET_SYS = "arm-poky-linux-gnueabi"
MACHINE = "iwg20m-g1m"
DISTRO = "poky"
DISTRO_VERSION = "2.4.2"
TUNE_FEATURES = "arm armv7ve vfp neon callconvention-hard cortexa15"
TARGET_FPU = "hard"
SOC_FAMILY = "rzg1:r8a7743"
meta
meta-poky
meta-yocto-bsp = "tmp:342fbd6a3e57021c8e28b124b3adb241936f3d9d"
meta-rzg1 = "HEAD:3010443641f9a14d2f2a8044ddaa433c2eef2ea1"
meta-linaro-toolchain
meta-optee = "tmp:75dfb67bbb14a70cd47afda9726e2e1c76731885"
meta-oe
meta-multimedia
meta-python
meta-networking = "tmp:dacfa2b1920e285531bec55cd2f08743390aaf57"
meta-qt5 = "tmp:c1b0c9f546289b1592d7a895640de103723a0305"
common
hmi-demo = "HEAD:14658c00367babf5b04b2a17414f7c8b8a7bdf70"

Initialising tasks: 100% |#####################################################################################################################| Time: 0:00:54
NOTE: Executing SetScene Tasks
NOTE: Executing RunQueue Tasks
ERROR: m4-native-1.4.18-r0 do_compile: oe_runmake failed
ERROR: m4-native-1.4.18-r0 do_compile: Function failed: do_compile (log file is located at /home/sa/user_work/build/tmp/work/x86_64-linux/m4-native/1.4.18-r0/temp/log.do_compile.4584)
ERROR: Logfile of failure stored in: /home/sa/user_work/build/tmp/work/x86_64-linux/m4-native/1.4.18-r0/temp/log.do_compile.4584
Log data follows:
| DEBUG: Executing shell function do_compile
| NOTE: make -j 1 infodir=/home/sa/user_work/build/tmp/work/x86_64-linux/m4-native/1.4.18-r0/recipe-sysroot-native/usr/share/info
| make all-recursive
| make[1]: Entering directory '/home/sa/user_work/build/tmp/work/x86_64-linux/m4-native/1.4.18-r0/build'
| Making all in .
| make[2]: Entering directory '/home/sa/user_work/build/tmp/work/x86_64-linux/m4-native/1.4.18-r0/build'
| make[2]: Nothing to be done for 'all-am'.
| make[2]: Leaving directory '/home/sa/user_work/build/tmp/work/x86_64-linux/m4-native/1.4.18-r0/build'
| Making all in examples
| make[2]: Entering directory '/home/sa/user_work/build/tmp/work/x86_64-linux/m4-native/1.4.18-r0/build/examples'
| make[2]: Nothing to be done for 'all'.
| make[2]: Leaving directory '/home/sa/user_work/build/tmp/work/x86_64-linux/m4-native/1.4.18-r0/build/examples'
| Making all in lib
| make[2]: Entering directory '/home/sa/user_work/build/tmp/work/x86_64-linux/m4-native/1.4.18-r0/build/lib'
| make all-am
| make[3]: Entering directory '/home/sa/user_work/build/tmp/work/x86_64-linux/m4-native/1.4.18-r0/build/lib'
| gcc -I. -I../../m4-1.4.18/lib -isystem/home/sa/user_work/build/tmp/work/x86_64-linux/m4-native/1.4.18-r0/recipe-sysroot-native/usr/include -isystem/home/sa/user_work/build/tmp/work/x86_64-linux/m4-native/1.4.18-r0/recipe-sysroot-native/usr/include -O2 -pipe -c -o freadahead.o ../../m4-1.4.18/lib/freadahead.c
| ../../m4-1.4.18/lib/freadahead.c: In function ‘freadahead’:
| ../../m4-1.4.18/lib/freadahead.c:92:3: error: #error "Please port gnulib freadahead.c to your platform! Look at the definition of fflush, fread, ungetc on your system, then report this to bug-gnulib."
| 92 | #error "Please port gnulib freadahead.c to your platform! Look at the definition of fflush, fread, ungetc on your system, then report this to bug-gnulib."
| | ^~~~~
| make[3]: *** [Makefile:1915: freadahead.o] Error 1
| make[3]: Leaving directory '/home/sa/user_work/build/tmp/work/x86_64-linux/m4-native/1.4.18-r0/build/lib'
| make[2]: *** [Makefile:1674: all] Error 2
| make[2]: Leaving directory '/home/sa/user_work/build/tmp/work/x86_64-linux/m4-native/1.4.18-r0/build/lib'
| make[1]: *** [Makefile:1572: all-recursive] Error 1
| make[1]: Leaving directory '/home/sa/user_work/build/tmp/work/x86_64-linux/m4-native/1.4.18-r0/build'
| ERROR: oe_runmake failed
| make: *** [Makefile:1528: all] Error 2
| WARNING: exit code 1 from a shell command.
| ERROR: Function failed: do_compile (log file is located at /home/sa/user_work/build/tmp/work/x86_64-linux/m4-native/1.4.18-r0/temp/log.do_compile.4584)
ERROR: Task (/home/sa/user_work/build/../poky/meta/recipes-devtools/m4/m4-native_1.4.18.bb:do_compile) failed with exit code '1'
NOTE: Tasks Summary: Attempted 34 tasks of which 33 didn't need to be rerun and 1 failed.

Summary: 1 task failed:
/home/sa/user_work/build/../poky/meta/recipes-devtools/m4/m4-native_1.4.18.bb:do_compile
Summary: There were 18 WARNING messages shown.
Summary: There were 2 ERROR messages shown, returning a non-zero exit code.

構築対象のBSPですが、
DISTRO = "poky"
DISTRO_VERSION = "2.4.2"
となっており、このバージョンで動作確認が行われているUbuntuは、
ubuntu-15.04/ubuntu-16.04/ubuntu-16.10/ubuntu-17.04 です。
上記のバージョンであれば、動作検証後にリリースがおこなわれているんどえ、
開発ホストに現在もLTSとしてサポートが行われているubuntu-16.04 を使用することで、
現在発生しているエラーは解消されると考えます。

yakuhito様
回答ありがとうございます。
早速ubuntu-16.04をインストールしてやり直してみます。

初心者でわからないことが多いのですが逆に現在のubuntu-20.04に対応させることも可能なのでしょうか?
ubuntu-16.04でYoctoを使い続ける方が簡単であればそのようにします。

YoctoProjectからリリースされているyocto2.4.4 での検証となりますが、m4-nativeに関しては特にレシピに対する変更も
なく同一の構成となります。
ホスト側で構築に使用するglibcの変更に起因するエラーで、m4に対してもその後のバージョン向けに修正のパッチが
出ていますが、
多くのレシピで同様の修正が行われている可能性もあり、ubuntu20.04上で対応するのはかなり大変と
思われますので、ubuntu16.04上での構築をお勧めします。

yakuhito様
回答ありがとうございます。
当該レシピのようにglibcを使用する場合はubuntu16.04が推奨で、glibcを使わないレシピであればubuntu20.04でも構わないという理解でよろしいでしょうか?

最初の方にwarningが出ていますが、pythonのバージョンもかなり違っています。
検証が行われた組み合わせと異なった環境で構築を行った際、エラー発生時の原因の切り分けが困難になることが予測されますので、できればubuntu16.04若しくはBSPの推奨ディストリビューションの使用をお勧めします。

※追記
ej0210-yoctostartupguide-ume-v2.10.pdf の4ページでは Linux Host PC はUbuntu 16.04 LTS を推奨と記載されています。
ベンダー推奨外のバージョンを使用した場合は、問題発生時に回答が遅くなる又はサポート外となり回答が得られない場合もあるかと。

yakuhito様
回答ありがとうございます。
バージョンは新しい方がいいというわけではないんですね、あまり深く考えず、yocto開発に慣れてくるまではubuntu16.04で進めます。初心者へ丁寧に説明していただき本当にありがとうございました。