diff options
author | Martin Jansa <martin.jansa@gmail.com> | 2025-03-03 20:16:21 +0100 |
---|---|---|
committer | Khem Raj <raj.khem@gmail.com> | 2025-03-07 08:37:00 -0800 |
commit | 458934221f39e8f9f64981be1eb0af91511e9b33 (patch) | |
tree | 0d3b20a80336c2d6070b770314c5b2a755635ad2 | |
parent | 4c151f94436814960deb5323b9e4bb304626435a (diff) | |
download | meta-openembedded-458934221f39e8f9f64981be1eb0af91511e9b33.tar.gz |
thin-provisioning-tools: use STAGING_LIBDIR_NATIVE variable for LIBCLANG_PATH
* hardcoding:
${WORKDIR}/recipe-sysroot-native${libdir}
is just wrong when there is a better variable
* This path won't be correct for multilib builds where target ${libdir}
might be e.g. /usr/lib32 while native libdir is /usr/lib.
* use STAGING_LIBDIR_NATIVE variable which uses correct ${libdir_native}
* fixes:
error: failed to run custom build command for `devicemapper-sys v0.3.0`
Caused by:
process didn't exit successfully: `lib32-thin-provisioning-tools/1.1.0/build/target/release/build/devicemapper-sys-88de590bc55acb43/build-script-build` (exit status: 101)
--- stderr
thread 'main' panicked at lib32-thin-provisioning-tools/1.1.0/sources-unpack/cargo_home/bitbake/bindgen-0.69.4/lib.rs:622:31:
Unable to find libclang: "couldn't find any valid shared libraries matching: ['libclang.so', 'libclang-*.so', 'libclang.so.*', 'libclang-*.so.*'], set the `LIBCLANG_PATH` environment variable to a path where one of these files can be found (invalid: [])"
Signed-off-by: Martin Jansa <martin.jansa@gmail.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
-rw-r--r-- | meta-oe/dynamic-layers/clang-layer/recipes-support/thin-provisioning-tools/thin-provisioning-tools_1.1.0.bb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/meta-oe/dynamic-layers/clang-layer/recipes-support/thin-provisioning-tools/thin-provisioning-tools_1.1.0.bb b/meta-oe/dynamic-layers/clang-layer/recipes-support/thin-provisioning-tools/thin-provisioning-tools_1.1.0.bb index d0241c7016..1981a35934 100644 --- a/meta-oe/dynamic-layers/clang-layer/recipes-support/thin-provisioning-tools/thin-provisioning-tools_1.1.0.bb +++ b/meta-oe/dynamic-layers/clang-layer/recipes-support/thin-provisioning-tools/thin-provisioning-tools_1.1.0.bb | |||
@@ -20,7 +20,7 @@ inherit pkgconfig | |||
20 | 20 | ||
21 | DEPENDS += "udev libdevmapper libdevmapper-native clang-native" | 21 | DEPENDS += "udev libdevmapper libdevmapper-native clang-native" |
22 | 22 | ||
23 | export LIBCLANG_PATH = "${WORKDIR}/recipe-sysroot-native${libdir}" | 23 | export LIBCLANG_PATH = "${STAGING_LIBDIR_NATIVE}" |
24 | export BINDGEN_EXTRA_CLANG_ARGS = "${HOST_CC_ARCH}${TOOLCHAIN_OPTIONS} --target=${TARGET_SYS}" | 24 | export BINDGEN_EXTRA_CLANG_ARGS = "${HOST_CC_ARCH}${TOOLCHAIN_OPTIONS} --target=${TARGET_SYS}" |
25 | 25 | ||
26 | require ${BPN}-crates.inc | 26 | require ${BPN}-crates.inc |