public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/llvm] f43: Fix FTBFS due to missing linux/scc.h
@ 2026-07-23  2:32 Tulio Magno Quites Machado Filho
  0 siblings, 0 replies; only message in thread
From: Tulio Magno Quites Machado Filho @ 2026-07-23  2:32 UTC (permalink / raw)
  To: git-commits

            A new commit has been pushed.

            Repo   : rpms/llvm
            Branch : f43
            Commit : 1a3227ff0367e1f2bf6829f49d58390e347a6509
            Author : Tulio Magno Quites Machado Filho <tuliom@redhat.com>
            Date   : 2026-07-21T17:04:45-03:00
            Stats  : +63/-0 in 2 file(s)
            URL    : https://src.fedoraproject.org/rpms/llvm/c/1a3227ff0367e1f2bf6829f49d58390e347a6509?branch=f43

            Log:
            Fix FTBFS due to missing linux/scc.h

Backport a fix from LLVM22.

---
diff --git a/194121.patch b/194121.patch
new file mode 100644
index 0000000..71b2627
--- /dev/null
+++ b/194121.patch
@@ -0,0 +1,60 @@
+From 9b722024f1be0a5238147ec28ae45f0990a853ac Mon Sep 17 00:00:00 2001
+From: cqwrteur <uwgghhbcad@gmail.com>
+Date: Sat, 25 Apr 2026 14:23:32 +0800
+Subject: [PATCH] [compiler-rt][sanitizer] Remove linux/scc.h (#194116)
+
+#194110
+
+Linux Kernel has removed scc.h header completely from the source code
+Therefore, we need to remove the usage in compiler-rt/sanitizer too.
+https://github.com/torvalds/linux/commit/64edfa65062dc4509ba75978116b2f6d392346f5#diff-1ca78e598a5041ee51ae795d168435afad598b82a7a0ce80f215993589b96c7c
+
+Without removing it, not only it breaks compiler-rt but also GCC build
+since GCC always builds libsanitizer for linux targets.
+
+After merging this we will need to cherry pick to GCC.
+
+(cherry picked from commit 3dc4fd6dd41100f051a63642f449b16324389c96)
+---
+ .../sanitizer_platform_limits_posix.cpp       | 21 ++++++++-----------
+ 1 file changed, 9 insertions(+), 12 deletions(-)
+
+diff --git a/compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_posix.cpp b/compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_posix.cpp
+index ea8cc306268cb..0109df531e88c 100644
+--- a/compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_posix.cpp
++++ b/compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_posix.cpp
+@@ -151,16 +151,15 @@ typedef struct user_fpregs elf_fpregset_t;
+ #if defined(__mips64)
+ # include <sys/procfs.h>
+ #endif
+-#include <sys/user.h>
+-#include <linux/if_eql.h>
+-#include <linux/if_plip.h>
+-#include <linux/lp.h>
+-#include <linux/mroute.h>
+-#include <linux/mroute6.h>
+-#include <linux/scc.h>
+-#include <linux/serial.h>
+-#include <sys/msg.h>
+-#include <sys/ipc.h>
++#      include <linux/if_eql.h>
++#      include <linux/if_plip.h>
++#      include <linux/lp.h>
++#      include <linux/mroute.h>
++#      include <linux/mroute6.h>
++#      include <linux/serial.h>
++#      include <sys/ipc.h>
++#      include <sys/msg.h>
++#      include <sys/user.h>
+ #endif  // SANITIZER_ANDROID
+ 
+ #include <link.h>
+@@ -532,8 +531,6 @@ unsigned struct_ElfW_Phdr_sz = sizeof(Elf_Phdr);
+   unsigned struct_kbsentry_sz = sizeof(struct kbsentry);
+   unsigned struct_mtconfiginfo_sz = sizeof(struct mtconfiginfo);
+   unsigned struct_nr_parms_struct_sz = sizeof(struct nr_parms_struct);
+-  unsigned struct_scc_modem_sz = sizeof(struct scc_modem);
+-  unsigned struct_scc_stat_sz = sizeof(struct scc_stat);
+   unsigned struct_serial_multiport_struct_sz
+       = sizeof(struct serial_multiport_struct);
+   unsigned struct_serial_struct_sz = sizeof(struct serial_struct);

diff --git a/llvm.spec b/llvm.spec
index 1b39b61..e9ca15e 100644
--- a/llvm.spec
+++ b/llvm.spec
@@ -452,6 +452,9 @@ Patch2105: 43cb4631c1f42dbfce78288b8ae30b5840ed59b3.patch
 # Fix for s390x vector miscompilation (rhbz#2430017)
 Patch2106: 0001-SystemZ-Fix-code-in-widening-vector-multiplication-1.patch
 
+# Fix for missing linux/scc.h
+Patch2107: 194121.patch
+
 %if 0%{?rhel} == 8
 %global python3_pkgversion 3.12
 %global __python3 /usr/bin/python3.12

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2026-07-23  2:32 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-07-23  2:32 [rpms/llvm] f43: Fix FTBFS due to missing linux/scc.h Tulio Magno Quites Machado Filho

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox