From d2f483656b0f1d57061611187dc8cf8a27035ac2 Mon Sep 17 00:00:00 2001 From: Josh Stone Date: Thu, 24 Apr 2025 14:15:58 -0700 Subject: [PATCH] Temporarily skip PGO on RHEL ppc64le Resolves: RHEL-81600 Resolves: RHEL-81606 --- rust.spec | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/rust.spec b/rust.spec index 6581a02..d9e96e4 100644 --- a/rust.spec +++ b/rust.spec @@ -882,6 +882,9 @@ test -r "%{profiler}" # Skipping PGO on s390x until we get LLVM 20, due to # https://github.com/llvm/llvm-project/issues/124001 %ifnarch s390x +# rustc is exibiting signs of miscompilation on pwr9+pgo (root cause TBD), +# so we're skipping pgo on rhel ppc64le for now. +%if !( 0%{?rhel} && "%{_target_cpu}" == "ppc64le" ) %if %with rustc_pgo # Build the compiler with profile instrumentation %define profraw $PWD/build/profiles @@ -898,6 +901,7 @@ rm -r "%{profraw}" build/%{rust_triple}/stage2*/ %global __x %{__x} --rust-profile-use="%{profdata}" %endif %endif +%endif # Build the compiler normally (with or without PGO) %{__x} build sysroot