This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

RE: Unable to bootstrap gcc snapshot of 20001211 on Dynix/ptx


> I've also been building gcc on DYNIX/ptx recently and have run into
> some of the same problems that Biswa is seeing.  I'm using DYNIX/ptx
> V4.6.0 with the native assembler and linker.  With a few changes to
> config/ptx4.h I can build the entire compiler set for 2.95.2.  With
> the latest snapshot I need to specify BOOT_CFLAGS="-O2", as Robert
> Lipe said.  I can bootstrap the snapshot C compiler, but currently
> when I try the entire build it dies building libstdc++-v3.  I've run
> tests but haven't yet investigated the failures.

I've managed to go upto the libstd++-v3 stage (make bootstrap with -O2) and
now I'm getting the following:
----------------------------------------------------------------------------
------------
/var/opt/spool/out/email/biswa/gcc/src/gcc-build/gcc/xgcc
-B/var/opt/spool/out/email/biswa/gcc/src/gcc-build/gcc/ -B/var/opt/
spool/out/em/biswa/gcc/i386-sequent-sysv4/bin/
-B/var/opt/spool/out/em/biswa/gcc/i386-sequent-sysv4/lib/ -isystem
/var/opt/sp
ool/out/em/biswa/gcc/i386-sequent-sysv4/include -DHAVE_CONFIG_H -I.
-I../../../../gcc-20001211/libstdc++-v3/libmath -I.. -I..
/../../../gcc-20001211/libstdc++-v3/include -I../include -g -O2 -c
../../../../gcc-20001211/libstdc++-v3/libmath/signbit.c  -
fPIC -DPIC -o .libs/signbit.o
In file included from
../../../../gcc-20001211/libstdc++-v3/libmath/signbit.c:32:
../../../../gcc-20001211/libstdc++-v3/libmath/mathconf.h:151:6: #error "We
need FINITE_P"
----------------------------------------------------------------------------
----------

Going through mathconf.h, I get:
------------------------------------------------------------------
#ifdef isfinite
/* This is an ISO C99 function.  */
# define FINITE_P(X) isfinite (X)
# define FINITEF_P(X) isfinite (X)
# define FINITEL_P(X) isfinite (X)
#else
# ifdef IsNANorINF
/* This is for Solaris, which does not have special macros for other
   types.  */
#  define FINITE_P(X) (!IsNANorINF (X))
#  define FINITEF_P(X) (!IsNANorINF (X))
#  define FINITEL_P(X) (!IsNANorINF (X))
# else
#  if defined _GLIBCPP_HAVE_ISINF && defined _GLIBCPP_HAVE_ISNAN
#   define FINITE_P(X) ({ double __x = (X); !isinf (__x) && !isnan (__x); })
#  else
#   ifdef _GLIBCPP_HAVE_FINITE
#    define FINITE_P(X) finite (X)
#   else
#    error "We need FINITE_P"  <-- This is the error - Biswa
#   endif
#  endif
---------------------------------------

This is pretty strange because in /usr/include/nan.h, I have :
-----------------------------------------
#define IsNANorINF(X)  (((dnan *)&(X))->nan_parts.exponent == 0x7ff)
-----------------------------------------

So, obviously, IsNANorINF is defined. So the question is, why is it not
being detected ? Can anyone give me any clues ?

Janis, is this the same error as the one you are getting ?

Thanks.
Biswa.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]