我正在尝试在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无法设置其环境。
这个问题通常在清理完配方后就会消失:
位烘焙<配方名称>-c清理
在您的情况下,您需要为两个配方(initscripts和update-rc.d(执行上面的命令
以下是对此问题的解释:https://wiki.yoctoproject.org/wiki/Pseudo_Abort