Message ID | 20250721040030.641212-3-raj.khem@gmail.com |
---|---|
State | New |
Headers | show |
Series | [meta-oe,1/7] ostree: Always use libgcc for runtime with clang on x86 | expand |
diff --git a/meta-oe/recipes-benchmark/libhugetlbfs/libhugetlbfs_2.24.bb b/meta-oe/recipes-benchmark/libhugetlbfs/libhugetlbfs_2.24.bb index a43ddf0d53..0546d4b0b5 100644 --- a/meta-oe/recipes-benchmark/libhugetlbfs/libhugetlbfs_2.24.bb +++ b/meta-oe/recipes-benchmark/libhugetlbfs/libhugetlbfs_2.24.bb @@ -44,6 +44,9 @@ CFLAGS += "-fexpensive-optimizations -frename-registers -fomit-frame-pointer -g0 export HUGETLB_LDSCRIPT_PATH = "${S}/ldscripts" LDFLAGS += "-B${S}" +# glibc objects have missing symbols from libgcc that compiler-rt does not provide +# /usr/src/debug/glibc/2.41+git/stdio-common/../stdio-common/printf_fphex.c:123:(.text+0x77): undefined reference to `__unordtf2' +LDFLAGS:append:libc-glibc:toolchain-clang:x86 = " --rtlib=libgcc --unwindlib=libgcc" inherit autotools-brokensep
glibc objects here expect libgcc to be linked in sadly compiler-rt does not provide all the needed function implementations e.g. __unordtf2 __letf2, __multf3, __addtf3 needed for 128 bit data types Signed-off-by: Khem Raj <raj.khem@gmail.com> --- meta-oe/recipes-benchmark/libhugetlbfs/libhugetlbfs_2.24.bb | 3 +++ 1 file changed, 3 insertions(+)