thin-provisioning-tools: use STAGING_LIBDIR_NATIVE variable for LIBCLANG_PATH
PATCH 1/1 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: [])"--- .../thin-provisioning-tools/thin-provisioning-tools_1.1.0.bb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
meta-oe/dynamic-layers/clang-layer/recipes-support/thin-provisioning-tools/thin-provisioning-tools_1.1.0.bb +1 -1
@@ -20,7 +20,7 @@ inherit pkgconfig DEPENDS += "udev libdevmapper libdevmapper-native clang-native" -export LIBCLANG_PATH = "${WORKDIR}/recipe-sysroot-native${libdir}" +export LIBCLANG_PATH = "${STAGING_LIBDIR_NATIVE}" export BINDGEN_EXTRA_CLANG_ARGS = "${HOST_CC_ARCH}${TOOLCHAIN_OPTIONS} --target=${TARGET_SYS}" require ${BPN}-crates.inc
Signature · 1 line
2.48.1
Quoted 43 lines · Martin Jansa via lists.openembedded.org
* 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/lib32while native libdir is/usr/lib.* use
STAGING_LIBDIR_NATIVEvariable which uses correct ${libdir_native}* fixes:
error: failed to run custom build command fordevicemapper-sys v0.3.0Caused 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 atlib32-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 theLIBCLANG_PATHenvironment variable to a path
where one of these files can be found (invalid: [])"Signed-off-by Martin Jansa <[email protected]>--- .../thin-provisioning-tools/thin-provisioning-tools_1.1.0.bb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)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
indexd0241c7016..1981a35934100644
---
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
meta-oe/dynamic-layers/clang-layer/recipes-support/thin-provisioning-tools/thin-provisioning-tools_1.1.0.bb inherit pkgconfig · line 23
Quoted 5 lines
meta-oe/dynamic-layers/clang-layer/recipes-support/thin-provisioning-tools/thin-provisioning-tools_1.1.0.bb +1
-1@@ -20,7 +20,7 @@ inherit pkgconfig DEPENDS += "udev libdevmapper libdevmapper-native clang-native" -export LIBCLANG_PATH = "${WORKDIR}/recipe-sysroot-native${libdir}" +export LIBCLANG_PATH = "${STAGING_LIBDIR_NATIVE}"
Ah yes I had a hunch it will fail some usecases that’s for patch
Quoted 19 lines
(quoted diff) +0
-2export BINDGEN_EXTRA_CLANG_ARGS = "${HOST_CC_ARCH}${TOOLCHAIN_OPTIONS} --target=${TARGET_SYS}" require ${BPN}-crates.inc --2.48.1
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group. View/Reply Online (#115729):
https://lists.openembedded.org/g/openembedded-devel/message/115729
Mute This Topic: https://lists.openembedded.org/mt/111495180/1997914
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [ [email protected]]
-=-=-=-=-=-=-=-=-=-=-=-
Quoted 34 lines · Khem Raj
Quoted 30 lines · Martin Jansa via lists.openembedded.org
* 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/lib32while native libdir is/usr/lib.* use
STAGING_LIBDIR_NATIVEvariable which uses correct ${libdir_native}* fixes:
error: failed to run custom build command fordevicemapper-sys v0.3.0Caused 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 <[email protected]>--- .../thin-provisioning-tools/thin-provisioning-tools_1.1.0.bb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)meta-oe/dynamic-layers/clang-layer/recipes-support/thin-provisioning-tools/thin-provisioning-tools_1.1.0.bb +0
-0@@ -20,7 +20,7 @@ inherit pkgconfig
Quoted 7 lines
meta-oe/dynamic-layers/clang-layer/recipes-support/thin-provisioning-tools/thin-provisioning-tools_1.1.0.bb inherit pkgconfig · line 23
Quoted 4 lines
meta-oe/dynamic-layers/clang-layer/recipes-support/thin-provisioning-tools/thin-provisioning-tools_1.1.0.bb +1
-1DEPENDS += "udev libdevmapper libdevmapper-native clang-native" -export LIBCLANG_PATH = "${WORKDIR}/recipe-sysroot-native${libdir}" +export LIBCLANG_PATH = "${STAGING_LIBDIR_NATIVE}"Ah yes I had a hunch it will fail some usecases that’s for patch
Is there a reason why this change wasn't included in your master-next branch yet?
Robert confirmed it in the other thread.
Quoted 43 lines · Martin Jansa
Quoted 34 lines · Khem Raj
Quoted 30 lines · Martin Jansa via lists.openembedded.org
* 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/lib32while native libdir is/usr/lib.* use
STAGING_LIBDIR_NATIVEvariable which uses correct ${libdir_native}* fixes:
error: failed to run custom build command fordevicemapper-sys v0.3.0Caused 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 <[email protected]>--- .../thin-provisioning-tools/thin-provisioning-tools_1.1.0.bb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)meta-oe/dynamic-layers/clang-layer/recipes-support/thin-provisioning-tools/thin-provisioning-tools_1.1.0.bb +0
-0@@ -20,7 +20,7 @@ inherit pkgconfigQuoted 7 lines
meta-oe/dynamic-layers/clang-layer/recipes-support/thin-provisioning-tools/thin-provisioning-tools_1.1.0.bb inherit pkgconfig · line 23
Quoted 4 lines
meta-oe/dynamic-layers/clang-layer/recipes-support/thin-provisioning-tools/thin-provisioning-tools_1.1.0.bb +1
-1DEPENDS += "udev libdevmapper libdevmapper-native clang-native" -export LIBCLANG_PATH = "${WORKDIR}/recipe-sysroot-native${libdir}" +export LIBCLANG_PATH = "${STAGING_LIBDIR_NATIVE}"Ah yes I had a hunch it will fail some usecases that’s for patch
Quoted 4 lines
Is there a reason why this change wasn't included in your master-next branch yet?
Robert confirmed it in the other thread.
Yes, and I can confirm that it can fix the errors you mentioned above.
// Robert