I thought we had more time for this. R fails to build too, and the mismatch between Fedora and R releases always makes this kind of change inconvenient for us packagers.
Anyway. What's the easiest way to modify the default flags to set -std=gnu17 for the time being?
Iñaki
On Wed, 15 Jan 2025 at 17:23, Jakub Jelinek <jakub@xxxxxxxxxx> wrote:
On Wed, Jan 15, 2025 at 05:06:47PM +0100, Karolina Surma wrote:
> My Python 3.14 builds have started pulling gcc 15 in Fedora Rawhide (no
> side-tag). Is this intentional?
If you mean that rawhide now uses gcc 15, then yes (not building 3.14 is of
course not on purpose, but it might be that it is not valid C23 or various
other reasons).
> Unfortunately the builds also started to fail, so I'm trying to pin point
> the issue. The gcc version bump looks like a likely candidate.
> Has the version 15 already been released?
No, it hasn't been released, but will be in April or May.
Fedora has been using gcc prereleases as system compilers usually since mid
to late January for many years (don't remember exactly, decade and half or
more).
> I look at the documentation linked
> in the Fedora Change, but https://gcc.gnu.org/gcc-15/porting_to.html says:
> "Note: GCC 15 has not been released yet, so this document is a
> work-in-progress."
Yes, we plan to add details there really soon, David Malcolm has performed a
mass prebuild of Fedora with ~ a month old version of gcc over Christmas
and its analysis is being finalized now.
I guess for packagers the most important change is that gcc switched in C
to -std=gnu23 by default (compared to -std=gnu17 default in gcc 14 and some
earlier releases), which means that e.g. void foo (); changed behavior from
function with unspecified parameters returning void to function with no
parameters returning void (like in C++), bool, false, true are keywords,
there is [[]] attribute support etc.
David's notes are in
https://fedoraproject.org/wiki/F42-gcc-15-mass-prebuild#Automated_classification
I think, e.g. gentoo notes are in
https://wiki.gentoo.org/wiki/Modern_C_porting#Fixes_.28C23.29
Jakub
--
_______________________________________________
devel mailing list -- devel@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to devel-leave@xxxxxxxxxxxxxxxxxxxxxxx
Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedoraproject.org/archives/list/devel@xxxxxxxxxxxxxxxxxxxxxxx
Do not reply to spam, report it: https://pagure.io/fedora-infrastructure/new_issue
Iñaki Úcar
-- _______________________________________________ devel mailing list -- devel@xxxxxxxxxxxxxxxxxxxxxxx To unsubscribe send an email to devel-leave@xxxxxxxxxxxxxxxxxxxxxxx Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/ List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines List Archives: https://lists.fedoraproject.org/archives/list/devel@xxxxxxxxxxxxxxxxxxxxxxx Do not reply to spam, report it: https://pagure.io/fedora-infrastructure/new_issue