【问题标题】:Bitbake recipe is failing to chown various files and directoriesBitbake 配方无法 chown 各种文件和目录
【发布时间】:2021-12-05 04:21:56
【问题描述】:

我正在制作一个自定义的 poky 设置,这似乎给我带来了一些问题。我从分支“dunfell”重构了 poky,并添加了几层。最初,我将所有图层(包括基本 poky 目录中的图层)移动到一个新目录“layers”。我重构了 bblayers.conf 以指向这个新位置,并尝试构建 core-image-minimal。没有运气。在调用 chown -R root:root ... 的 do_install() 中,db-native (meta/recipes-support/db/db_5.3.28.bb) 中的配方失败时不断出现错误。

经过一番折腾无济于事后,我决定删除所有额外的层,以及我自己的自定义层以隔离问题。我现在只需要 bblayers.conf 指向我的新层目录 (poky/layers/meta*) 中的 meta、meta-yocto-bsp 和 meta-poky。我所知道的一切都需要重构才能看到这个新的层目录(据我所知)已经得到处理。我重构的所有内容都是 oe-init-build-env、.templateconf 和 bblayers.conf.sample。

现在只有这三层,一切都重构了,我尝试再次构建 core-image-minimal,但无济于事。我得到了同样的错误,在这里删节:

oc/articles/inmemory': Operation not permitted
| chown: changing ownership of '[redacted]/test/build/tmp/work/x86_64-linux/db-native/1_5.3.28-r1/image/[redacted]/test/build/tmp/work/x86_64-linux/db-native/1_5.3.28-r1/recipe-sysroot-native/usr/share/doc/articles': Operation not permitted
| chown: changing ownership of '[redacted]/build/tmp/work/x86_64-linux/db-native/1_5.3.28-r1/image/[redacted]/test/build/tmp/work/x86_64-linux/db-native/1_5.3.28-r1/recipe-sysroot-native/usr/share/doc': Operation not permitted
| chown: changing ownership of '[redacted]/test/build/tmp/work/x86_64-linux/db-native/1_5.3.28-r1/image/[redacted]/test/build/tmp/work/x86_64-linux/db-native/1_5.3.28-r1/recipe-sysroot-native/usr/share': Operation not permitted
| chown: changing ownership of '[redacted]/test/build/tmp/work/x86_64-linux/db-native/1_5.3.28-r1/image/[redacted]/test/build/tmp/work/x86_64-linux/db-native/1_5.3.28-r1/recipe-sysroot-native/usr': Operation not permitted
| chown: changing ownership of '[redacted]/test/build/tmp/work/x86_64-linux/db-native/1_5.3.28-r1/image/[redacted]/test/build/tmp/work/x86_64-linux/db-native/1_5.3.28-r1/recipe-sysroot-native': Operation not permitted
| chown: changing ownership of '[redacted]/test/build/tmp/work/x86_64-linux/db-native/1_5.3.28-r1/image/[redacted]/test/build/tmp/work/x86_64-linux/db-native/1_5.3.28-r1': Operation not permitted
| chown: changing ownership of '[redacted]/test/build/tmp/work/x86_64-linux/db-native/1_5.3.28-r1/image/[redacted]/test/build/tmp/work/x86_64-linux/db-native': Operation not permitted
| chown: changing ownership of '[redacted]/test/build/tmp/work/x86_64-linux/db-native/1_5.3.28-r1/image/[redacted]/test/build/tmp/work/x86_64-linux': Operation not permitted
| chown: changing ownership of '[redacted]/test/build/tmp/work/x86_64-linux/db-native/1_5.3.28-r1/image/[redacted]/test/build/tmp/work': Operation not permitted
| chown: changing ownership of '[redacted]/test/build/tmp/work/x86_64-linux/db-native/1_5.3.28-r1/image/[redacted]/test/build/tmp': Operation not permitted
| chown: changing ownership of '[redacted]/test/build/tmp/work/x86_64-linux/db-native/1_5.3.28-r1/image/[redacted]/test/build': Operation not permitted
| chown: changing ownership of '[redacted]/test/build/tmp/work/x86_64-linux/db-native/1_5.3.28-r1/image/[redacted]/test': Operation not permitted
| chown: changing ownership of '[redacted]/test/build/tmp/work/x86_64-linux/db-native/1_5.3.28-r1/image/[redacted]': Operation not permitted
| chown: changing ownership of '[redacted]/test/build/tmp/work/x86_64-linux/db-native/1_5.3.28-r1/image/[redacted]': Operation not permitted
| chown: changing ownership of '[redacted]/test/build/tmp/work/x86_64-linux/db-native/1_5.3.28-r1/image/space': Operation not permitted
| chown: changing ownership of '[redacted]/test/build/tmp/work/x86_64-linux/db-native/1_5.3.28-r1/image': Operation not permitted
| WARNING: [redacted]/test/build/tmp/work/x86_64-linux/db-native/1_5.3.28-r1/temp/run.do_install.6001:1 exit 1 from 'chown -R root:root [redacted]/test/build/tmp/work/x86_64-linux/db-native/1_5.3.28-r1/image'
| ERROR: Execution of '[redacted]/test/build/tmp/work/x86_64-linux/db-native/1_5.3.28-r1/temp/run.do_install.6001' failed with exit code 1
ERROR: Task (virtual:native:[redacted]/test/layers/meta/recipes-support/db/db_5.3.28.bb:do_install) failed with exit code '1'
NOTE: Tasks Summary: Attempted 392 tasks of which 370 didn't need to be rerun and 1 failed.

Summary: 1 task failed:
  virtual:native:[redacted]/test/layers/meta/recipes-support/db/db_5.3.28.bb:do_install
Summary: There was 1 ERROR message shown, returning a non-zero exit code.

作为一些背景,我的分叉 poky 是这样设置的:

./
.git/
.repo/
bitbake/
build/
contrib/
documentation/
scripts/
layers/
meta-skeleton/
oe-init-build-env*
.gitignore
.templateconf
MEMORIAM

这里是图层目录:

./
meta-openembedded/
meta-poky/
meta-qt5/
meta-raspberrypi/
meta-rpi/
meta-yocto-bsp/
meta/

bblayers.conf 是这样的:

# POKY_BBLAYERS_CONF_VERSION is increased each time build/conf/bblayers.conf
# changes incompatibly
POKY_BBLAYERS_CONF_VERSION = "2"

BBPATH = "${TOPDIR}"
BBFILES ?= ""

BBLAYERS ?= " \
  [redacted]/test/layers/meta \
  [redacted]/test/layers/meta-poky \
  [redacted]/test/layers/meta-yocto-bsp \

我在网络上发现了很多类似的问题,尽管许多问题似乎有所不同以至于不适用(例如与网络相关、不同的配方等)。我发现的几个与此直接相关的极其相似的问题从未得到解答。

我非常感谢任何愿意提供帮助的人!谢谢!

【问题讨论】:

  • " 我已经从分支 "dunfell"" 重构了 poky" --> 你改变了什么?
  • 严格命名方案和文件组织以适应我正在进行的项目。

标签: linux yocto bitbake openembedded


【解决方案1】:

看起来 scripts/native-intercept 目录是空的?

【讨论】:

  • 请将其表述为有条件的解释性答案,以避免给人以澄清问题而不是回答的印象(应该使用评论而不是答案,比较meta.stackexchange.com/questions/214173/…)。例如像“如果你的问题是......那么解决方案是......因为......。”
猜你喜欢
  • 2023-03-03
  • 1970-01-01
  • 2016-02-28
  • 2021-12-08
  • 1970-01-01
  • 1970-01-01
  • 2011-11-07
  • 2017-04-04
  • 2022-11-11
相关资源
最近更新 更多