Forwarding this report to bug-gnulib, as the origination of the sparcv8+.m4 file.
On Tue, Apr 07, 2026 at 02:18:54PM +0200, Thomas Klausner wrote: > 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" -- Eric Blake, Principal Software Engineer Red Hat, Inc. Virtualization: qemu.org | libguestfs.org
