This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libfortran/15235] [gfortran] libgfortran doesn't build on Solaris
- From: "ro at techfak dot uni-bielefeld dot de" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 18 May 2004 16:42:31 -0000
- Subject: [Bug libfortran/15235] [gfortran] libgfortran doesn't build on Solaris
- References: <20040430200445.15235.ro@techfak.uni-bielefeld.de>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From ro at techfak dot uni-bielefeld dot de 2004-05-18 16:42 -------
Subject: Re: [gfortran] libgfortran doesn't build on Solaris
tobi at gcc dot gnu dot org writes:
> Just for the record: it remains the issue of isinf() not being present on
> Solaris, patch here: http://gcc.gnu.org/ml/fortran/2004-05/msg00234.html
Unfortunately, this patch doesn't help on Solaris 10, but due to an
unrelated problem: <iso/math_c99.h> (included by <math.h>) unconditionally
defines
#undef isnan
#define isnan(x) __builtin_isnan(x)
but GCC doesn't provide __builtin_isnan, so we again get link failures.
This is obviously a problem with the Sun headers which don't accomodate
non-Sun C99 compilers. I may file a bug report for this, but apart from
that, this is fixincludes material.
I'm running another bootstrap on sparc-sun-solaris2.8 which doesn't have
this issue.
Rainer
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15235