This is the mail archive of the libstdc++@sources.redhat.com mailing list for the libstdc++ project.


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

Re: Couldn't build libstdc++ (configure fails)


Hi

I've got the same problem as you.   I put together a patch for GCC
that solve this problem and submitted to gcc-patches yesterday.
You might want to try it at
    http://gcc.gnu.org/ml/gcc-patches/2000-11/msg01824.html
It's a bug in glibc 2.1 header and libstdc++-v3 won't build on these
systems.

--Kriang

> In some way, not compatible header files have been used when building
the
> 2.97 snapshot; I have tried, first, with the following commands to
select
> the correct headers:
>
> ../gcc-20001127/configure --prefix=/usr/local/gcc \
>     --oldincludedir=/usr/soft/include --enable-libstdcxx-v3
> make bootstrap
>
> to no avail (I got always the same errors I reported yesterday, for
doubly
> typedef'ed float_t and double_t in /usr/include/bits/mathdef.h).
>
> Note that THIS mathdef.h belongs to *egcs 2.91.66*, and I do not
> understand why on earth the make procedure tries to use it; in
addition,
> there is NO FILE name mathdef.h in the include path of {gcc 2.95.2 +
> libstdc++v2} or in the path of {gcc 2.95.2 + libstdc++v2.90.8}.  I had
to
> manually edit that file (as root), removing lines 27 and 29 that read:

>
> 23: #if defined __USE_ISOC9X && defined _MATH_H
> 24: /* The ix87 FPUs evaluate all values in the 80 bit floating-point
format
> 25:   which is also available for the user as `long double'.
Therefore we
> 26:   define:  */
> 27: typedef long double float_t;        /* `float' expressions are
evaluated as
> 28:                                        `long double'.  */
> 29: typedef long double double_t;       /* `double' expressions are
evaluated as
> 30:                                        `long double'.  */




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