From 458b297233a97b466ff75088dea7b77157aced3e Mon Sep 17 00:00:00 2001 From: Khem Raj Date: Sat, 19 Jul 2025 09:52:03 -0700 Subject: libhugetlbfs: Always use ligcc for compiler runtime with clang on x86 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 --- meta-oe/recipes-benchmark/libhugetlbfs/libhugetlbfs_2.24.bb | 3 +++ 1 file changed, 3 insertions(+) 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 -- cgit v1.2.3-54-g00ecf