public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
* gcc 4.4.3, missing math functions on Solaris 8 (Sparc)
@ 2011-06-02 19:35 David Mathog
  0 siblings, 0 replies; only message in thread
From: David Mathog @ 2011-06-02 19:35 UTC (permalink / raw)
  To: gcc-help

Just installed the csw version of gcc 4.4.3 on a Solaris 8 (Sparc
machine.) There seem to be some C99 pieces missing that are used in math
operations:

/opt/csw/gcc4/bin/gcc  -Wall -std=c99 -pedantic -lm -O3 -DMAXINFILE=20 
-lpcre  -o extract  extract.c

has these errors (and others which I think derive from them, and so are
not shown):
extract.c:3781: error: 'NAN' undeclared (first use in this function)
extract.c:3957: error: 'FP_NAN' undeclared (first use in this function)
extract.c:3958: error: 'FP_INFINITE' undeclared (first use in this function)
extract.c:3892: warning: implicit declaration of function 'fmax'
extract.c:3893: warning: implicit declaration of function 'fmin'
extract.c:3956: warning: implicit declaration of function 'fpclassify'
extract.c:4237: warning: implicit declaration of function 'round'
extract.c:13527: warning: implicit declaration of function 'isnormal'
extract.c:13654: warning: implicit declaration of function 'isinf'

The same code compiles cleanly on linux.  I could find most of these
strings in 

/opt/csw/gcc4/libexec/gcc/sparc-sun-solaris2.8/4.3.3/install-tools/fixincl

but not elsewhere.  In particular, they are not in math.h, which is
where they live on Linux.

Anybody know what the problem is here, and more to the point, how to
work around this?

Thanks,    

David Mathog
mathog@caltech.edu
Manager, Sequence Analysis Facility, Biology Division, Caltech

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2011-06-02 19:35 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-06-02 19:35 gcc 4.4.3, missing math functions on Solaris 8 (Sparc) David Mathog

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).