pkgsrc-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: pkg/56498: "devel/m4" build fails on netbsd-9/sparc
The following reply was made to PR pkg/56498; it has been noted by GNATS.
From: "John D. Baker" <jdbaker%consolidated.net@localhost>
To: gnats-bugs%netbsd.org@localhost
Cc:
Subject: Re: pkg/56498: "devel/m4" build fails on netbsd-9/sparc
Date: Sun, 14 Nov 2021 09:50:59 -0600 (CST)
Looking at the configure script, I think there's a typo in the section
that tests for sparc v8+:
[...]
case "$host_cpu" in
sparc*)
if test -n "$GCC"; then
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether SPARC v8+
instructions are supported" >&5
printf %s "checking whether SPARC v8+ instructions are supported... " >&6; }
if test ${gl_cv_sparc_v8plus+y}
then :
printf %s "(cached) " >&6
else $as_nop
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */
int
main (void)
{
asm volatile ("membar 2");
;
return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"
then :
gl_cv_sparc_v8plus=yes
else $as_nop
gl_cv_sparc_v8plus=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sparc_v8plus" >&5
printf "%s\n" "$gl_cv_sparc_v8plus" >&6; }
if test $gl_cv_sparc_v8plus = no; then
>>> ^ <<<
CC="$CC -mcpu=v9"
CXX="$CXX -mcpu=v9"
fi
fi
;;
esac
[...]
I believe the line marked with ">>> ^ <<<" below it should be "!="
rather than "=".
--
|/"\ John D. Baker, KN5UKS NetBSD Darwin/MacOS X
|\ / jdbaker[snail]consolidated[flyspeck]net OpenBSD FreeBSD
| X No HTML/proprietary data in email. BSD just sits there and works!
|/ \ GPGkeyID: D703 4A7E 479F 63F8 D3F4 BD99 9572 8F23 E4AD 1645
Home |
Main Index |
Thread Index |
Old Index