【问题标题】:Failure while compiling apt - Yocto编译 apt 时失败 - Yocto
【发布时间】:2019-07-31 15:29:33
【问题描述】:

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

IMAGE_FEATURES += " package-management"

IMAGE_INSTALL_append = " apt"

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

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.

【问题讨论】:

    标签: debian yocto debian-based


    【解决方案1】:

    使用相同的配方遇到相同的错误。您可以 bitbake clean 特定的包,并重建它。然后重新运行完整的构建。

    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
    

    【讨论】:

      猜你喜欢
      • 2018-03-24
      • 1970-01-01
      • 1970-01-01
      • 2015-02-04
      • 2021-10-07
      • 1970-01-01
      • 2018-04-26
      • 2014-03-10
      • 2012-11-23
      相关资源
      最近更新 更多