NetBSD-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
toolchain/45473: Please fix "build tools" on OpenIndiana 151a
>Number: 45473
>Category: toolchain
>Synopsis: Please fix "build tools" on OpenIndiana 151a
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: toolchain-manager
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Sat Oct 15 12:25:00 +0000 2011
>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@localhost:/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))
>Unformatted:
Home |
Main Index |
Thread Index |
Old Index