NetBSD Problem Report #45377

From www@NetBSD.org  Mon Sep 19 11:03:45 2011
Return-Path: <www@NetBSD.org>
Received: from mail.netbsd.org (mail.netbsd.org [204.152.190.11])
	by www.NetBSD.org (Postfix) with ESMTP id C336763B884
	for <gnats-bugs@gnats.NetBSD.org>; Mon, 19 Sep 2011 11:03:44 +0000 (UTC)
Message-Id: <20110919110344.1B9F163B86B@www.NetBSD.org>
Date: Mon, 19 Sep 2011 11:03:44 +0000 (UTC)
From: bsiegert@netbsd.org
Reply-To: bsiegert@netbsd.org
To: gnats-bugs@NetBSD.org
Subject: devel/libatomic_ops fails to build on Darwin (Mac OS 10.7)
X-Send-Pr-Version: www-1.0

>Number:         45377
>Category:       pkg
>Synopsis:       devel/libatomic_ops fails to build on Darwin (Mac OS 10.7)
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    bsiegert
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Sep 19 11:05:00 +0000 2011
>Closed-Date:    Tue Oct 04 18:22:35 +0000 2011
>Last-Modified:  Tue Oct 04 18:22:35 +0000 2011
>Originator:     Benny Siegert
>Release:        Mac OS 10.7.1
>Organization:
The MirBSD Project
>Environment:
Darwin lem.local 11.1.0 [...] x86-64
>Description:
The devel/libatomic_ops package does not build on an Intel Mac running Mac OS 10.7. A log of "bmake" follows:

===> Building for libatomic_ops-20081024nb3
Making all in src
/usr/bin/gnumake  all-recursive
Making all in atomic_ops
Making all in sysdeps
gnumake[4]: Nothing to be done for `all'.
gnumake[4]: Nothing to be done for `all-am'.
/bin/sh ../libtool --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I.   -no-cpp-precomp -isystem /usr/include -fPIC -pipe -O2 -DNDEBUG -MT atomic_ops.lo -MD -MP -MF .deps/atomic_ops.Tpo -c -o atomic_ops.lo atomic_ops.c
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -no-cpp-precomp -isystem /usr/include -fPIC -pipe -O2 -DNDEBUG -MT atomic_ops.lo -MD -MP -MF .deps/atomic_ops.Tpo -c atomic_ops.c  -fno-common -DPIC -o .libs/atomic_ops.o
atomic_ops/sysdeps/gcc/x86.h: In function 'AO_test_and_set_full':
atomic_ops/sysdeps/gcc/x86.h:114: error: unsupported inline asm: input constraint with a matching output constraint of incompatible type!
gnumake[3]: *** [atomic_ops.lo] Error 1
gnumake[2]: *** [all-recursive] Error 1
gnumake[1]: *** [all] Error 2
gnumake: *** [all-recursive] Error 1
*** Error code 2

>How-To-Repeat:
Compile devel/libatomic_ops on Darwin 11.1.0 (Mac OS 10.7).
>Fix:

>Release-Note:

>Audit-Trail:
From: Ryo ONODERA <ryo_on@yk.rim.or.jp>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: pkg/45377: devel/libatomic_ops fails to build on Darwin (Mac
 OS 10.7)
Date: Mon, 19 Sep 2011 20:16:28 +0900 (JST)

 pkgsrc wip/libatomic_ops builds for me on Darwin 11.0.1.
 Could you test it?


From: Benny Siegert <bsiegert@gmail.com>
To: gnats-bugs@netbsd.org
Cc: 
Subject: Re: pkg/45377: devel/libatomic_ops fails to build on Darwin (Mac OS 10.7)
Date: Tue, 20 Sep 2011 20:30:23 +0200

 On Mon, Sep 19, 2011 at 13:20, Ryo ONODERA <ryo_on@yk.rim.or.jp> wrote:
 > =C2=A0pkgsrc wip/libatomic_ops builds for me on Darwin 11.0.1.
 > =C2=A0Could you test it?

 Yes, it works fine. I think it should replace the package in pkgsrc
 after the freeze. I looked at the "crazy autoconf installation
 debacle" mentioned in TODO, but it seems very nice and clean to me. Is
 there something else that is holding up its addition to pkgsrc?

 --Benny.

From: Ryo ONODERA <ryo_on@yk.rim.or.jp>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: pkg/45377: devel/libatomic_ops fails to build on Darwin (Mac
 OS 10.7)
Date: Wed, 21 Sep 2011 17:57:39 +0900 (JST)

 Hi,

 From: Benny Siegert <bsiegert@gmail.com>, Date: Tue, 20 Sep 2011 18:35:02 +0000 (UTC)

 > The following reply was made to PR pkg/45377; it has been noted by GNATS.
 > 
 > From: Benny Siegert <bsiegert@gmail.com>
 > To: gnats-bugs@netbsd.org
 > Cc: 
 > Subject: Re: pkg/45377: devel/libatomic_ops fails to build on Darwin (Mac OS 10.7)
 > Date: Tue, 20 Sep 2011 20:30:23 +0200
 > 
 >  On Mon, Sep 19, 2011 at 13:20, Ryo ONODERA <ryo_on@yk.rim.or.jp> wrote:
 >  > =C2=A0pkgsrc wip/libatomic_ops builds for me on Darwin 11.0.1.
 >  > =C2=A0Could you test it?
 >  
 >  Yes, it works fine. I think it should replace the package in pkgsrc
 >  after the freeze. I looked at the "crazy autoconf installation
 >  debacle" mentioned in TODO, but it seems very nice and clean to me. Is
 >  there something else that is holding up its addition to pkgsrc?

 TODO is obsoleted. I will remove it.

 I cannot confirm whether wip/libatomic_ops is working properly or not.
 I think you can replace devel/libatomic_ops with wip/libatomic_ops
 after this freeze.

 Thank you.

 --
 Ryo ONODERA // ryo_on@yk.rim.or.jp
 PGP fingerprint = 82A2 DC91 76E0 A10A 8ABB  FD1B F404 27FA C7D1 15F3


State-Changed-From-To: open->analyzed
State-Changed-By: bsiegert@NetBSD.org
State-Changed-When: Wed, 21 Sep 2011 13:41:10 +0000
State-Changed-Why:
wip/libatomic_ops works. Waiting for freeze to end.


Responsible-Changed-From-To: pkg-manager->bsiegert
Responsible-Changed-By: wiz@NetBSD.org
Responsible-Changed-When: Thu, 22 Sep 2011 11:48:47 +0000
Responsible-Changed-Why:
Solution known, please handle it after the freeze. Thanks!


From: "Benny Siegert" <bsiegert@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc: 
Subject: PR/45377 CVS commit: pkgsrc/devel/libatomic_ops
Date: Tue, 4 Oct 2011 18:15:30 +0000

 Module Name:	pkgsrc
 Committed By:	bsiegert
 Date:		Tue Oct  4 18:15:30 UTC 2011

 Modified Files:
 	pkgsrc/devel/libatomic_ops: Makefile Makefile.version PLIST
 	    buildlink3.mk distinfo
 	pkgsrc/devel/libatomic_ops/patches: patch-ab patch-ac patch-ad
 Added Files:
 	pkgsrc/devel/libatomic_ops: MESSAGE
 Removed Files:
 	pkgsrc/devel/libatomic_ops/patches: patch-aa patch-ae patch-af

 Log Message:
 Import libatomic_ops from wip, copy distfile to ftp.netbsd.org.

 Fixes build on Mac OS X, thus fixing PR pkg/45377.


 To generate a diff of this commit:
 cvs rdiff -u -r0 -r1.1 pkgsrc/devel/libatomic_ops/MESSAGE
 cvs rdiff -u -r1.4 -r1.5 pkgsrc/devel/libatomic_ops/Makefile
 cvs rdiff -u -r1.1.1.1 -r1.2 pkgsrc/devel/libatomic_ops/Makefile.version
 cvs rdiff -u -r1.5 -r1.6 pkgsrc/devel/libatomic_ops/PLIST
 cvs rdiff -u -r1.3 -r1.4 pkgsrc/devel/libatomic_ops/buildlink3.mk
 cvs rdiff -u -r1.9 -r1.10 pkgsrc/devel/libatomic_ops/distinfo
 cvs rdiff -u -r1.1.1.1 -r0 pkgsrc/devel/libatomic_ops/patches/patch-aa
 cvs rdiff -u -r1.1 -r1.2 pkgsrc/devel/libatomic_ops/patches/patch-ab \
     pkgsrc/devel/libatomic_ops/patches/patch-ac
 cvs rdiff -u -r1.2 -r1.3 pkgsrc/devel/libatomic_ops/patches/patch-ad
 cvs rdiff -u -r1.4 -r0 pkgsrc/devel/libatomic_ops/patches/patch-ae
 cvs rdiff -u -r1.3 -r0 pkgsrc/devel/libatomic_ops/patches/patch-af

 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.

State-Changed-From-To: analyzed->closed
State-Changed-By: bsiegert@NetBSD.org
State-Changed-When: Tue, 04 Oct 2011 18:22:35 +0000
State-Changed-Why:
New version imported.


>Unformatted:

NetBSD Home
NetBSD PR Database Search

(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.