Bug 2424325
| Summary: | FTBFS: gdb: new warnings when building with gcc 16 and glibc 2.42.9000 | ||
|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Siddhesh Poyarekar <sipoyare> |
| Component: | gdb | Assignee: | Kevin Buettner <kevinb> |
| Status: | CLOSED CURRENTRELEASE | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
| Severity: | medium | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | rawhide | CC: | ahajkova, fweimer, guinevere, jan, keiths, kevinb, mcermak, mkolar, suraj.ghimire7 |
| Target Milestone: | --- | Flags: | kevinb:
mirror+
|
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | --- | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2026-01-09 04:10:14 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 | ||
I will take care of this while doing the GDB 17.1 rebase. It seems that the change removing elt_no from bfd/archive.c is already in the GDB 17.1 sources. However, the fix for the const problem is not. So that change will have to be applied separately. These problems plus several more have been fixed in the GDB 17.1 rebase plus backports for rawhide. I'm closing this issue. |
These are already fixed upstream in binutils, but the rawhide gdb appears to not have been updated to incorporate those. Reproducible: Always Steps to Reproduce: Scratch build against the f44-build-side-124978 side tag to reproduce Actual Results: ../../bfd/archive.c: In function ‘_bfd_compute_and_write_armap’: ../../bfd/archive.c:2307:12: error: variable ‘elt_no’ set but not used [-Werror=unused-but-set-variable=] 2307 | file_ptr elt_no = 0; | ^~~~~~ cc1: all warnings being treated as errors ... ../../bfd/bfd.c: In function ‘_bfd_doprnt’: ../../bfd/bfd.c:1062:23: error: initialization discards ‘const’ qualifier from pointer target type [-Werror=discarded-qualifiers] 1062 | char *end = strchr (ptr, '%'); | ^~~~~~ cc1: all warnings being treated as errors