This is the mail archive of the 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)


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
It's a bug in glibc 2.1 header and libstdc++-v3 won't build on these


> In some way, not compatible header files have been used when building
> 2.97 snapshot; I have tried, first, with the following commands to
> 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
> 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
> 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
> 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
> 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]