All the mail mirrored from lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] musl: Fix building with pure LLVM toolchain
@ 2021-12-27 14:35 esben.haabendal
  2022-01-01  9:17 ` [OE-core] " Khem Raj
  0 siblings, 1 reply; 2+ messages in thread
From: esben.haabendal @ 2021-12-27 14:35 UTC (permalink / raw
  To: openembedded-core; +Cc: Esben Haabendal

From: Esben Haabendal <esben.haabendal@huawei.com>

When building musl with a pure LLVM toolchain, we need compiler-rt instead of
libgcc-initial.

Signed-off-by: Esben Haabendal <esben.haabendal@huawei.com>
---
 meta/recipes-core/musl/musl_git.bb | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/meta/recipes-core/musl/musl_git.bb b/meta/recipes-core/musl/musl_git.bb
index 06b0e060d015..2b307482c7aa 100644
--- a/meta/recipes-core/musl/musl_git.bb
+++ b/meta/recipes-core/musl/musl_git.bb
@@ -23,7 +23,7 @@ PROVIDES += "virtual/libc virtual/libiconv virtual/libintl virtual/crypt"
 
 DEPENDS = "virtual/${TARGET_PREFIX}binutils \
            virtual/${TARGET_PREFIX}gcc \
-           libgcc-initial \
+           ${DEPENDS_COMPILER_RT} \
            linux-libc-headers \
            bsd-headers \
            libssp-nonshared \
@@ -31,6 +31,9 @@ DEPENDS = "virtual/${TARGET_PREFIX}binutils \
 GLIBC_LDSO = "${@get_glibc_loader(d)}"
 MUSL_LDSO_ARCH = "${@get_musl_loader_arch(d)}"
 
+DEPENDS_COMPILER_RT = "libgcc-initial"
+DEPENDS_COMPILER_RT:toolchain-clang = "${@bb.utils.contains('COMPILER_RT', 'libgcc', 'libgcc-initial', 'compiler-rt', d)}"
+
 export CROSS_COMPILE="${TARGET_PREFIX}"
 
 LDFLAGS += "-Wl,-soname,libc.so"
-- 
2.34.1



^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [OE-core] [PATCH] musl: Fix building with pure LLVM toolchain
  2021-12-27 14:35 [PATCH] musl: Fix building with pure LLVM toolchain esben.haabendal
@ 2022-01-01  9:17 ` Khem Raj
  0 siblings, 0 replies; 2+ messages in thread
From: Khem Raj @ 2022-01-01  9:17 UTC (permalink / raw
  To: Esben Haabendal
  Cc: Patches and discussions about the oe-core layer, Esben Haabendal

I am getting dependency loops with this patch for musl/clang with llvm
runtime now see

http://sprunge.us/5qlw7b

On Mon, Dec 27, 2021 at 6:35 AM Esben Haabendal <esben@geanix.com> wrote:
>
> From: Esben Haabendal <esben.haabendal@huawei.com>
>
> When building musl with a pure LLVM toolchain, we need compiler-rt instead of
> libgcc-initial.
>
> Signed-off-by: Esben Haabendal <esben.haabendal@huawei.com>
> ---
>  meta/recipes-core/musl/musl_git.bb | 5 ++++-
>  1 file changed, 4 insertions(+), 1 deletion(-)
>
> diff --git a/meta/recipes-core/musl/musl_git.bb b/meta/recipes-core/musl/musl_git.bb
> index 06b0e060d015..2b307482c7aa 100644
> --- a/meta/recipes-core/musl/musl_git.bb
> +++ b/meta/recipes-core/musl/musl_git.bb
> @@ -23,7 +23,7 @@ PROVIDES += "virtual/libc virtual/libiconv virtual/libintl virtual/crypt"
>
>  DEPENDS = "virtual/${TARGET_PREFIX}binutils \
>             virtual/${TARGET_PREFIX}gcc \
> -           libgcc-initial \
> +           ${DEPENDS_COMPILER_RT} \
>             linux-libc-headers \
>             bsd-headers \
>             libssp-nonshared \
> @@ -31,6 +31,9 @@ DEPENDS = "virtual/${TARGET_PREFIX}binutils \
>  GLIBC_LDSO = "${@get_glibc_loader(d)}"
>  MUSL_LDSO_ARCH = "${@get_musl_loader_arch(d)}"
>
> +DEPENDS_COMPILER_RT = "libgcc-initial"
> +DEPENDS_COMPILER_RT:toolchain-clang = "${@bb.utils.contains('COMPILER_RT', 'libgcc', 'libgcc-initial', 'compiler-rt', d)}"
> +
>  export CROSS_COMPILE="${TARGET_PREFIX}"
>
>  LDFLAGS += "-Wl,-soname,libc.so"
> --
> 2.34.1
>
>
> -=-=-=-=-=-=-=-=-=-=-=-
> Links: You receive all messages sent to this group.
> View/Reply Online (#160029): https://lists.openembedded.org/g/openembedded-core/message/160029
> Mute This Topic: https://lists.openembedded.org/mt/87977893/1997914
> Group Owner: openembedded-core+owner@lists.openembedded.org
> Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [raj.khem@gmail.com]
> -=-=-=-=-=-=-=-=-=-=-=-
>


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2022-01-01  9:17 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-12-27 14:35 [PATCH] musl: Fix building with pure LLVM toolchain esben.haabendal
2022-01-01  9:17 ` [OE-core] " Khem Raj

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.