Hi!

I'm in the process of updating m4 in pkgsrc, and found an old patch.

The problem is that a sparc v9 specific flag is enabled on sparc v8,
leading to core dumps.

I don't own such hardware, but a detailed debugging session has been
tracked in https://gnats.netbsd.org/56498

I'll attach the patch.

Cheers,
 Thomas
$NetBSD: patch-m4_sparcv8+.m4,v 1.1 2021/11/15 13:20:04 nia Exp $

pkg/56498: "devel/m4" build fails on netbsd-9/sparc

--- m4/sparcv8+.m4.orig 2021-04-22 20:28:47.000000000 +0000
+++ m4/sparcv8+.m4
@@ -30,7 +30,7 @@ AC_DEFUN([gl_SPARC_V8PLUS],
              [gl_cv_sparc_v8plus=yes],
              [gl_cv_sparc_v8plus=no])
           ])
-        if test $gl_cv_sparc_v8plus = no; then
+        if test $gl_cv_sparc_v8plus != no; then
           dnl Strangely enough, '-mv8plus' does not have the desired effect.
           dnl But '-mcpu=v9' does.
           CC="$CC -mcpu=v9"
  • Compilation pr... Thomas Klausner

Reply via email to