musl: Show error when used with multilibs
PATCH 1/1 musl: Show error when used with multilibs
As discussed in the bugzilla entry, musl is not compatible with multilibs and has no plans to support this. Therefore tell users this from the recipe rather than letting them run into build failures.
[YOCTO #13122]
--- meta/recipes-core/musl/musl.inc | 6 ++++++ 1 file changed, 6 insertions(+)
meta/recipes-core/musl/musl.inc +6 -0
@@ -29,3 +29,9 @@ ARM_INSTRUCTION_SET_armv4 = "arm" B = "${WORKDIR}/build" do_configure[cleandirs] = "${B}" + +python () { + multilibs = d.getVar("MULTILIBS") + if multilibs: + raise bb.parse.SkipRecipe("musl is not compatible with multilibs") +}
Signature · 1 line
2.25.1
Quoted 5 lines · Richard Purdie
As discussed in the bugzilla entry, musl is not compatible with multilibs and has no plans to support this. Therefore tell users this from the recipe rather than letting them run into build failures.
I dont think thats the case anymore, I have sent patches to fix multilib on musl.
this seems a broad brush. What are you trying to fix ?
Quoted 24 lines
[YOCTO #13122]
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
-1@@ -29,3 +29,9 @@ ARM_INSTRUCTION_SET_armv4 = "arm" B = "${WORKDIR}/build" do_configure[cleandirs] = "${B}" + +python () { + multilibs = d.getVar("MULTILIBS") + if multilibs: + raise bb.parse.SkipRecipe("musl is not compatible with multilibs") +} --2.25.1
Quoted 4 lines · Khem Raj
Quoted 1 line · Richard Purdie
Quoted 9 lines
Quoted 4 lines
As discussed in the bugzilla entry, musl is not compatible with multilibs and has no plans to support this. Therefore tell users this from the recipe rather than letting them run into build failures.
I dont think thats the case anymore, I have sent patches to fix multilib on musl.
this seems a broad brush. What are you trying to fix ?
I see the bug list a fix that was done last year as a workaround to disable multilib headers that should be reverted something like this
(quoted diff) +0 -0
b/meta/classes/multilib_header.bbclass
index e03f5b13b2..48f231eed0 100644
meta/classes/multilib_header.bbclass +0 -0
@@ -6,13 +6,6 @@ inherit siteinfo
# all of the ABI variants for that given architecture.
#
oe_multilib_header() {
-
- case ${HOST_OS} in
- *-musl*)
- return
- ;;
- *)
- esac
# For MIPS: "n32" is a special case, which needs to be
# distinct from both 64-bit and 32-bit.
case ${TARGET_ARCH} inwould be more appropriate now a days.
Quoted 24 lines
Quoted 24 lines
[YOCTO #13122]
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
-1@@ -29,3 +29,9 @@ ARM_INSTRUCTION_SET_armv4 = "arm" B = "${WORKDIR}/build" do_configure[cleandirs] = "${B}" + +python () { + multilibs = d.getVar("MULTILIBS") + if multilibs: + raise bb.parse.SkipRecipe("musl is not compatible with multilibs") +} --2.25.1
Quoted 39 lines · Khem Raj
Quoted 4 lines · Khem Raj
Quoted 1 line · Richard Purdie
Quoted 9 lines
Quoted 4 lines
As discussed in the bugzilla entry, musl is not compatible with multilibs and has no plans to support this. Therefore tell users this from the recipe rather than letting them run into build failures.
I dont think thats the case anymore, I have sent patches to fix multilib on musl.
this seems a broad brush. What are you trying to fix ?I see the bug list a fix that was done last year as a workaround to disable multilib headers that should be reverted something like this
meta/classes/multilib_header.bbclass +0
-7@@ -6,13 +6,6 @@ inherit siteinfo # all of the ABI variants for that given architecture. # oe_multilib_header() { - - case ${HOST_OS} in - *-musl*) - return - ;; - *) - esac # For MIPS: "n32" is a special case, which needs to be # distinct from both 64-bit and 32-bit.case ${TARGET_ARCH} in
Quoted 2 lines
would be more appropriate now a days.
I have now tested the above patch and sent for review to ml.
Quoted 24 lines
Quoted 24 lines
Quoted 24 lines
[YOCTO #13122]
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
-1@@ -29,3 +29,9 @@ ARM_INSTRUCTION_SET_armv4 = "arm" B = "${WORKDIR}/build" do_configure[cleandirs] = "${B}" + +python () { + multilibs = d.getVar("MULTILIBS") + if multilibs: + raise bb.parse.SkipRecipe("musl is not compatible with multilibs") +} --2.25.1
the patch I proposed make the problem in bug report fixed but would require more testing, this patch I feel is disabling it completely, perhaps we need to either let release go as such and backport the fix since I think multilib should be fine witth musl we might have some quirks to take care,
Quoted 70 lines · Khem Raj
Quoted 39 lines · Khem Raj
Quoted 4 lines · Khem Raj
Quoted 1 line · Richard Purdie
Quoted 9 lines
Quoted 4 lines
As discussed in the bugzilla entry, musl is not compatible with multilibs and has no plans to support this. Therefore tell users this from the recipe rather than letting them run into build failures.
I dont think thats the case anymore, I have sent patches to fix multilib on musl.
this seems a broad brush. What are you trying to fix ?I see the bug list a fix that was done last year as a workaround to disable multilib headers that should be reverted something like this
meta/classes/multilib_header.bbclass +0
-7@@ -6,13 +6,6 @@ inherit siteinfo # all of the ABI variants for that given architecture. # oe_multilib_header() { - - case ${HOST_OS} in - *-musl*) - return - ;; - *) - esac # For MIPS: "n32" is a special case, which needs to be # distinct from both 64-bit and 32-bit.case ${TARGET_ARCH} in
Quoted 2 lines
would be more appropriate now a days.
I have now tested the above patch and sent for review to ml.
Quoted 24 lines
Quoted 24 lines
Quoted 24 lines
[YOCTO #13122]
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
-1@@ -29,3 +29,9 @@ ARM_INSTRUCTION_SET_armv4 = "arm" B = "${WORKDIR}/build" do_configure[cleandirs] = "${B}" + +python () { + multilibs = d.getVar("MULTILIBS") + if multilibs: + raise bb.parse.SkipRecipe("musl is not compatible with multilibs") +} --2.25.1
Quoted 9 lines · Khem Raj
Quoted 6 lines · Richard Purdie
As discussed in the bugzilla entry, musl is not compatible with multilibs
and has no plans to support this. Therefore tell users this from the
recipe rather than letting them run into build failures.
Quoted 3 lines
I dont think thats the case anymore, I have sent patches to fix multilib on musl. this seems a broad brush. What are you trying to fix ?
The bug said we don't support multilib and musl and the code clearly currently doesn't, so this patch was to make the situation clearer to users.
Based on the need for your patch and other patches, its clear that musl and multilib doesn't work as things stand today.
The question becomes whether we want to support that? Do we want/need to add automated tests for it?
We've built 3.1 rc2 which is in QA so this wasn't going into the release, maybe the point release, or if we rebuild for some reason. I do want to do something with the bug. If we want to enable multilib with musl that would be a 3.2 activity.
Perhaps we should merge this change, then remove it when the other issues are fixed?
Cheers,
Richard
Quoted 25 lines · Richard Purdie
Quoted 9 lines · Khem Raj
Quoted 6 lines · Richard Purdie
As discussed in the bugzilla entry, musl is not compatible with multilibs
and has no plans to support this. Therefore tell users this from the
recipe rather than letting them run into build failures.Quoted 3 lines
I dont think thats the case anymore, I have sent patches to fix multilib on musl. this seems a broad brush. What are you trying to fix ?
The bug said we don't support multilib and musl and the code clearly currently doesn't, so this patch was to make the situation clearer to users.
Based on the need for your patch and other patches, its clear that musl and multilib doesn't work as things stand today.
The question becomes whether we want to support that? Do we want/need to add automated tests for it?
Quoted 7 lines
We've built 3.1 rc2 which is in QA so this wasn't going into the release, maybe the point release, or if we rebuild for some reason. I do want to do something with the bug. If we want to enable multilib with musl that would be a 3.2 activity.
Perhaps we should merge this change, then remove it when the other issues are fixed?
I tthink fixing musl for a mixed mulilib is a bit invasive at this time of release so
agreed on that. however this will disable a usecase which is valid for musl systems
64bit kernel + 32bit-only-userspace. So I am a bit torn here to disable it completely.
perhaps a parse warning might be good compromise.
Quoted 6 lines
Cheers,
Richard