Bug 2423184 - FTBFS: kernel: Build failure due to bindgen with gcc16
Summary: FTBFS: kernel: Build failure due to bindgen with gcc16
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: kernel
Version: rawhide
Hardware: Unspecified
OS: Linux
unspecified
medium
Target Milestone: ---
Assignee: Justin M. Forbes
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks: GCC16-Mass-Prebuild
TreeView+ depends on / blocked
 
Reported: 2025-12-17 15:49 UTC by Siddhesh Poyarekar
Modified: 2026-01-07 17:52 UTC (History)
14 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2026-01-07 17:52:23 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

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.


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