This will fix this build failure.
Index: distinfo
===================================================================
RCS file: /cvsroot/pkgsrc/lang/gcc7/distinfo,v
retrieving revision 1.18
diff -u -r1.18 distinfo
--- distinfo 9 Apr 2020 12:02:14 -0000 1.18
+++ distinfo 13 Feb 2021 10:20:51 -0000
@@ -27,6 +27,7 @@
SHA1 (patch-gcc_config_netbsd-elf.h) = 5a9b5ef26c03bec3cd58e2f446224aa6e94a30d5
SHA1 (patch-gcc_config_netbsd-protos.h) = 6d28864b4ccc8c1a63fe28e43601b84b63a00633
SHA1 (patch-gcc_config_netbsd.h) = 662226f4491f94b641f78b1273a9047434d75aed
+SHA1 (patch-gcc_config_sparc_sparc.c) = 233d3418fd928c71e951003e99790c6686837781
SHA1 (patch-gcc_config_t-netbsd) = 802ad5706aa7ca9629f8e237f08fbb1569d28846
SHA1 (patch-gcc_config_x-netbsd) = 6dc3d78e26df62054ea29f98ca51592858e671e3
SHA1 (patch-gcc_configure) = 15fb7af267b79965f83bc64ce8aad1279b0ea52d
Index: patches/patch-gcc_config_sparc_sparc.c
===================================================================
RCS file: patches/patch-gcc_config_sparc_sparc.c
diff -N patches/patch-gcc_config_sparc_sparc.c
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ patches/patch-gcc_config_sparc_sparc.c 13 Feb 2021 10:20:51 -0000
@@ -0,0 +1,17 @@
+$NetBSD$
+
+Invoke subtarget-specific code for replacing builtin functions.
+Causes "cabsl" to be converted to _c99_cabsl on NetBSD.
+
+--- gcc/config/sparc/sparc.c.orig 2021-02-13 10:19:18.404989362 +0000
++++ gcc/config/sparc/sparc.c
+@@ -10838,6 +10838,9 @@ sparc_init_builtins (void)
+
+ if (TARGET_VIS)
+ sparc_vis_init_builtins ();
++#ifdef SUBTARGET_INIT_BUILTINS
++ SUBTARGET_INIT_BUILTINS;
++#endif
+ }
+
+ /* Create builtin functions for FPU instructions. */
Looking good. Thank you!
I have seemingly successfully built the chain gcc7- > lapack/blas -> py38-numpy (-> opencv is currently building)
on NetBSD9.1; sparc64
Best regards,
Connor