This service is available only in Japanese-language.

Ubuntu 16.04 でYocto3.2の構築を行うには

社内からの問い合わせです。

Ubuntu16.04 上でYocto3.2 の構築を行おうとしましたが、以下のエラーが出てbitbakeの起動に失敗します。
どのような手順を踏めば、bitbakeの実行が可能になりますか?

ERROR: OE-core's config sanity checker detected a potential misconfiguration.
Either fix the cause of this error or at your own risk disable the checker (see sanity.conf).
Following is the list of potential problems / advisories:

Your version of gcc is older than 6.0 and will break builds. Please install a newer version of gcc (you could use the project's buildtools-extended-tarball or use scripts/install-buildtools).

以下、poky 以下に移動して実行した結果となります。
$ ./scripts/install-buildtools
を実行すると、buildtools ディレクトリが生成され、環境設定ファイル及びsysroot 以下に、構築で
使用するバイナリのインストールが行われます。

環境設定前と環境設定後の違いは以下となります。
=========================================================
$ which gcc
/usr/bin/gcc
$ gcc --version
gcc (Ubuntu 5.4.0-6ubuntu1~16.04.12) 5.4.0 20160609
Copyright (C) 2015 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
$ . buildtools/environment-setup-x86_64-pokysdk-linux
$ which gcc
/home/lineo/Yocto/3.2/poky/buildtools/sysroots/x86_64-pokysdk-linux/usr/bin/gcc
$ gcc --version
gcc (GCC) 10.2.0
Copyright (C) 2020 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
$
=========================================================
以降は、oe-init-build-env に加えて、 buildtools/environment-setup-x86_64-pokysdk-linux を
shellに読み込ませることで、ubuntu16.04 でも bitbake の実行が可能となります。