Bug 2483711

Summary: swift-lang fails to build with Python 3.15: /usr/include/c++/16/cmath:334:26: internal compiler error: Segmentation fault
Product: [Fedora] Fedora Reporter: Karolina Surma <ksurma>
Component: swift-langAssignee: Davide Cavalca <davide>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: davide, ksurma, link, mhroncok, michel, suraj.ghimire7
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: swift-lang-6.3.2-4.fc45 Doc Type: ---
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2026-06-10 09:49:17 UTC Type: Bug
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: 2412434    

Description Karolina Surma 2026-06-01 09:37:14 UTC
swift-lang fails to build with Python 3.15.0b1.

In file included from /builddir/build/BUILD/swift-lang-6.3.2-build/cmake/Source/cmFileCommand.cxx:8:
/usr/include/c++/16/cmath: In instantiation of ‘_Tp std::__detail::__riemann_zeta_glob(_Tp) [with _Tp = float]’:
/usr/include/c++/16/tr1/riemann_zeta.tcc:319:39:   required from ‘_Tp std::__detail::__riemann_zeta(_Tp) [with _Tp = float]’
  319 |             return __riemann_zeta_glob(__s);
      |                    ~~~~~~~~~~~~~~~~~~~^~~~~
/usr/include/c++/16/bits/specfun.h:1022:43:   required from here
 1022 |   { return __detail::__riemann_zeta<float>(__s); }
      |            ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~
/usr/include/c++/16/tr1/riemann_zeta.tcc:166:42:   in ‘constexpr’ expansion of ‘std::log((float)10)’
  166 |                                * std::log(_Tp(10)) - _Tp(1);
      |                                  ~~~~~~~~^~~~~~~~~
/usr/include/c++/16/cmath:334:26: internal compiler error: Segmentation fault
  334 |   { return __builtin_logf(__x); }
      |            ~~~~~~~~~~~~~~^~~~~

https://docs.python.org/3.15/whatsnew/3.15.html

For the build logs, see:
https://copr-be.cloud.fedoraproject.org/results/@python/python3.15-b1/fedora-rawhide-x86_64/10515874-swift-lang/

For all our attempts to build swift-lang with Python 3.15, see:
https://copr.fedorainfracloud.org/coprs/g/python/python3.15-b1/package/swift-lang/

Testing and mass rebuild of packages is happening in copr.
You can follow these instructions to test locally in mock if your package builds with Python 3.15:
https://copr.fedorainfracloud.org/coprs/g/python/python3.15-b1/

Let us know here if you have any questions.

Python 3.15 is planned to be included in Fedora 45.
To make that update smoother, we're building Fedora packages with all pre-releases of Python 3.15.
A build failure prevents us from testing all dependent packages (transitive [Build]Requires),
so if this package is required a lot, it's important for us to get it fixed soon.

We'd appreciate help from the people who know this package best,
but if you don't want to work on this now, let us know so we can try to work around it on our side.

Comment 1 Fedora Update System 2026-06-10 09:46:31 UTC
FEDORA-2026-def6fd60c7 (swift-lang-6.3.2-4.fc45) has been submitted as an update to Fedora 45.
https://bodhi.fedoraproject.org/updates/FEDORA-2026-def6fd60c7

Comment 2 Fedora Update System 2026-06-10 09:49:17 UTC
FEDORA-2026-def6fd60c7 (swift-lang-6.3.2-4.fc45) has been pushed to the Fedora 45 stable repository.
If problem still persists, please make note of it in this bug report.