【问题标题】:Why does my BitBake autotools recipe fail during do_configure?为什么我的 BitBake 自动工具配方在 do_configure 期间失败?
【发布时间】:2016-01-12 21:13:59
【问题描述】:

我正在尝试创建一个使用自动工具的相当简单的 BitBake 配方,您可以在此处看到:

SUMMARY = "an example autotools recipe"
LICENSE = "MIT"
LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/MIT;md5=0835ade698e0bcf8506ecda2f7b4f302"

inherit autotools 
SRC_URI = "file://${TOPDIR}/piu/geo_utilities"
S = "${TOPDIR}/piu/geo_utilities"

使用包含此配方的默认包启动 BitBake 构建后,do_configure 失败并显示以下内容:

configure: exit 0
WARNING: /home/presslertj/repos/new-bb-layers/poky-jethro-build/build/tmp/work/x86-poky-linux/geo-utilities/0.1-r0/temp/run.do_configure.48030:1 exit 1 from
  exit 1

这似乎是矛盾的。 Here's 完整日志。什么会导致这种行为?

【问题讨论】:

  • 从日志看来配置已经运行;你做完了吗?您还可以在运行配置步骤之前和之后检查${WORKDIR}/build/ 目录吗? (当您运行 jethro 时,构建应该是树外的)。 geo_utilities 中的文件列表是什么样的?

标签: autotools configure yocto bitbake openembedded


【解决方案1】:

“配置:错误:源目录已配置;先在此处运行“make distclean””

这基本上意味着您已更改 ${B},但如果您使用自动工具执行此操作,您通常需要先清除现有构建。猜测一下,您已经从 autotools-brokensep 转到了 autotools,或者您在解压后的树中手动运行了 configure。

快速的“bitbake -c clean geo-utilities”将删除解压缩的源树,然后再次进行 bitbaking 应该可以正常工作。

【讨论】:

  • 我在我的一个自动工具包中遇到了这个 source dir already configured 错误。继承 autotools-brokensep 而不是 autotools 为我修复了它。
猜你喜欢
  • 2021-04-20
  • 2018-03-21
  • 2022-10-02
  • 1970-01-01
  • 2020-04-17
  • 2016-09-16
  • 1970-01-01
  • 2013-09-16
  • 1970-01-01
相关资源
最近更新 更多