Bug 2423184

Summary: FTBFS: kernel: Build failure due to bindgen with gcc16
Product: [Fedora] Fedora Reporter: Siddhesh Poyarekar <sipoyare>
Component: kernelAssignee: Justin M. Forbes <jforbes>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: unspecified    
Version: rawhideCC: acaringi, adscvr, airlied, hans, hpa, jforbes, josef, kernel-maint, linville, masami256, mchehab, ptalbert, steved, suraj.ghimire7
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: ---
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2026-01-07 17:52: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: 2424310    

Description Siddhesh Poyarekar 2025-12-17 15:49:48 UTC
1. Please describe the problem:

The rawhide kernel does not build with gcc16 due to bindgen choking on the -fdiagnostics-show-context flag.  The following patch is needed to get this working:

https://lore.kernel.org/rust-for-linux/20251217150010.665153-1-siddhesh@gotplt.org/T/#u

2. What is the Version-Release number of the kernel:

6.19.0-0.rc1.15

3. Did it work previously in Fedora? If so, what kernel version did the issue
   *first* appear?  Old kernels are available for download at
   https://koji.fedoraproject.org/koji/packageinfo?packageID=8 :

No

4. Can you reproduce this issue? If so, please provide the steps to reproduce
   the issue below:

Build the unpatched kernel with a gcc snapshot:

https://copr.fedorainfracloud.org/coprs/siddhesh/gcc-snapshot-20251217/

5. Does this problem occur with the latest Rawhide kernel? To install the
   Rawhide kernel, run ``sudo dnf install fedora-repos-rawhide`` followed by
   ``sudo dnf update --enablerepo=rawhide kernel``:

Yes

6. Are you running any modules that not shipped with directly Fedora's kernel?:

No

7. Please attach the kernel logs. You can get the complete kernel log
   for a boot with ``journalctl --no-hostname -k > dmesg.txt``. If the
   issue occurred on a previous boot, use the journalctl ``-b`` flag.

Not applicable.

Reproducible: Always

Comment 1 Justin M. Forbes 2026-01-07 17:52:23 UTC
This patch is included now.  Thanks for the heads up.