首页
学习
活动
专区
工具
TVP
发布
社区首页 >问答首页 >编译apt - Yocto失败

编译apt - Yocto失败
EN

Stack Overflow用户
提问于 2019-07-31 23:29:34
回答 1查看 417关注 0票数 0

我正在尝试从yocto构建一个linux映像。为了让它基于debian,我正在使用https://github.com/meta-debian/meta-debian,并遵循下面的说明。我在build/conf/local.conf文件中添加的唯一主要内容是以下行:

代码语言:javascript
复制
IMAGE_FEATURES += " package-management"

IMAGE_INSTALL_append = " apt"

但是,apt编译失败,出现以下错误:

代码语言:javascript
复制
ERROR: apt-1.2.24-r0 do_compile: oe_runmake failed
ERROR: apt-1.2.24-r0 do_compile: Function failed: do_compile (log file is located at /home/preempt/debian-preempt/poky/build/tmp/work/core2-64-deby-linux/apt/1.2.24-r0/temp/log.do_compile.110040)
ERROR: Logfile of failure stored in: /home/preempt/debian-preempt/poky/build/tmp/work/core2-64-deby-linux/apt/1.2.24-r0/temp/log.do_compile.110040
Log data follows:
| DEBUG: SITE files ['endian-little', 'common-linux', 'common-glibc', 'bit-64', 'x86_64-linux', 'common']
| DEBUG: Executing shell function do_compile
| NOTE: make -j 1
| Generating POT file /home/preempt/debian-preempt/poky/build/tmp/work/core2-64-deby-linux/apt/1.2.24-r0/build/po/apt.pot
| mv: cannot stat '/home/preempt/debian-preempt/poky/build/tmp/work/core2-64-deby-linux/apt/1.2.24-r0/build/po/domains/apt/c.pot.tmp': No such file or directory
| ERROR: oe_runmake failed
| makefile:32: recipe for target '/home/preempt/debian-preempt/poky/build/tmp/work/core2-64-deby-linux/apt/1.2.24-r0/build/po/apt.pot' failed
| make[2]: *** [/home/preempt/debian-preempt/poky/build/tmp/work/core2-64-deby-linux/apt/1.2.24-r0/build/po/apt.pot] Error 1
| Makefile:14: recipe for target 'all' failed
| make[1]: *** [all] Error 2
| makefile:18: recipe for target 'all' failed
| make: *** [all] Error 2
| WARNING: exit code 1 from a shell command.
| ERROR: Function failed: do_compile (log file is located at /home/preempt/debian-preempt/poky/build/tmp/work/core2-64-deby-linux/apt/1.2.24-r0/temp/log.do_compile.110040)
ERROR: Task (/home/preempt/debian-preempt/poky/meta/recipes-devtools/apt/apt_1.2.24.bb:do_compile) failed with exit code '1'
NOTE: Tasks Summary: Attempted 987 tasks of which 986 didn't need to be rerun and 1 failed.

Summary: 1 task failed:
  /home/preempt/debian-preempt/poky/meta/recipes-devtools/apt/apt_1.2.24.bb:do_compile
Summary: There were 2 ERROR messages shown, returning a non-zero exit code.
EN

回答 1

Stack Overflow用户

发布于 2019-10-03 02:01:37

在相同的配方中遇到了相同的错误。您可以对特定包进行bitbake清理,然后重新构建它。然后重新运行您的完整构建。

代码语言:javascript
复制
bitbake -b meta/recipes-devtools/apt/apt_1.2.24.bb -c clean -D
bitbake -b meta/recipes-devtools/apt/apt_1.2.24.bb -D
票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/57294288

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档