On Wed, Aug 19, 2020, at 5:02 PM, Leon Woestenberg wrote:
> RFC:
>
> During the creation of the environment script for the canadian cross
> SDK in toolchain-script.bbclass,
> for a MUSL C library target, the OVERRIDES contains libc-glibc instead
> of libc-musl.
>
> OVERRIDES=task-generate-content:linux-musl:x86-64:pn-meta-environment-qemux86-64:qemuall:qemux86-64:nodistro:class-cross-canadian:libc-glibc:forcevariable
>
> This can be easily inspected by adding these lines to the script
> creation (Thanks to Richard for the suggestion on IRC).
>
> echo 'export TARGET_CC_ARCH=${TARGET_CC_ARCH}' >> $script
> echo 'export OVERRIDES=${OVERRIDES}' >> $script
>
> This append at the top of toolchain-script.bbclass is thus without effect:
> TARGET_CC_ARCH_append_libc-musl = " -mmusl"
>
> This works:
>
> TARGET_CC_ARCH_append_linux-musl = " -mmusl"
>
> (notice linux instead of libc, as linux-musl stays present in OVERRIDES.)
>
> I have a (minimal) test case here. Run make in the cloned repo.
> https://github.com/likewise/oe-musl-sdk-cmake
>
FYI,
Sounds like you ran into the SDK / musl problem
sdk: compiler targets glibc, even though rootfs uses musl-libc
https://bugzilla.yoctoproject.org/show_bug.cgi?id=13459
Using TCLIB=musl results in SDKs producing incompatible binaries
https://bugzilla.yoctoproject.org/show_bug.cgi?id=13766
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#141648):
https://lists.openembedded.org/g/openembedded-core/message/141648
Mute This Topic: https://lists.openembedded.org/mt/76245876/21656
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-