From: George Koehler Subject: lang/gcc/15 for powerpc To: ports@openbsd.org Date: Sat, 24 Jan 2026 23:20:59 -0500 lang/gcc/15 is broken on powerpc, but this diff might fix it. ports-gcc switched from 8 to 15 on 2025-12-12, but powerpc is a slow arch, so it took more than a month for me to catch up to the problem. The broken 15 blocks all ports that depend on ports-gcc. The diff adjusts PFRAG.powerpc-main for 15. The other fixes are for Ada: use the newer adastrap, fix a time_t problem, and move s-vsllli.ali and s-vslllu.ali (which don't exist on powerpc) to PFRAG.128BIT-ada. I guess that libgnat/s-parame.ads sets time_t_bits to 32 on 32-bit archs, but g-socket.adb assumes 64-bit time_t, g-socket.adb:2882:26: error: value not in range of type "time_t" defined at g-sothco.ads:47 g-socket.adb:2882:26: error: static expression fails Constraint_Check g-socket.adb:2884:26: error: value not in range of type "time_t" defined at g-sothco.ads:47 g-socket.adb:2884:26: error: static expression fails Constraint_Check The fix uses s-parame__posix2008.ads to set time_t_bits to 64. I put s-parame__posix2008.ads only in the powerpc section of Makefile.rtl, but later, we might want it on all other archs (especially i386). I will commit this diff if I can complete 1 more build. --gkoehler Index: Makefile =================================================================== RCS file: /cvs/ports/lang/gcc/15/Makefile,v diff -u -p -r1.19 Makefile --- Makefile 15 Jan 2026 11:47:52 -0000 1.19 +++ Makefile 25 Jan 2026 03:34:00 -0000 @@ -21,6 +21,7 @@ FULL_PKGVERSION = $V GCC_PKGSPEC = >=15,<16 REVISION = 5 +REVISION-ada = 6 REVISION-f95 = 6 # aarch64 bootstrap contains only gdc @@ -30,7 +31,7 @@ ADASTRAP-arm = adastrap-arm-4.9.4-0.tar. ADASTRAP-hppa = adastrap-hppa-8.3.0-1.tar.xz ADASTRAP-i386 = adastrap-i386-11.2.0-4.tar.xz ADASTRAP-mips64 = adastrap-mips64-8.4.0-5.tar.xz -ADASTRAP-powerpc = adastrap-powerpc-11.2.0-3.tar.xz +ADASTRAP-powerpc = adastrap-powerpc-11.2.0-4.tar.xz ADASTRAP-sparc64 = adastrap-sparc64-6.5.0-0.tar.xz PKGNAME-main = gcc-${FULL_PKGVERSION} Index: distinfo =================================================================== RCS file: /cvs/ports/lang/gcc/15/distinfo,v diff -u -p -r1.7 distinfo --- distinfo 6 Dec 2025 16:05:34 -0000 1.7 +++ distinfo 25 Jan 2026 03:34:00 -0000 @@ -1,8 +1,8 @@ SHA256 (gcc/adastrap-amd64-11.2.0-5.tar.xz) = xv2mjPXOBPnrbP98RlbKmbNgE3iP8MHBrShaipe/YNI= SHA256 (gcc/adastrap-mips64-8.4.0-5.tar.xz) = Rfwenft0B3hxydQ3mqkkbFN40maQ73Jl4fgTFn1eNKQ= -SHA256 (gcc/adastrap-powerpc-11.2.0-3.tar.xz) = acJtrhP/QyqtfDHrcXZjwI1LIBBN8C+SrTokVunndSQ= +SHA256 (gcc/adastrap-powerpc-11.2.0-4.tar.xz) = 9KgiD7tqhcrCd8oTds/iVrmo9LXBNEAJQ+DdplytMuU= SHA256 (gcc/gcc-15.2.0.tar.xz) = Q4/ZloJrDIJIWinaA6ctcdbjVBqD7HAt9Ccfb+Al0k4= SIZE (gcc/adastrap-amd64-11.2.0-5.tar.xz) = 78100312 SIZE (gcc/adastrap-mips64-8.4.0-5.tar.xz) = 49877060 -SIZE (gcc/adastrap-powerpc-11.2.0-3.tar.xz) = 70134604 +SIZE (gcc/adastrap-powerpc-11.2.0-4.tar.xz) = 70164724 SIZE (gcc/gcc-15.2.0.tar.xz) = 101056276 Index: patches/patch-gcc_ada_Makefile_rtl =================================================================== RCS file: /cvs/ports/lang/gcc/15/patches/patch-gcc_ada_Makefile_rtl,v diff -u -p -r1.2 patch-gcc_ada_Makefile_rtl --- patches/patch-gcc_ada_Makefile_rtl 7 Nov 2025 16:20:01 -0000 1.2 +++ patches/patch-gcc_ada_Makefile_rtl 25 Jan 2026 03:34:00 -0000 @@ -1,7 +1,7 @@ Index: gcc/ada/Makefile.rtl --- gcc/ada/Makefile.rtl.orig +++ gcc/ada/Makefile.rtl -@@ -1828,6 +1828,239 @@ ifeq ($(strip $(filter-out x86_64 pc gnu,$(target_cpu) +@@ -1828,6 +1828,240 @@ ifeq ($(strip $(filter-out x86_64 pc gnu,$(target_cpu) endif endif @@ -128,6 +128,7 @@ Index: gcc/ada/Makefile.rtl + s-osinte.adb