From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 17492 invoked by alias); 6 Jul 2006 23:53:31 -0000 Received: (qmail 17483 invoked by uid 22791); 6 Jul 2006 23:53:30 -0000 X-Spam-Check-By: sourceware.org Received: from chfw.preston.net (HELO universe.preston.net) (202.14.89.130) by sourceware.org (qpsmtpd/0.31) with ESMTP; Thu, 06 Jul 2006 23:53:27 +0000 Received: from 1PYBH1S (1PYBH1S.preston.net [202.14.10.49]) by universe.preston.net (8.11.6/8.11.6) with ESMTP id k66NrNi01380; Fri, 7 Jul 2006 09:53:23 +1000 From: "Dan Keating" To: "'Ian Lance Taylor'" Cc: Subject: RE: Gcc3.2 build error on Solaris 10 Date: Thu, 06 Jul 2006 23:53:00 -0000 Message-ID: <006301c6a157$5c831900$310a0eca@1PYBH1S> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Office Outlook 11 In-Reply-To: Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org X-SW-Source: 2006-07/txt/msg00053.txt.bz2 Thanks for the reply. Yes, I am aware what the the error itself is, but I was hoping this was a known issue, with perhaps a work-around to go with it. Looks like I'm out of luck on that front. The gcc3.3 series does build on solaris10, so a move to another series might be the way to go. However, when you have a legacy of commercial products to support, it's not always easy to upgrade to the latest and greatest :-) Best of luck, Dan -----Original Message----- From: gcc-help-owner@gcc.gnu.org [mailto:gcc-help-owner@gcc.gnu.org] On Behalf Of Ian Lance Taylor Sent: Thursday, July 06, 2006 2:34 AM To: Dan Keating Cc: gcc-help@gcc.gnu.org Subject: Re: Gcc3.2 build error on Solaris 10 "Dan Keating" writes: > I'm having problems building gcc3.2 on a solaris 10 system. Gcc2.95.3 > builds fine, but 3.2 and 3.2.3 both fall down with the following error: > > /temp/bsm/gcc-sun10/gcc/xgcc -B/temp/bsm/gcc-sun10/gcc/ > -B/lang/gcc/3.2/sparc-sun-solaris2.10/bin/ > -B/lang/gcc/3.2/sparc-sun-solaris2.10/lib/ -isystem > /lang/gcc/3.2/sparc-sun-solaris2.10/include -DHAVE_CONFIG_H -I. > -I../../../../gcc-3.2/libstdc++-v3/libmath -I.. -g -O2 -c > ../../../../gcc-3.2/libstdc++-v3/libmath/signbit.c -o signbit.o In > file included from ../../../../gcc-3.2/libstdc++-v3/libmath/signbit.c:32: > ../../../../gcc-3.2/libstdc++-v3/libmath/mathconf.h:84: conflicting > types for `nan' > /usr/include/iso/math_c99.h:145: previous declaration of `nan' > > Configure is being run with parameters "--enable-languages=c++ > --disable-shared". > > Hopefully there's someone who can see a cause for this. Look at the two files in question: gcc-3.2/libstdc++-v3/libmath/mathconf.h, line 84 /usr/include/iso/math_c99.h, line 145 Most likely you will see conflicting types for nan. Since gcc 3.2 is four years old and completely unsupported, your best bet for fixing this would be to edit mathconf.h to match your system header file. Ian