public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/swift-lang] rawhide: Fix compile errors with GCC 16 and Python 3.15 (RHBZ#2483711)
@ 2026-06-10 1:46 Link Dupont
0 siblings, 0 replies; only message in thread
From: Link Dupont @ 2026-06-10 1:46 UTC (permalink / raw)
To: git-commits
A new commit has been pushed.
Repo : rpms/swift-lang
Branch : rawhide
Commit : f617dce50326134832b194c66cac2a7c800d2fdd
Author : Link Dupont <link@sub-pop.net>
Date : 2026-06-10T01:46:12+00:00
Stats : +17/-0 in 2 file(s)
URL : https://src.fedoraproject.org/rpms/swift-lang/c/f617dce50326134832b194c66cac2a7c800d2fdd?branch=rawhide
Log:
Fix compile errors with GCC 16 and Python 3.15 (RHBZ#2483711)
---
diff --git a/cmake.patch b/cmake.patch
index 6e5a113..1a767a1 100644
--- a/cmake.patch
+++ b/cmake.patch
@@ -10,3 +10,16 @@ index 9d14f6b70f..491f023493 100644
#include <functional>
#include <memory>
+
+--- cmake.orig/Source/cmake.cxx
++++ cmake/Source/cmake.cxx
+@@ -131,7 +131,9 @@
+ // NOTE: the __linux__ macro is predefined on Android host too, but
+ // main CMakeLists.txt filters out this generator by host name.
+ #if (defined(__linux__) && !defined(__ANDROID__)) || defined(_WIN32)
++#if !defined(CMAKE_BOOTSTRAP)
+ # include "cmGlobalGhsMultiGenerator.h"
++#endif
+ #endif
+
+ #if defined(__APPLE__)
diff --git a/swift-lang.spec b/swift-lang.spec
index 360ba06..dfb6e96 100644
--- a/swift-lang.spec
+++ b/swift-lang.spec
@@ -361,6 +361,10 @@ cp %{SOURCE100} swift/utils/fedora-presets.ini
%build
export VERBOSE=1
+# Workaround for GCC 16 ICE in cmath / riemann_zeta
+export CFLAGS="-O2 -g -fno-builtin-logf"
+export CXXFLAGS="-O2 -g -fno-builtin-logf"
+
# Four-stage bootstrap to build Swift from scratch without external Swift compiler
# Stage 0: Build minimal Swift toolchain from C++ using gold linker
# Produces: Swift compiler with C++ legacy driver (no SwiftPM, no swift-driver)
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-06-10 1:46 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-06-10 1:46 [rpms/swift-lang] rawhide: Fix compile errors with GCC 16 and Python 3.15 (RHBZ#2483711) Link Dupont
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox