WARNING: ... LICENSE value ... has an invalid format - license names must be separated by the following characters to indicate the license selection: ...

メッセージ

WARNING: MyRecipe: LICENSE value “My License” has an invalid format - license names must be separated by the following characters to indicate the license selection: &|()

警告: MyRecipe: LICENSE の値 “My License” は無効な形式 - ライセンス名は選択条件を示すために次の文字で区切られていなければならない: &|()

make[1]: *** [s-attrtab] Killed

問題

gcc-cross-initial-arm” レシピのコンパイルがエラーで失敗する。

環境
  • AmazonLinuxAMI-2016.09
  • Yocto 2.2.1 (Morty)
メッセージ
make[1]: *** [s-attrtab] Killed
原因

メモリ不足により、OOM Killer に kill された。

解決方法

スワップを作る。

SWAP=/tmp/swap
dd if=/dev/zero of=$SWAP bs=1M count=1024
mkswap $SWAP
sudo swapon $SWAP
参考文献

amazon ec2 - Make exits with "Error 2" when trying to install gcc-4.8.1 - Stack Overflow

ERROR: OE-core's config sanity checker detected a potential misconfiguration.

メッセージ
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:
エラー:  OE-core のコンフィグ正当性チェッカーが潜在的なミスを検知した。
    このエラーの原因を修正するか、あるいは自己責任でチェッカーを無効にするか (sanity.conf を参照)。
    以下は、潜在的な問題 / アドバイスの一覧:

WARNING: Host distribution ... 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.

メッセージ

WARNING: Host distribution “AmazonLinuxAMI-2016.09” 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.

警告: ホストのディストリビューション “AmazonLinuxAMI-2016.09” は、このビルドシステムバージョンで検証されていない。予期しない失敗をする可能性がある。テストされたディストリビューションを使うことを勧める。

error: Can't install nativesdk-qt4-tools-4.8.7-r0@x86_64_nativesdk: no package provides libQtDBus.so.4()(64bit)

問題

bitbake meta-toolchain-qt がエラーで失敗する。

メッセージ
ERROR: meta-toolchain-qt-1.0-r7 do_populate_sdk: Unable to install packages. Command 'build/tmp/sysroots/x86_64-linux/usr/bin/smart --log-level=warning --data-dir=build/tmp/work/cortexa9hf-neon-poky-linux-gnueabi/meta-toolchain-qt/1.0-r7/sdk/image/var/lib/smart install -y nativesdk-packagegroup-qt-toolchain-host@x86_64_nativesdk packagegroup-cross-canadian-imx6qsabresd@x86_64_nativesdk' returned 1:
Computing transaction...error: Can't install nativesdk-qt4-tools-4.8.7-r0@x86_64_nativesdk: no package provides libQtDBus.so.4()(64bit)
ERROR: meta-toolchain-qt-1.0-r7 do_populate_sdk: Function failed: do_populate_sdk
ERROR: Logfile of failure stored in: build/tmp/work/cortexa9hf-neon-poky-linux-gnueabi/meta-toolchain-qt/1.0-r7/temp/log.do_populate_sdk
ERROR: Task 7 (meta-qt4/recipes-qt4/meta/meta-toolchain-qt.bb, do_populate_sdk) failed with exit code '1'
解決方法

meta-qt4/recipes-qt4/qt4/nativesdk-qt4-tools.inc を書き換える。

 do_install() {
     install -d ${D}${bindir}
     install -m 0755 bin/qmake2 ${D}${bindir}/qmake2
-    for i in moc uic uic3 rcc lrelease lupdate qdbuscpp2xml qdbusxml2cpp; do
+    for i in moc uic rcc lrelease; do
         install -m 0755 bin/${i} ${D}${bindir}/${i}4
     done
 
     (cd ${D}${bindir}; \
     ln -s qmake2 qmake; \
-    for i in moc uic uic3 rcc lrelease lupdate qdbuscpp2xml qdbusxml2cpp; do \
+    for i in moc uic rcc lrelease; do \
         ln -s ${i}4 ${i}; \
     done)