From a2d1f7cf24c6c9a0c35db5db0b1014b476c04bbc Mon Sep 17 00:00:00 2001 From: Khem Raj Date: Wed, 21 Feb 2024 14:29:10 -0800 Subject: rpm: Always use GCC to compile for now We have a determinism bug with clang [1] when -fopenmp option is used and until its fixed lets stick with gcc to compile it. Sad but true. Signed-off-by: Khem Raj --- recipes-devtools/rpm/rpm_%.bbappend | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/recipes-devtools/rpm/rpm_%.bbappend b/recipes-devtools/rpm/rpm_%.bbappend index d2a010c..46ac56b 100644 --- a/recipes-devtools/rpm/rpm_%.bbappend +++ b/recipes-devtools/rpm/rpm_%.bbappend @@ -1,6 +1,7 @@ FILESEXTRAPATHS:prepend := "${THISDIR}/${PN}:" -DEPENDS:append:toolchain-clang = " openmp" +# Set until https://github.com/llvm/llvm-project/issues/82541 is fixed +#DEPENDS:append:toolchain-clang = " openmp" DEPENDS:remove:toolchain-clang:riscv32 = "openmp" DEPENDS:remove:toolchain-clang:mipsarch = "openmp" DEPENDS:remove:toolchain-clang:powerpc = "openmp" @@ -9,3 +10,6 @@ DEPENDS:remove:toolchain-clang:powerpc = "openmp" TOOLCHAIN:riscv32 = "gcc" TOOLCHAIN:mipsarch = "gcc" TOOLCHAIN:powerpc = "gcc" +# Set until https://github.com/llvm/llvm-project/issues/82541 is fixed +TOOLCHAIN = "gcc" +LDFLAGS:remove = "-fuse-ld=lld" -- cgit v1.2.3-54-g00ecf