Yocto 构建失败,退出代码为“134”
Yocto build fail with exit code '134'
我正在尝试在 wsl2 上构建 yocto,但每当我尝试构建时都会遇到这些类型的错误。
ERROR: Task (/home/minwoo/yocto/poky/meta/recipes-core/initscripts/initscripts_1.0.bb:do_install) failed with exit code '134'
ERROR: Task (/home/minwoo/yocto/poky/meta/recipes-core/update-rc.d/update-rc.d_0.8.bb:do_install) failed with exit code '134'
我在此处附加了更多构建日志行。
什么是 134 错误,我该如何解决?
➜ rpi-build bitbake core-image-minimal
WARNING: You are running bitbake under WSLv2, this works properly but you should optimize your VHDX file eventually to avoid running out of storage space
Loading cache: 100% | | ETA: --:--:--
Loaded 0 entries from dependency cache.
Parsing recipes: 100% |################################################################################################################################| Time: 0:00:06
Parsing of 806 .bb files complete (0 cached, 806 parsed). 1410 targets, 42 skipped, 0 masked, 0 errors.
NOTE: Resolving any missing task queue dependencies
Build Configuration:
BB_VERSION = "1.49.0"
BUILD_SYS = "x86_64-linux"
NATIVELSBSTRING = "ubuntu-18.04"
TARGET_SYS = "x86_64-poky-linux"
MACHINE = "qemux86-64"
DISTRO = "poky"
DISTRO_VERSION = "3.2+snapshot-796be0593a607938aef3941372a9238b7e895446"
TUNE_FEATURES = "m64 core2"
TARGET_FPU = ""
meta
meta-poky
meta-yocto-bsp = "master:796be0593a607938aef3941372a9238b7e895446"
NOTE: Fetching uninative binary shim http://downloads.yoctoproject.org/releases/uninative/2.9/x86_64-nativesdk-libc.tar.xz;sha256sum=d07916b95c419c81541a19c8ef0ed8cbd78ae18437ff28a4c8a60ef40518e423 (will check PREMIRRORS first)
Initialising tasks: 100% |#############################################################################################################################| Time: 0:00:01
Sstate summary: Wanted 1093 Found 0 Missed 1093 Current 0 (0% match, 0% complete)
NOTE: Executing Tasks
ERROR: Task (/home/minwoo/yocto/poky/meta/recipes-core/initscripts/initscripts_1.0.bb:do_install) failed with exit code '134'
ERROR: Task (/home/minwoo/yocto/poky/meta/recipes-core/update-rc.d/update-rc.d_0.8.bb:do_install) failed with exit code '134'
Waiting for 1 running tasks to finish:
0: linux-yocto-5.8.18+gitAUTOINC+7883b60d32_3c5d210805-r0 do_fetch (pid 20443) 28% |#################### | 1.99M/s
正如 @hellow 指出的,解决方法是错误报告的一部分。
将以下行添加到 local.conf 解决了这个问题。
PSEUDO_IGNORE_PATHS_append = ",/run/"
关于您的第一个问题,什么是 134 错误。
Bitbake 实际上是运行其他程序来编译、安装、修补其配方等。其中一个程序是 pseudo 程序,它是一个类似 fakeroot 的程序,第一次调用 pseudo 以代码 134 退出,这意味着它被 SIGABRT 信号中止,因为 pseudo 无法设置其环境。
这个问题通常在 cleanall 操作配方后消失:
bitbake <recipe-name> -c cleanall
在您的情况下,您需要为两个配方(初始化脚本和更新-rc.d)执行上述命令。
这里是对这个问题的解释:https://wiki.yoctoproject.org/wiki/Pseudo_Abort
我正在尝试在 wsl2 上构建 yocto,但每当我尝试构建时都会遇到这些类型的错误。
ERROR: Task (/home/minwoo/yocto/poky/meta/recipes-core/initscripts/initscripts_1.0.bb:do_install) failed with exit code '134'
ERROR: Task (/home/minwoo/yocto/poky/meta/recipes-core/update-rc.d/update-rc.d_0.8.bb:do_install) failed with exit code '134'
我在此处附加了更多构建日志行。
什么是 134 错误,我该如何解决?
➜ rpi-build bitbake core-image-minimal
WARNING: You are running bitbake under WSLv2, this works properly but you should optimize your VHDX file eventually to avoid running out of storage space
Loading cache: 100% | | ETA: --:--:--
Loaded 0 entries from dependency cache.
Parsing recipes: 100% |################################################################################################################################| Time: 0:00:06
Parsing of 806 .bb files complete (0 cached, 806 parsed). 1410 targets, 42 skipped, 0 masked, 0 errors.
NOTE: Resolving any missing task queue dependencies
Build Configuration:
BB_VERSION = "1.49.0"
BUILD_SYS = "x86_64-linux"
NATIVELSBSTRING = "ubuntu-18.04"
TARGET_SYS = "x86_64-poky-linux"
MACHINE = "qemux86-64"
DISTRO = "poky"
DISTRO_VERSION = "3.2+snapshot-796be0593a607938aef3941372a9238b7e895446"
TUNE_FEATURES = "m64 core2"
TARGET_FPU = ""
meta
meta-poky
meta-yocto-bsp = "master:796be0593a607938aef3941372a9238b7e895446"
NOTE: Fetching uninative binary shim http://downloads.yoctoproject.org/releases/uninative/2.9/x86_64-nativesdk-libc.tar.xz;sha256sum=d07916b95c419c81541a19c8ef0ed8cbd78ae18437ff28a4c8a60ef40518e423 (will check PREMIRRORS first)
Initialising tasks: 100% |#############################################################################################################################| Time: 0:00:01
Sstate summary: Wanted 1093 Found 0 Missed 1093 Current 0 (0% match, 0% complete)
NOTE: Executing Tasks
ERROR: Task (/home/minwoo/yocto/poky/meta/recipes-core/initscripts/initscripts_1.0.bb:do_install) failed with exit code '134'
ERROR: Task (/home/minwoo/yocto/poky/meta/recipes-core/update-rc.d/update-rc.d_0.8.bb:do_install) failed with exit code '134'
Waiting for 1 running tasks to finish:
0: linux-yocto-5.8.18+gitAUTOINC+7883b60d32_3c5d210805-r0 do_fetch (pid 20443) 28% |#################### | 1.99M/s
正如 @hellow 指出的,解决方法是错误报告的一部分。
将以下行添加到 local.conf 解决了这个问题。
PSEUDO_IGNORE_PATHS_append = ",/run/"
关于您的第一个问题,什么是 134 错误。 Bitbake 实际上是运行其他程序来编译、安装、修补其配方等。其中一个程序是 pseudo 程序,它是一个类似 fakeroot 的程序,第一次调用 pseudo 以代码 134 退出,这意味着它被 SIGABRT 信号中止,因为 pseudo 无法设置其环境。
这个问题通常在 cleanall 操作配方后消失:
bitbake <recipe-name> -c cleanall
在您的情况下,您需要为两个配方(初始化脚本和更新-rc.d)执行上述命令。
这里是对这个问题的解释:https://wiki.yoctoproject.org/wiki/Pseudo_Abort