Bug 2430017

Summary: Test failure in rust-ravif unique to s390x + LLVM 21
Product: [Fedora] Fedora Reporter: Ben Beasley <code>
Component: llvmAssignee: Josh Stone <jistone>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: unspecified    
Version: rawhideCC: amulhern, dan, dmalcolm, fedora-llvm-team, igor.raits, jakub, jchecahi, jistone, kkleine, npopov, paumurph, rust-sig, scottt.tw, sergesanspaille, siddharth.kde, suraj.ghimire7, tbaeder, tstellar, tuliom
Target Milestone: ---Flags: jistone: mirror+
Target Release: ---   
Hardware: Unspecified   
OS: Linux   
Whiteboard:
Fixed In Version: llvm-21.1.8-6.fc44 llvm-21.1.8-4.fc43 Doc Type: ---
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2026-01-21 22:14:23 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 467765    

Description Ben Beasley 2026-01-15 14:21:36 UTC
In Fedora's rust-ravif package, the test encode8_opaque fails only on s390x, and only in Fedora 43/44. The most obvious common factor here is LLVM 21.

I managed to reproduce the test failure in a fedora-rawhide-s390x mock chroot (on x86_64, using qemu-user-static) with a git checkout from upstream, https://github.com/kornelski/cavif-rs.git. I needed to compile tests in release mode, as Fedora does, and specify a single codegen unit:

$ git clone https://github.com/kornelski/cavif-rs.git
$ cd cavif-rs/ravif
$ RUSTFLAGS='-Ccodegen-units=1' cargo test --release

I filed a bug upstream, https://github.com/kornelski/cavif-rs/issues/109, which has many more details.

Dan Horák reproduced the issue with Rust 1.92, 1.91 and 1.90 (all built with LLVM 21), but not with Rust 1.89 built with LLVM 20. Dan asked me to open a downstream bug on Rust in Fedora – so here it is!

Reproducible: Always

Comment 1 Dan Horák 2026-01-15 14:47:26 UTC
for the record, I have been using a rawhide VM on real HW and then downgraded rust + cargo to older builds downloaded from koji, so only rust (and llvm with 1.89) changed

Comment 2 Josh Stone 2026-01-15 20:54:27 UTC
At first try, this test passes with the upstream stable (1.92.0) toolchain. However, Fedora raises the default CPU from z10 to z13, and upstream *does* fail the test with `-Ctarget-cpu=z13`. (This is still with its standard library as-is, not `-Zbuild-std`.)

Comment 3 Josh Stone 2026-01-15 22:17:51 UTC
cargo-bisect-rustc found it passing on nightly-2025-08-06 and failing on nightly-2025-08-07, which does correspond to the LLVM 21 update.

https://github.com/rust-lang/rust/compare/ec7c02612527d185c379900b613311bc1dcbf7dc...7d82b83ed57d188ab3f2441a765a6419685a88a3

Comment 4 Josh Stone 2026-01-19 17:40:25 UTC
I found that it is not reproducible with LLVM 22, and I narrowed it down to commit fc12fc635b96 as the fix -- which cites an error in commit cdc7864 from LLVM 21.

bug: https://github.com/llvm/llvm-project/commit/cdc786498650c028c9c8ce23dfbff81bf2780d14
fix: https://github.com/llvm/llvm-project/commit/fc12fc635b96e9fa521a33eb31336c539eed1918

I will confirm that with a backport to LLVM 21 and then send an llvm package PR.

Comment 5 Dan Horák 2026-01-19 17:49:51 UTC
Great job, Josh, thanks.

Comment 6 Ben Beasley 2026-01-19 17:50:20 UTC
Thank you for investigating this!

Comment 7 Fedora Update System 2026-01-21 18:19:58 UTC
FEDORA-2026-2928da47ab (llvm-21.1.8-6.fc44) has been submitted as an update to Fedora 44.
https://bodhi.fedoraproject.org/updates/FEDORA-2026-2928da47ab

Comment 8 Fedora Update System 2026-01-21 22:14:23 UTC
FEDORA-2026-2928da47ab (llvm-21.1.8-6.fc44) has been pushed to the Fedora 44 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 9 Ben Beasley 2026-01-21 23:03:54 UTC
To close the loop, I removed the test skip in Rawhide[1] and rebuilt rust-ravif successfully with llvm-21.1.8-6.fc44[2].

[1] https://src.fedoraproject.org/rpms/rust-ravif/c/1c8722507198738b424bcd0ad9ca7e12690321ed?branch=rawhide
[2] https://koji.fedoraproject.org/koji/buildinfo?buildID=2923348

Comment 10 Fedora Update System 2026-01-23 09:06:27 UTC
FEDORA-2026-537e5ad775 (llvm-21.1.8-4.fc43) has been submitted as an update to Fedora 43.
https://bodhi.fedoraproject.org/updates/FEDORA-2026-537e5ad775

Comment 11 Fedora Update System 2026-01-24 01:24:52 UTC
FEDORA-2026-537e5ad775 has been pushed to the Fedora 43 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2026-537e5ad775`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2026-537e5ad775

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 12 Fedora Update System 2026-01-27 05:37:51 UTC
FEDORA-2026-537e5ad775 (llvm-21.1.8-4.fc43) has been pushed to the Fedora 43 stable repository.
If problem still persists, please make note of it in this bug report.