0

我想在我的设备 Imx6 上安装 mender,为此我成功添加了 meta-mender-core 层,但是当我尝试 bitbake vim 例如我得到:

rama@RR06:/oe-core/build$ bitbake vim
NOTE: Trying for parse version info from: gcc version 5.2.1 20151005 (Linaro GCC 5.2-2015.11-2) 
NOTE: Trying for parse version info from: gcc version 5.2.1 20151005 (Linaro GCC 5.2-2015.11-2) 
NOTE: Trying for parse version info from: gcc version 5.2.1 20151005 (Linaro GCC 5.2-2015.11-2) 
Loading cache: 100% |#########################################################################################| ETA:  00:00:00
Loaded 983 entries from dependency cache.
NOTE: Error during finalise of /home/rama/repositories/meta-mender/meta-mender-core/recipes-mender/mender-artifact/mender-artifact_2.1.1.bb
NOTE: Error during finalise of /home/rama/repositories/meta-mender/meta-mender-core/recipes-mender/mender-artifact/mender-artifact_2.0.0.bb
NOTE: Error during finalise of /home/rama/repositories/meta-mender/meta-mender-core/recipes-mender/mender-artifact/mender-artifact_2.0.1.bb
NOTE: Error during finalise of /home/rama/repositories/meta-mender/meta-mender-core/recipes-mender/mender-artifact/mender-artifact_git.bb
NOTE: Error during finalise of /home/rama/repositories/meta-mender/meta-mender-core/recipes-mender/mender-artifact/mender-artifact_1.0.0.bb
NOTE: Error during finalise of /home/rama/repositories/meta-mender/meta-mender-core/recipes-mender/mender-artifact/mender-artifact_2.0.2.bb
NOTE: Error during finalise of /home/rama/repositories/meta-mender/meta-mender-core/recipes-mender/mender-artifact/mender-artifact_2.1.0.bb
NOTE: Error during finalise of /home/rama/repositories/meta-mender/meta-mender-core/recipes-mender/mender/mender_1.3.0b1.bb
NOTE: Error during finalise of /home/rama/repositories/meta-mender/meta-mender-core/recipes-mender/mender/mender_1.2.1.bb
NOTE: Error during finalise of /home/rama/repositories/meta-mender/meta-mender-core/recipes-mender/mender/mender_1.1.1.bb
NOTE: Error during finalise of /home/rama/repositories/meta-mender/meta-mender-core/recipes-mender/mender/mender_git.bb
ERROR: ExpansionError during parsing /home/rama/repositories/meta-mender/meta-mender-core/recipes-mender/mender-artifact/mender-artifact_1.0.0.bb: Failure expanding variable GOPTESTBUILDFLAGS: SkipPackage: Unsupported CPU architecture: ${TUNE_ARCH}
NOTE: Error during finalise of /home/rama/repositories/meta-mender/meta-mender-core/recipes-mender/mender/mender_1.1.0.bb
NOTE: Error during finalise of /home/rama/repositories/meta-mender/meta-mender-core/recipes-mender/mender/mender_1.0.0.bb
NOTE: Error during finalise of /home/rama/repositories/meta-mender/meta-mender-core/recipes-mender/mender/mender_1.2.0.bb
NOTE: Error during finalise of /home/rama/repositories/meta-mender/meta-mender-core/recipes-mender/mender/mender_1.0.1.bb
NOTE: Error during finalise of /home/rama/repositories/meta-mender/meta-mender-core/recipes-mender/mender/mender_1.1.2.bb

Summary: There was 1 ERROR message shown, returning a non-zero exit code.

如果我删除 meta-mender-core 层,vim 会成功烘焙。

我用的是 Ubuntu 14.04,mender 的分支是 pyro

4

1 回答 1

0

我不能确定*,但我认为问题是基于 poky 和 ​​meta-mender-core 之间的不兼容版本。

这个错误告诉我们bitbake找不到这个变量GOPTESTBUILDFLAGS的定义。

我假设您在 poky 或更旧版本上使用 pyro 分支,并且在下一个版本中的GOPTESTBUILDFLAGS的go.bbclass定义中出现rocko go.bbclass。我的建议是尝试将 poky 版本更新到 rocko 分支。

使用最新版本的 poky、meta-mender-core 和 meta-oe(这里是 vim 配方),我能够使用这些配置层“烘焙” vim 。

*更改为 pyro 分支 (meta-mender-core) 后,我在任何其他文件中都找不到使用GOPTESTBUILDFLAGS变量来重现此问题。

于 2017-12-08T18:42:10.450 回答