我正在尝试从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.
发布于 2019-10-03 02:01:37
在相同的配方中遇到了相同的错误。您可以对特定包进行bitbake清理,然后重新构建它。然后重新运行您的完整构建。
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
https://stackoverflow.com/questions/57294288
复制相似问题