Index | Thread | Search

From:
Peter Hessler <phessler@theapt.org>
Subject:
armv7 build fix for lang/gcc/15
To:
ports@openbsd.org
Date:
Sun, 26 Apr 2026 16:08:26 +0200

Download raw body.

Thread
  • Peter Hessler:

    armv7 build fix for lang/gcc/15

lang/gcc/15 currently fails because it didn't know what a bool was, this
fixes it.  Should unlock a few hundred packages to either build or fail
on their own terms.

doesn't affect any other platform.

OK?


Index: lang/gcc/15/patches/patch-libgcc_config_arm_unwind-arm_h
===================================================================
RCS file: /cvs/ports/lang/gcc/15/patches/patch-libgcc_config_arm_unwind-arm_h,v
retrieving revision 1.1.1.1
diff -u -p -u -p -r1.1.1.1 patch-libgcc_config_arm_unwind-arm_h
--- lang/gcc/15/patches/patch-libgcc_config_arm_unwind-arm_h	18 Aug 2025 19:49:24 -0000	1.1.1.1
+++ lang/gcc/15/patches/patch-libgcc_config_arm_unwind-arm_h	26 Apr 2026 14:05:23 -0000
@@ -1,7 +1,16 @@
 Index: libgcc/config/arm/unwind-arm.h
 --- libgcc/config/arm/unwind-arm.h.orig
 +++ libgcc/config/arm/unwind-arm.h
-@@ -74,7 +74,7 @@ static inline _Unwind_Ptr _Unwind_gnu_Find_got (_Unwin
+@@ -29,6 +29,8 @@
+ 
+ #include "unwind-arm-common.h"
+ 
++#include <stdbool.h>
++
+ #define UNWIND_STACK_REG 13
+ /* Use IP as a scratch register within the personality routine.  */
+ #define UNWIND_POINTER_REG 12
+@@ -74,7 +76,7 @@ static inline _Unwind_Ptr _Unwind_gnu_Find_got (_Unwin
        tmp += _Unwind_gnu_Find_got (ptr);
        tmp = *(_Unwind_Word *) tmp;
  #elif (defined(linux) && !defined(__uClinux__)) || defined(__NetBSD__) \


OK?