From e3257c3360a732914ae02a07a7c0fe8c845a492f Mon Sep 17 00:00:00 2001 From: Khem Raj Date: Sun, 30 Nov 2025 11:22:24 -0800 Subject: [PATCH] fuse3: Fix build with clang on riscv32 Clang needs 64-bit atomics on rv32 here and builtins does not have them so help it by linking with libatomic Fixes riscv32-yoe-linux-musl-ld.lld: error: undefined symbol: __atomic_fetch_add_8 Signed-off-by: Khem Raj --- meta-oe/recipes-support/fuse/fuse3_3.17.4.bb | 3 +++ 1 file changed, 3 insertions(+) diff --git a/meta-oe/recipes-support/fuse/fuse3_3.17.4.bb b/meta-oe/recipes-support/fuse/fuse3_3.17.4.bb index 85991ff7be..fcd09059ab 100644 --- a/meta-oe/recipes-support/fuse/fuse3_3.17.4.bb +++ b/meta-oe/recipes-support/fuse/fuse3_3.17.4.bb @@ -25,6 +25,9 @@ CVE_PRODUCT = "fuse_project:fuse" inherit meson pkgconfig ptest +# fix riscv32-yoe-linux-musl-ld.lld: error: undefined symbol: __atomic_fetch_add_8 +LDFLAGS:append:toolchain-clang:riscv32 = " -latomic" + SRC_URI += " \ file://run-ptest \ file://fuse3.conf \