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
System: NetBSD 5.99.56 NetBSD 5.99.56 (LEAFGIRL9) 
#5: Wed Oct 12 03:47:29 JST 2011
Architecture: i386
Machine: i386
On OpenIndiana 151a (and probably other SunOS),
build tools fails at build of mpc with gcc3.
Please apply
Work around a bug in SunOS complex.h to make this build with Suns gcc.
equivalent patch.
On OpenIndiana 151a machine, run HOST_SH=/usr/bin/bash tools.
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
diff -u -p -r1.1.1.1 get.c
--- external/lgpl2/mpc/dist/src/get.c   20 Jun 2011 05:50:25 -0000
+++ 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)
 double _Complex
 mpc_get_dc (mpc_srcptr op, mpc_rnd_t rnd) {
    return I * mpfr_get_d (mpc_imagref (op), MPC_RND_IM (rnd))


Home | Main Index | Thread Index | Old Index