Bug 2430017 - Test failure in rust-ravif unique to s390x + LLVM 21
Summary: Test failure in rust-ravif unique to s390x + LLVM 21
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: llvm
Version: rawhide
Hardware: Unspecified
OS: Linux
unspecified
medium
Target Milestone: ---
Assignee: Josh Stone
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks: ZedoraTracker
TreeView+ depends on / blocked
 
Reported: 2026-01-15 14:21 UTC by Ben Beasley
Modified: 2026-01-27 05:37 UTC (History)
19 users (show)

Fixed In Version: llvm-21.1.8-6.fc44 llvm-21.1.8-4.fc43
Clone Of:
Environment:
Last Closed: 2026-01-21 22:14:23 UTC
Type: ---
Embargoed:
jistone: mirror+


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Fedora Package Sources llvm pull-request 542 0 None None None 2026-01-19 22:33:19 UTC
Github kornelski cavif-rs issues 109 0 None open On `s390x`, with LLVM 21 and `-Ccodegen-units=1`, `encode8_opaque` fails in release mode 2026-01-15 14:23:17 UTC
Github llvm llvm-project pull 150836 0 None Merged [SystemZ] Fix code in widening vector multiplication 2026-01-19 22:33:19 UTC
Red Hat Issue Tracker FC-2964 0 None None None 2026-01-16 17:20:00 UTC

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.


Note You need to log in before you can comment on or make changes to this bug.