prelink-rtld:找不到命令

prelink-rtld: command not found

尝试使用 yocto 构建我的项目时出现 Prelink-rtld: command not found 错误。 完全错误:

work/aarch64-oe-linux/gstreamer1.0/1.12.2-r0/recipe-sysroot/usr/bin/g-ir-scanner-lddwrapper: line 2: prelink-rtld: command not found

| ==6485==LeakSanitizer has encountered a fatal error.

| If the above error message is about missing .so libraries, then setting up GIR_EXTRA_LIBS_PATH in the recipe should help.

| (typically like this: GIR_EXTRA_LIBS_PATH="${B}/something/.libs" )

尝试添加取决于 += "prelink"

但这并没有解决问题。

启用链接 gcc-sanitizer 后开始出现此错误。 即

+DEPENDS += "gcc-sanitizers"
+CFLAGS += "-fsanitize=address"
+CPPFLAGS += "-fsanitize=address"
+LDFLAGS += "-fsanitize=address"

在 gstreamer1.0_1.12.2.bbappend 文件中。

您可能需要本机预链接版本,因为它是在构建时执行的。 尝试使用

DEPENDS += "prelink-native"