public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Link Dupont <link@sub-pop.net>
To: git-commits@fedoraproject.org
Subject: [rpms/swift-lang] rawhide: Fix compile errors with GCC 16 and Python 3.15 (RHBZ#2483711)
Date: Wed, 10 Jun 2026 01:46:45 GMT	[thread overview]
Message-ID: <178105600521.1.9936031721814558657.rpms-swift-lang-f617dce50326@fedoraproject.org> (raw)

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)

                 reply	other threads:[~2026-06-10  1:46 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=178105600521.1.9936031721814558657.rpms-swift-lang-f617dce50326@fedoraproject.org \
    --to=link@sub-pop.net \
    --cc=git-commits@fedoraproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox