NetBSD Problem Report #53570
From www@NetBSD.org Sun Sep 2 23:19:44 2018
Return-Path: <www@NetBSD.org>
Received: from mail.netbsd.org (mail.netbsd.org [199.233.217.200])
(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
(Client CN "mail.NetBSD.org", Issuer "mail.NetBSD.org CA" (not verified))
by mollari.NetBSD.org (Postfix) with ESMTPS id B6BD97A1B1
for <gnats-bugs@gnats.NetBSD.org>; Sun, 2 Sep 2018 23:19:44 +0000 (UTC)
Message-Id: <20180902231943.598E17A1FA@mollari.NetBSD.org>
Date: Sun, 2 Sep 2018 23:19:43 +0000 (UTC)
From: tobiasu@tmux.org
Reply-To: tobiasu@tmux.org
To: gnats-bugs@NetBSD.org
Subject: devel/libatomic_ops: broken on sparc, attempts to use v9 instructions
X-Send-Pr-Version: www-1.0
>Number: 53570
>Category: pkg
>Synopsis: devel/libatomic_ops: broken on sparc, attempts to use v9 instructions
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: pkg-manager
>State: closed
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Sun Sep 02 23:20:00 +0000 2018
>Closed-Date: Tue Sep 18 03:42:24 +0000 2018
>Last-Modified: Tue Sep 18 03:45:00 +0000 2018
>Originator: Tobias Ulmer
>Release: 8.99.24 / pkgsrc HEAD
>Organization:
>Environment:
NetBSD ss20.tmux.org 8.99.24 NetBSD 8.99.24 (GENERIC.MP) #0: Mon Aug 27 17:47:48 UTC 2018 mkrepro@mkrepro.NetBSD.org:/usr/src/sys/arch/sparc/compile/GENERIC.MP sparc
>Description:
===> Building for libatomic_ops-7.6.6
Making all in src
gmake[1]: Entering directory '/usr/pobj/devel/libatomic_ops/work/libatomic_ops-7.6.6/src'
/usr/pkg/bin/gmake all-am
gmake[2]: Entering directory '/usr/pobj/devel/libatomic_ops/work/libatomic_ops-7.6.6/src'
/bin/sh ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I../src -I../src -fPIC -Wall -Wextra -Wpedantic -W
no-long-long -O2 -D_FORTIFY_SOURCE=2 -MT atomic_ops.lo -MD -MP -MF .deps/atomic_ops.Tpo -c -o atomic_ops.lo atomic_ops.
c
/bin/sh ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I../src -I../src -fPIC -Wall -Wextra -Wpedantic -W
no-long-long -O2 -D_FORTIFY_SOURCE=2 -MT atomic_ops_stack.lo -MD -MP -MF .deps/atomic_ops_stack.Tpo -c -o atomic_ops_st
ack.lo atomic_ops_stack.c
libtool: compile: gcc -DHAVE_CONFIG_H -I../src -fPIC -Wall -Wextra -Wpedantic -Wno-long-long -O2 -D_FORTIFY_SOURCE=2 -M
T atomic_ops.lo -MD -MP -MF .deps/atomic_ops.Tpo -c atomic_ops.c -fPIC -DPIC -o .libs/atomic_ops.o
libtool: compile: gcc -DHAVE_CONFIG_H -I../src -fPIC -Wall -Wextra -Wpedantic -Wno-long-long -O2 -D_FORTIFY_SOURCE=2 -M
T atomic_ops_stack.lo -MD -MP -MF .deps/atomic_ops_stack.Tpo -c atomic_ops_stack.c -fPIC -DPIC -o .libs/atomic_ops_stac
k.o
/var/tmp//ccFlXfsR.s: Assembler messages:
/var/tmp//ccFlXfsR.s:32: Error: Architecture mismatch on "membar".
/var/tmp//ccFlXfsR.s:32: (Requires v9|v9a|v9b|v9c|v9d|v9e|v9v|v9m; requested architecture is sparclite.)
/var/tmp//ccFlXfsR.s:33: Error: Architecture mismatch on "cas".
/var/tmp//ccFlXfsR.s:33: (Requires v9|v9a|v9b|v9c|v9d|v9e|v9v|v9m; requested architecture is sparclite.)
/var/tmp//ccFlXfsR.s:34: Error: Architecture mismatch on "membar".
/var/tmp//ccFlXfsR.s:34: (Requires v9|v9a|v9b|v9c|v9d|v9e|v9v|v9m; requested architecture is sparclite.)
/var/tmp//ccFlXfsR.s:74: Error: Architecture mismatch on "membar".
/var/tmp//ccFlXfsR.s:74: (Requires v9|v9a|v9b|v9c|v9d|v9e|v9v|v9m; requested architecture is sparclite.)
/var/tmp//ccFlXfsR.s:75: Error: Architecture mismatch on "cas".
/var/tmp//ccFlXfsR.s:75: (Requires v9|v9a|v9b|v9c|v9d|v9e|v9v|v9m; requested architecture is sparclite.)
/var/tmp//ccFlXfsR.s:76: Error: Architecture mismatch on "membar".
/var/tmp//ccFlXfsR.s:76: (Requires v9|v9a|v9b|v9c|v9d|v9e|v9v|v9m; requested architecture is sparclite.)
/var/tmp//ccFlXfsR.s:91: Error: Architecture mismatch on "membar".
/var/tmp//ccFlXfsR.s:91: (Requires v9|v9a|v9b|v9c|v9d|v9e|v9v|v9m; requested architecture is sparclite.)
/var/tmp//ccFlXfsR.s:92: Error: Architecture mismatch on "cas".
/var/tmp//ccFlXfsR.s:92: (Requires v9|v9a|v9b|v9c|v9d|v9e|v9v|v9m; requested architecture is sparclite.)
/var/tmp//ccFlXfsR.s:93: Error: Architecture mismatch on "membar".
/var/tmp//ccFlXfsR.s:93: (Requires v9|v9a|v9b|v9c|v9d|v9e|v9v|v9m; requested architecture is sparclite.)
/var/tmp//ccFlXfsR.s:119: Error: Architecture mismatch on "membar".
/var/tmp//ccFlXfsR.s:119: (Requires v9|v9a|v9b|v9c|v9d|v9e|v9v|v9m; requested architecture is sparclite.)
/var/tmp//ccFlXfsR.s:120: Error: Architecture mismatch on "cas".
/var/tmp//ccFlXfsR.s:120: (Requires v9|v9a|v9b|v9c|v9d|v9e|v9v|v9m; requested architecture is sparclite.)
/var/tmp//ccFlXfsR.s:121: Error: Architecture mismatch on "membar".
/var/tmp//ccFlXfsR.s:121: (Requires v9|v9a|v9b|v9c|v9d|v9e|v9v|v9m; requested architecture is sparclite.)
gmake[2]: *** [Makefile:610: atomic_ops_stack.lo] Error 1
gmake[2]: *** Waiting for unfinished jobs....
>How-To-Repeat:
>Fix:
>Release-Note:
>Audit-Trail:
From: Tobias Ulmer <tobiasu@tmux.org>
To: gnats-bugs@netbsd.org
Cc:
Subject: Re: pkg/53570: devel/libatomic_ops: broken on sparc, attempts to use
v9 instructions
Date: Tue, 11 Sep 2018 15:11:52 +0200
On Sun, Sep 02, 2018 at 11:20:00PM +0000, tobiasu@tmux.org wrote:
> >Number: 53570
> >Category: pkg
> >Synopsis: devel/libatomic_ops: broken on sparc, attempts to use v9 instructions
> >Confidential: no
> >Severity: serious
> >Priority: medium
> >Responsible: pkg-manager
> >State: open
> >Class: sw-bug
> >Submitter-Id: net
> >Arrival-Date: Sun Sep 02 23:20:00 +0000 2018
> >Originator: Tobias Ulmer
> >Release: 8.99.24 / pkgsrc HEAD
> >Organization:
> >Environment:
> NetBSD ss20.tmux.org 8.99.24 NetBSD 8.99.24 (GENERIC.MP) #0: Mon Aug 27 17:47:48 UTC 2018 mkrepro@mkrepro.NetBSD.org:/usr/src/sys/arch/sparc/compile/GENERIC.MP sparc
> >Fix:
2nd attempt, this time to the proper gnats address :)
Builds ok. w3m works fine.
Passes the test suite on my dual HyperSPARC without problem.
Index: Makefile
===================================================================
RCS file: /home/vcs/cvs/netbsd/pkgsrc/devel/libatomic_ops/Makefile,v
retrieving revision 1.17
diff -u -p -r1.17 Makefile
--- Makefile 16 Aug 2018 10:13:30 -0000 1.17
+++ Makefile 5 Sep 2018 20:01:03 -0000
@@ -20,3 +20,7 @@ TEST_TARGET= check
INSTALL_MAKE_FLAGS= pkgdatadir=${PREFIX}/share/doc/libatomic_ops
.include "../../mk/bsd.pkg.mk"
+
+.if !empty(MACHINE_PLATFORM:MNetBSD-*-sparc)
+CPPFLAGS+= -DAO_NO_SPARC_V9=1
+.endif
State-Changed-From-To: open->closed
State-Changed-By: maya@NetBSD.org
State-Changed-When: Tue, 18 Sep 2018 03:42:24 +0000
State-Changed-Why:
Applied, thanks for the patch!
From: "Maya Rashish" <maya@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc:
Subject: PR/53570 CVS commit: pkgsrc/devel/libatomic_ops
Date: Tue, 18 Sep 2018 03:42:07 +0000
Module Name: pkgsrc
Committed By: maya
Date: Tue Sep 18 03:42:07 UTC 2018
Modified Files:
pkgsrc/devel/libatomic_ops: Makefile
Log Message:
libatomic_ops: build fix for netbsd/sparc, which might be sparc v8.
from Tobias Ulmer in PR pkg/53570
To generate a diff of this commit:
cvs rdiff -u -r1.17 -r1.18 pkgsrc/devel/libatomic_ops/Makefile
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
>Unformatted:
(Contact us)
$NetBSD: query-full-pr,v 1.51 2026/08/10 02:28:17 riastradh Exp $
$NetBSD: gnats_config.sh,v 1.10 2026/05/13 22:00:09 riastradh Exp $
Copyright © 1994-2026
The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.