musl: Show error when used with multilibs
PATCH 1/1 musl: Show error when used with multilibs
From: "Richard Purdie via lists.openembedded.org" <[email protected]>
As discussed in the bugzilla entry, musl doesn't work with multilibs.
I originally sent this patch in 2020 but was told that support was being added. I recently revisited the bug and retested a basic config which still fails the way it did in 2019. Since clearly nobody is using this, make it clear we don't support it. If anyone does add support, we can remove this error very easily.
[YOCTO #13122]
--- meta/recipes-core/musl/musl.inc | 6 ++++++ 1 file changed, 6 insertions(+)
meta/recipes-core/musl/musl.inc +6 -0
@@ -32,3 +32,9 @@ COMPATIBLE_HOST:riscv32 = "null" B = "${WORKDIR}/build" do_configure[cleandirs] = "${B}" + +python () { + multilibs = d.getVar("MULTILIBS") + if multilibs: + raise bb.parse.SkipRecipe("musl is not compatible with multilibs") +}
Quoted 13 lines · Richard Purdie
From: "Richard Purdie via lists.openembedded.org" <richard.purdie= [email protected]>
As discussed in the bugzilla entry, musl doesn't work with multilibs.
I originally sent this patch in 2020 but was told that support was being added. I recently revisited the bug and retested a basic config which still fails the way it did in 2019. Since clearly nobody is using this, make it clear
we don't support it. If anyone does add support, we can remove this error very
easily.
Quoted 1 line
[YOCTO #13122]
I am ok with patch in general. What is triggering it in your testing now
Quoted 23 lines
Signed-off-by Richard Purdie <[email protected]>--- meta/recipes-core/musl/musl.inc | 6 ++++++ 1 file changed, 6 insertions(+)meta/recipes-core/musl/musl.inc +6
-0@@ -32,3 +32,9 @@ COMPATIBLE_HOST:riscv32 = "null" B = "${WORKDIR}/build" do_configure[cleandirs] = "${B}" + +python () { + multilibs = d.getVar("MULTILIBS") + if multilibs: + raise bb.parse.SkipRecipe("musl is not compatible with multilibs") +}
Quoted 20 lines · Khem Raj
Quoted 16 lines · Richard Purdie
From: "Richard Purdie via lists.openembedded.org" <[email protected]>
As discussed in the bugzilla entry, musl doesn't work with multilibs.
I originally sent this patch in 2020 but was told that support was being
added. I recently revisited the bug and retested a basic config which still
fails the way it did in 2019. Since clearly nobody is using this, make it clear
we don't support it. If anyone does add support, we can remove this error very
easily.
Quoted 7 lines
Quoted 2 lines
[YOCTO #13122]
I am ok with patch in general. What is triggering it in your testing now
See the bug:
MACHINE = "qemuarm64"
TCLIBC = "musl"
require conf/multilib.conf
MULTILIBS = "multilib:lib32"
DEFAULTTUNE:virtclass-multilib-lib32 = "armv7ahf-neon-vfpv4" IMAGE_INSTALL:append = " lib32-libgcc lib32-libstdc++ python3-core lib32-python3-core"
and running "bitbake core-image-minimal" results in:
Error: Transaction test error:
file /usr/bin/ldd conflicts between attempted installs of musl-1.2.4+git0+79bdacff83-r0.cortexa57 and lib32-musl-1.2.4+git0+79bdacff83-r0.armv7ahf_neon_vfpv4 file /usr/include/python3.12/pyconfig.h conflicts between attempted installs of lib32-python3-core-3.12.4-r0.armv7ahf_neon_vfpv4 and python3-core-3.12.4-r0.cortexa57
Cheers,
Richard