public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Dave Love <loveshack@fedoraproject.org>
To: git-commits@fedoraproject.org
Subject: [rpms/blis] epel10: - Add patch for gcc16
Date: Sun, 01 Nov 2026 14:14:12 GMT	[thread overview]
Message-ID: <179354245216.1.3875447866449717628.rpms-blis-f8c91eb3d3c7@fedoraproject.org> (raw)

            A new commit has been pushed.

            Repo   : rpms/blis
            Branch : epel10
            Commit : f8c91eb3d3c7fc8af7f340bf1547579ad0746947
            Author : Dave Love <loveshack@fedoraproject.org>
            Date   : 2026-01-06T12:26:53+00:00
            Stats  : +129/-19 in 2 file(s)
            URL    : https://src.fedoraproject.org/rpms/blis/c/f8c91eb3d3c7fc8af7f340bf1547579ad0746947?branch=epel10

            Log:
            - Add patch for gcc16

- Remove el7 support

---
diff --git a/0001-Update-Haswell-gemmsup-fix-for-gcc-16-and-later.-891.patch b/0001-Update-Haswell-gemmsup-fix-for-gcc-16-and-later.-891.patch
new file mode 100644
index 0000000..1d5e499
--- /dev/null
+++ b/0001-Update-Haswell-gemmsup-fix-for-gcc-16-and-later.-891.patch
@@ -0,0 +1,119 @@
+From 5c2b22da811b41a03905a8612e44579ad7fac48a Mon Sep 17 00:00:00 2001
+From: Devin Matthews <damatthews@smu.edu>
+Date: Thu, 11 Sep 2025 19:00:41 -0500
+Subject: [PATCH] Update Haswell gemmsup fix for gcc 16 and later. (#891)
+
+Details:
+- The problem persists with gcc16 so enable the fix for gcc15 *and later* (thanks @negril).
+- Disable all vectorization, not just SLP vectorization (thanks @thesamesam).
+---
+ CREDITS                                                  | 2 ++
+ kernels/haswell/3/sup/bli_gemmsup_rv_haswell_asm_d6x8m.c | 9 ++++-----
+ kernels/haswell/3/sup/bli_gemmsup_rv_haswell_asm_d6x8n.c | 9 ++++-----
+ .../haswell/3/sup/bli_gemmsup_rv_haswell_asm_s6x16m.c    | 9 ++++-----
+ .../haswell/3/sup/bli_gemmsup_rv_haswell_asm_s6x16n.c    | 9 ++++-----
+ 5 files changed, 18 insertions(+), 20 deletions(-)
+
+diff --git a/CREDITS b/CREDITS
+index b677cbaa..a0615da1 100644
+--- a/CREDITS
++++ b/CREDITS
+@@ -64,6 +64,7 @@ but many others have contributed code, ideas, and feedback, including
+   Aaron Hutchinson         @Aaron-Hutchinson          (SiFive)
+   Francisco Igual          @figual                    (Universidad Complutense de Madrid)
+                            @j-bm
++  Sam James                @thesamesam
+   Madeesh Kannan           @shadeMe
+   Tony Kelman              @tkelman
+   Lee Killough             @leekillough               (Tactical Computing Labs)
+@@ -149,6 +150,7 @@ but many others have contributed code, ideas, and feedback, including
+   Chenhan Yu               @ChenhanYu                 (The University of Texas at Austin)
+   Roman Yurchak            @rth                       (Symerio)
+   Stefano Zampini          @stefanozampini
++  Paul Zander              @negril
+   M. Zhou                  @cdluminate
+   Igor Zhuravlov           @jip                       (Far Eastern Federal University)
+                            @AngryLoki
+diff --git a/kernels/haswell/3/sup/bli_gemmsup_rv_haswell_asm_d6x8m.c b/kernels/haswell/3/sup/bli_gemmsup_rv_haswell_asm_d6x8m.c
+index e71732de..2b38c9a4 100644
+--- a/kernels/haswell/3/sup/bli_gemmsup_rv_haswell_asm_d6x8m.c
++++ b/kernels/haswell/3/sup/bli_gemmsup_rv_haswell_asm_d6x8m.c
+@@ -33,11 +33,10 @@
+ 
+ */
+ 
+-// This avoids a known issue with GCC15 ("error: bp cannot be used in asm here", #845).
+-// Only check for version 15 since this may be fixed in 16 (**fingers crossed**), and also
+-// make sure the compiler isn't clang since it also confusingly defines __GNUC__
+-#if !defined(__clang__) && defined(__GNUC__) && __GNUC__ == 15
+-#pragma GCC optimize("-fno-tree-slp-vectorize")
++// This avoids a known issue with GCC15+ ("error: bp cannot be used in asm here", #845).
++// Make sure the compiler isn't clang since it also confusingly defines __GNUC__
++#if !defined(__clang__) && defined(__GNUC__) && __GNUC__ >= 15
++#pragma GCC optimize("-fno-tree-vectorize")
+ #endif
+ 
+ #include "blis.h"
+diff --git a/kernels/haswell/3/sup/bli_gemmsup_rv_haswell_asm_d6x8n.c b/kernels/haswell/3/sup/bli_gemmsup_rv_haswell_asm_d6x8n.c
+index 880af420..093d149a 100644
+--- a/kernels/haswell/3/sup/bli_gemmsup_rv_haswell_asm_d6x8n.c
++++ b/kernels/haswell/3/sup/bli_gemmsup_rv_haswell_asm_d6x8n.c
+@@ -33,11 +33,10 @@
+ 
+ */
+ 
+-// This avoids a known issue with GCC15 ("error: bp cannot be used in asm here", #845).
+-// Only check for version 15 since this may be fixed in 16 (**fingers crossed**), and also
+-// make sure the compiler isn't clang since it also confusingly defines __GNUC__
+-#if !defined(__clang__) && defined(__GNUC__) && __GNUC__ == 15
+-#pragma GCC optimize("-fno-tree-slp-vectorize")
++// This avoids a known issue with GCC15+ ("error: bp cannot be used in asm here", #845).
++// Make sure the compiler isn't clang since it also confusingly defines __GNUC__
++#if !defined(__clang__) && defined(__GNUC__) && __GNUC__ >= 15
++#pragma GCC optimize("-fno-tree-vectorize")
+ #endif
+ 
+ #include "blis.h"
+diff --git a/kernels/haswell/3/sup/bli_gemmsup_rv_haswell_asm_s6x16m.c b/kernels/haswell/3/sup/bli_gemmsup_rv_haswell_asm_s6x16m.c
+index d0814d6d..e9697f97 100644
+--- a/kernels/haswell/3/sup/bli_gemmsup_rv_haswell_asm_s6x16m.c
++++ b/kernels/haswell/3/sup/bli_gemmsup_rv_haswell_asm_s6x16m.c
+@@ -33,11 +33,10 @@
+ 
+ */
+ 
+-// This avoids a known issue with GCC15 ("error: bp cannot be used in asm here", #845).
+-// Only check for version 15 since this may be fixed in 16 (**fingers crossed**), and also
+-// make sure the compiler isn't clang since it also confusingly defines __GNUC__
+-#if !defined(__clang__) && defined(__GNUC__) && __GNUC__ == 15
+-#pragma GCC optimize("-fno-tree-slp-vectorize")
++// This avoids a known issue with GCC15+ ("error: bp cannot be used in asm here", #845).
++// Make sure the compiler isn't clang since it also confusingly defines __GNUC__
++#if !defined(__clang__) && defined(__GNUC__) && __GNUC__ >= 15
++#pragma GCC optimize("-fno-tree-vectorize")
+ #endif
+ 
+ #include "blis.h"
+diff --git a/kernels/haswell/3/sup/bli_gemmsup_rv_haswell_asm_s6x16n.c b/kernels/haswell/3/sup/bli_gemmsup_rv_haswell_asm_s6x16n.c
+index bc2d783e..73517976 100644
+--- a/kernels/haswell/3/sup/bli_gemmsup_rv_haswell_asm_s6x16n.c
++++ b/kernels/haswell/3/sup/bli_gemmsup_rv_haswell_asm_s6x16n.c
+@@ -33,11 +33,10 @@
+ 
+ */
+ 
+-// This avoids a known issue with GCC15 ("error: bp cannot be used in asm here", #845).
+-// Only check for version 15 since this may be fixed in 16 (**fingers crossed**), and also
+-// make sure the compiler isn't clang since it also confusingly defines __GNUC__
+-#if !defined(__clang__) && defined(__GNUC__) && __GNUC__ == 15
+-#pragma GCC optimize("-fno-tree-slp-vectorize")
++// This avoids a known issue with GCC15+ ("error: bp cannot be used in asm here", #845).
++// Make sure the compiler isn't clang since it also confusingly defines __GNUC__
++#if !defined(__clang__) && defined(__GNUC__) && __GNUC__ >= 15
++#pragma GCC optimize("-fno-tree-vectorize")
+ #endif
+ 
+ #include "blis.h"
+-- 
+2.47.3
+

diff --git a/blis.spec b/blis.spec
index 9fe989a..7d5d2c9 100644
--- a/blis.spec
+++ b/blis.spec
@@ -8,13 +8,6 @@
 %global sover .4.0.0
 %global soshort .4
 
-%if 0%{?el7}
-# Use devtoolset for avx512 support
-%ifnarch ppc64le ppc64
-%global dts 9
-%endif
-%endif
-
 # Both these are necessary to avoid asm error
 # error: bp cannot be used in ‘asm’ here
 # Fixme: patch to localize this
@@ -23,7 +16,7 @@
 
 Name:		blis
 Version:	2.0
-Release:	2%{?dist}
+Release:	3%{?dist}
 Summary:	BLAS-like Library Instantiation Software Framework
 License:	BSD-3-Clause
 URL:		https://github.com/flame/blis
@@ -32,14 +25,14 @@ Source0:	https://github.com/flame/blis/archive/%commit/%name-%shortcommit.tar.gz
 %else
 Source0:	https://github.com/flame/blis/archive/%version/%name-%version.tar.gz
 %endif
+Patch1:         0001-Update-Haswell-gemmsup-fix-for-gcc-16-and-later.-891.patch
 BuildRequires:	perl
-BuildRequires:	%{?dts:devtoolset-%{?dts}-binutils devtoolset-%{?dts}-}gcc
+BuildRequires:	binutils gcc
 BuildRequires:	python3-devel gcc-gfortran chrpath
 BuildRequires:	make
 # memkind is currently only relevant for KNL as far as I know, but
-# might be relevant in future for other targets with HBM.  It needs
-# updating in el7.  It should support other targets, but only x86_64
-# is packaged.
+# might be relevant in future for other targets with HBM.  It should
+# support other targets, but only x86_64 is packaged.
 %ifarch x86_64
 # removed from RHEL10
 %if 0%{?el8}%{?el9}%{?fedora}
@@ -133,14 +126,9 @@ BLIS architecture macros.
 
 %prep
 %setup -q %{?commit: -n %name-%commit}
-# The soversion changed in release 0.7.0, but abipkgdiff suggests it
-# shouldn't have, since only undocumented interfaces have changed from
-# 0.6.0: removed bli_thread_get_env, bli_thread_init_rntm; indirect
-# sub-types in bli_addd_ex; ARCH enum in bli_arch_query_id.
-#echo %sover | awk -F. '{printf("%s\n%s.%s\n", $2,$3,$4)}' >so_version
+%patch -P1 -p1 -b .gcc16
 
 %build
-%{?dts:. /opt/rh/devtoolset-%{?dts}/enable}
 case %_arch in
 x86_64) arch=x86_64 ;;
 # a57 runs on all aarch64 and the optimized micro-kernel should be a
@@ -295,7 +283,6 @@ EOF
 
 
 %check
-%{?dts:. /opt/rh/devtoolset-%{?dts}/enable}
 # A quick check which tests the Fortran BLAS interface with gfortran,
 # unlike the "test" or "check" targets.
 # Fixme: check a 64-bit version where relevant
@@ -385,6 +372,10 @@ export LD_LIBRARY_PATH=`pwd`/serial/lib
 %{macrosdir}/macros.blis-srpm
 
 %changelog
+* Tue Jan  6 2026 Dave Love <loveshack@fedoraproject.org> - 2.0-3
+- Add patch for gcc16
+- Remove el7 support
+
 * Tue Jul 29 2025 Dave Love <loveshack@fedoraproject.org> - 2.0-2
 - Avoid memkind on EL10
 

                 reply	other threads:[~2026-11-01 14:14 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=179354245216.1.3875447866449717628.rpms-blis-f8c91eb3d3c7@fedoraproject.org \
    --to=loveshack@fedoraproject.org \
    --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