NetBSD Problem Report #45473
From ryo_on@yk.rim.or.jp Sat Oct 15 12:22:28 2011
Return-Path: <ryo_on@yk.rim.or.jp>
Received: from mail.netbsd.org (mail.netbsd.org [204.152.190.11])
by www.NetBSD.org (Postfix) with ESMTP id 21ED063D4CB
for <gnats-bugs@gnats.netbsd.org>; Sat, 15 Oct 2011 12:22:28 +0000 (UTC)
Message-Id: <20111015122228.21ED063D4CB@www.NetBSD.org>
Date: Sat, 15 Oct 2011 12:22:28 +0000 (UTC)
From: ryoon@NetBSD.org
Reply-To: ryoon@NetBSD.org
To: gnats-bugs@gnats.NetBSD.org
Subject: Please fix "build tools" on OpenIndiana 151a
X-Send-Pr-Version: 3.95
>Number: 45473
>Category: toolchain
>Synopsis: Please fix "build tools" on OpenIndiana 151a
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: toolchain-manager
>State: closed
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Sat Oct 15 12:25:00 +0000 2011
>Closed-Date: Tue Mar 06 16:04:24 +0000 2012
>Last-Modified: Tue Mar 06 16:04:24 +0000 2012
>Originator: Ryo ONODERA
>Release: NetBSD 5.99.56
>Organization:
>Environment:
System: NetBSD hydrogen.elements.tetera.org 5.99.56 NetBSD 5.99.56 (LEAFGIRL9) #5: Wed Oct 12 03:47:29 JST 2011 root@hydrogen.elements.tetera.org:/usr/obj/sys/arch/i386/compile/LEAFGIRL9 i386
Architecture: i386
Machine: i386
>Description:
On OpenIndiana 151a (and probably other SunOS),
build tools fails at build of mpc with gcc3.
Please apply
http://mail-index.netbsd.org/pkgsrc-changes/2011/10/13/msg061211.html
Work around a bug in SunOS complex.h to make this build with Suns gcc.
equivalent patch.
>How-To-Repeat:
On OpenIndiana 151a machine, run HOST_SH=/usr/bin/bash build.sh tools.
>Fix:
See above or please apply following patch.
Index: external/lgpl2/mpc/dist/src/get.c
===================================================================
RCS file: /cvsroot/src/external/lgpl2/mpc/dist/src/get.c,v
retrieving revision 1.1.1.1
diff -u -p -r1.1.1.1 get.c
--- external/lgpl2/mpc/dist/src/get.c 20 Jun 2011 05:50:25 -0000 1.1.1.1
+++ external/lgpl2/mpc/dist/src/get.c 15 Oct 2011 12:21:20 -0000
@@ -28,6 +28,12 @@ MA 02111-1307, USA. */
#include "mpc-impl.h"
#if defined _MPC_H_HAVE_COMPLEX
+
+#if defined(__sun) && defined(__GNUC__) && defined(_Imaginary_I)
+#undef I
+#define I (__extension__ 1.0iF)
+#endif
+
double _Complex
mpc_get_dc (mpc_srcptr op, mpc_rnd_t rnd) {
return I * mpfr_get_d (mpc_imagref (op), MPC_RND_IM (rnd))
>Release-Note:
>Audit-Trail:
From: Ryo ONODERA <ryo_on@yk.rim.or.jp>
To: gnats-bugs@NetBSD.org
Cc:
Subject: Re: toolchain/45473: Please fix "build tools" on OpenIndiana 151a
Date: Sat, 15 Oct 2011 22:39:45 +0900 (JST)
This PR is problem about NetBSD-current source tree.
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->closed
State-Changed-By: ryoon@NetBSD.org
State-Changed-When: Tue, 06 Mar 2012 16:04:24 +0000
State-Changed-Why:
The problem disapperaed. But I does not why (my patch is not applied).
>Unformatted:
(Contact us)
$NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD: gnats_config.sh,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2007
The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.