Bug 2388223 - rustc-LLVM ERROR building sequoia-openpgp with Rust 1.89 on x86_64
Summary: rustc-LLVM ERROR building sequoia-openpgp with Rust 1.89 on x86_64
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:
TreeView+ depends on / blocked
 
Reported: 2025-08-13 13:05 UTC by Fabio Valentini
Modified: 2025-09-29 15:35 UTC (History)
19 users (show)

Fixed In Version: llvm-20.1.8-18.fc44 llvm-20.1.8-18.fc43 llvm-20.1.8-4.fc42
Clone Of:
Environment:
Last Closed: 2025-08-21 10:47:26 UTC
Type: ---
Embargoed:
jistone: mirror+


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Fedora Package Sources llvm pull-request 466 0 None None None 2025-08-14 22:53:12 UTC
Red Hat Issue Tracker FC-1946 0 None None None 2025-08-13 16:48:38 UTC

Description Fabio Valentini 2025-08-13 13:05:24 UTC
compiling the package for the sequoia-openpgp crate fails since the update to Rust 1.89, with an error from rustc-llvm:

Instruction does not dominate all uses!
  %1773 = add i64 %1768, 1, !dbg !945749
  %1770 = mul i64 %1773, 8, !dbg !945749
in function _ZN122_$LT$sequoia_openpgp..crypto..backend..rust..symmetric..EcbEncrypt$u20$as$u20$sequoia_openpgp..crypto..symmetric..Mode$GT$7encrypt28_$u7b$$u7b$closure$u7d$$u7d$17hb30c7efc1a63f2abE
rustc-LLVM ERROR: Broken function found, compilation aborted!

This happens on Fedora Rawhide, 43, and 42. Not sure about Fedora 41 yet, since Rust 1.89 didn't land in stable there yet.

Reproducible: Always

Steps to Reproduce:
$ fedpkg clone rust-sequoia-openpgp && cd rust-sequoia-openpgp && fedpkg build --scratch --srpm
Actual Results:
Error from LLVM.

Expected Results:
Compiles successful.

Comment 1 Josh Stone 2025-08-13 22:23:29 UTC
> This happens on Fedora Rawhide, 43, and 42. Not sure about Fedora 41 yet, since Rust 1.89 didn't land in stable there yet.

I can reproduce this on 42+, but I can't reproduce it locally on 41 with the build from updates-testing. This would imply that LLVM 19 is not affected.

Comment 2 Josh Stone 2025-08-14 19:29:43 UTC
I can only reproduce this on upstream LLVM 20 after adding Fedora's cherry-pick of this fix:
https://github.com/llvm/llvm-project/commit/59c6d70ed8120b8864e5f796e2bf3de5518a0ef0

Using LLVM from that commit directly also fails, but main passes, which allows further bisection. This commit fixes it:
https://github.com/llvm/llvm-project/commit/dde30a47313bf52fef02bbcb1de931a8d725659f

Adding that cherry-pick onto 20 also fixes the problem there, so hopefully that's sufficient overall. I'll send a patch for the llvm package.

Comment 3 Fedora Update System 2025-08-18 19:03:55 UTC
FEDORA-2025-143774a362 (llvm-20.1.8-18.fc44) has been submitted as an update to Fedora 44.
https://bodhi.fedoraproject.org/updates/FEDORA-2025-143774a362

Comment 4 Fedora Update System 2025-08-19 07:17:26 UTC
FEDORA-2025-143774a362 (llvm-20.1.8-18.fc44) has been pushed to the Fedora 44 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 5 Fabio Valentini 2025-08-19 12:17:44 UTC
I need this fix in Fedora 43 and 42 too.

Comment 6 Fedora Update System 2025-08-20 17:51:09 UTC
FEDORA-2025-20edee2b22 (llvm-20.1.8-4.fc42) has been submitted as an update to Fedora 42.
https://bodhi.fedoraproject.org/updates/FEDORA-2025-20edee2b22

Comment 7 Fedora Update System 2025-08-20 19:31:05 UTC
FEDORA-2025-21a6576c67 (llvm-20.1.8-18.fc43) has been submitted as an update to Fedora 43.
https://bodhi.fedoraproject.org/updates/FEDORA-2025-21a6576c67

Comment 8 Fedora Update System 2025-08-21 01:35:40 UTC
FEDORA-2025-20edee2b22 has been pushed to the Fedora 42 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2025-20edee2b22`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2025-20edee2b22

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

Comment 9 Fedora Update System 2025-08-21 10:47:26 UTC
FEDORA-2025-21a6576c67 (llvm-20.1.8-18.fc43) has been pushed to the Fedora 43 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 10 Fedora Update System 2025-08-22 02:09:11 UTC
FEDORA-2025-20edee2b22 (llvm-20.1.8-4.fc42) has been pushed to the Fedora 42 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 11 Fabio Valentini 2025-09-29 15:35:19 UTC
Filed https://issues.redhat.com/browse/RHEL-118212 for the same issue happening in c9s after the Rust 1.89 update there.


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