On Wed, 30 Apr 2025 00:43:52 +0200, Kirill A. Korinsky <kir...@korins.ky> wrote: > > The first two issues you may solve by diff belove, but it ends with the fact > that GCC8 doesn't support all used features around constexpr for example. > > Probably the code can be ported to C++ that is supported by GCC8 but it huge > work and it need to be repeated with each update :( >
from another hand, here a patch inside gcc which can be backported to 11 and which fixes almost the same issue on sparc64. So, if anyone willing to run a kind of blind shot, here the diff: Index: lang/gcc/11/Makefile =================================================================== RCS file: /cvs/ports/lang/gcc/11/Makefile,v diff -u -p -r1.36 Makefile --- lang/gcc/11/Makefile 17 Apr 2025 17:46:03 -0000 1.36 +++ lang/gcc/11/Makefile 29 Apr 2025 23:07:13 -0000 @@ -2,7 +2,6 @@ # BROKEN-mips64 = In function 'test_fn': cc1: internal compiler error: Segmentation fault -BROKEN-sparc64 = ICE during selftests # tested: aarch64 amd64 arm hppa i386 powerpc ONLY_FOR_ARCHS = aarch64 alpha amd64 arm hppa i386 mips64 mips64el \ @@ -18,9 +17,9 @@ USE_NOEXECONLY = Yes V = 11.2.0 FULL_VERSION = $V FULL_PKGVERSION = $V -REVISION = 15 -REVISION-ada = 16 -REVISION-c++ = 16 +REVISION = 16 +REVISION-ada = 17 +REVISION-c++ = 17 ADASTRAP-amd64 = adastrap-amd64-$V-4.tar.xz ADASTRAP-arm = adastrap-arm-4.9.4-0.tar.xz Index: lang/gcc/11/patches/patch-gcc_toplev_c =================================================================== RCS file: lang/gcc/11/patches/patch-gcc_toplev_c diff -N lang/gcc/11/patches/patch-gcc_toplev_c --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ lang/gcc/11/patches/patch-gcc_toplev_c 29 Apr 2025 23:07:13 -0000 @@ -0,0 +1,14 @@ +Backport: https://gcc.gnu.org/cgit/gcc/commit/?id=248c8aeebc49aae3fd96bd587367d12e7c8b3c3a + +Index: gcc/toplev.c +--- gcc/toplev.c.orig ++++ gcc/toplev.c +@@ -2343,7 +2343,7 @@ toplev::main (int argc, char **argv) + if (warningcount || errorcount || werrorcount) + print_ignored_options (); + +- if (flag_self_test) ++ if (flag_self_test && !seen_error ()) + run_self_tests (); + + /* Invoke registered plugin callbacks if any. Some plugins could -- wbr, Kirill