public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
From: Toon Moene <toon@moene.indiv.nluug.nl>
To: egcs@cygnus.com
Subject: Build of egcs-971031 on m68k-next-nextstep3 fails in libstc++
Date: Sat, 01 Nov 1997 15:16:00 -0000	[thread overview]
Message-ID: <9711012250.AA08033@moene.indiv.nluug.nl> (raw)

In preparation of doing a full test of the current snapshot, I  
downloaded and started to build the entire egcs-971031.tar.gz  
distribution (previously I only build core + g77).

Alas, the build dies as follows:

/Users/toon/Unix/compilers/egcs-971031/gcc/xgcc  
-B/Users/toon/Unix/compilers/egcs-971031/gcc/ -c -g -O2  
-fno-implicit-templates -I. -I./stl -I../libio -I./../libio  
-nostdinc++  -DF `for N in MAIN ADDCC ADDCF ADDFC SUBCC SUBCF SUBFC  
MULCC MULCF MULFC DIVCC DIVCF DIVFC PLUS MINUS EQCC EQCF EQFC NECC  
NECF NEFC ABS ARG POLAR CONJ NORM COS COSH EXP LOG POWCC POWCF POWCI  
POWFC SIN SINH SQRT; do echo " -D${N}"; done` \
  ./cinst.cc -o fcomplex.o
In file included from cmath:7,
                 from std/complext.h:34,
                 from complex:7,
                 from std/complext.cc:28,
                 from ./cinst.cc:29:
/NextDeveloper/Headers/ansi/math.h:59: warning: declaration of  
`const double cos(double)'
/NextDeveloper/Headers/ansi/math.h:59: warning: conflicts with  
built-in declaration `double cos(double)'
/NextDeveloper/Headers/ansi/math.h:60: warning: declaration of  
`const double sin(double)'
/NextDeveloper/Headers/ansi/math.h:60: warning: conflicts with  
built-in declaration `double sin(double)'
/NextDeveloper/Headers/ansi/math.h:72: warning: declaration of  
`const double sqrt(double)'
/NextDeveloper/Headers/ansi/math.h:72: warning: conflicts with  
built-in declaration `double sqrt(double)'
In file included from complex:7,
                 from std/complext.cc:28,
                 from ./cinst.cc:29:
std/complext.h:314: declaration of C function `double hypot(double,  
double)' conflicts with
/NextDeveloper/Headers/ansi/math.h:26: previous declaration `const  
double hypot(double, double)' here
make[2]: *** [bigstmp-complex] Error 1
make[2]: Leaving directory  
`/Users/toon/Unix/compilers/egcs-971031/libraries/libstdc++'
make[1]: *** [all-target-libstdc++] Error 2
make[1]: Leaving directory `/Users/toon/Unix/compilers/egcs-971031'
make: *** [bootstrap] Error 2

Apparently, the declaration of `hypot' in the NEXTSTEP header file  
conflicts with that in the egcs/libstc++ header file.

I don't know which one is right, but at the very least this means  
that egcs doesn't build out-of-the-box on NEXTSTEP.  What is the  
best workaround in cases like this ?

TIA,
Toon.

             reply	other threads:[~1997-11-01 15:16 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1997-11-01 15:16 Toon Moene [this message]
1997-11-02 21:29 ` Jeffrey A Law

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=9711012250.AA08033@moene.indiv.nluug.nl \
    --to=toon@moene.indiv.nluug.nl \
    --cc=egcs@cygnus.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).