trouble compiling the new Standard C++ Library V3
Mumit Khan
khan@xraylith.wisc.EDU
Tue Aug 31 22:45:00 GMT 1999
"Kuijk van, David" <David@lcn.nl> writes:
> Hi
>
> I have trouble compiling the new Standard C++ Library V3.
>
> I use Cygwin B20 under Windows NT Service Pack 4, with Mumit Khan's
> pre-built gcc-2.95 binary packages.
>
> The first thing that goes wrong is executing the generated
> gen-num-limits.exe.
>
> The exe never returns because of a segmentation fault. This fault has
> something to do with the function "template<typename Operation> bool
> trapping(const Operation& op)" in gen-num-limits.cc, so I changed this
> function so it will always return "true", because that change did not look
> too harmful.
This is a problem in FPE handling in Cygwin, and not a problem in gcc.
I'm going to send a small howto to libstdc++-v3 list as soon as I get
some time.
> After that change gen-num-limits.exe returns normally, and limitsMEMBERS.o
> is made.
>
> But then I get the following errors:
> /bin/sh ../libtool --mode=compile c++ -DHAVE_CONFIG_H -I.
> -I../../libstdc++-2.90
> .6/src -I.. -nostdinc++ -I../../libstdc++-2.90.6
> -I../../libstdc++-2.90.6/stl -I
> ../../libstdc++-2.90.6/libio -g -D_GNU_SOURCE -fno-implicit-templates
> -c ..
> /../libstdc++-2.90.6/src/complex.cc
> c++ -DHAVE_CONFIG_H -I. -I../../libstdc++-2.90.6/src -I.. -nostdinc++
> -I../../li
> bstdc++-2.90.6 -I../../libstdc++-2.90.6/stl -I../../libstdc++-2.90.6/libio
> -g -D
> _GNU_SOURCE -fno-implicit-templates -c ../../libstdc++-2.90.6/src/complex.cc
> -o
> complex.o
> In file included from ../../libstdc++-2.90.6/src/complex.cc:31:
> ../../libstdc++-2.90.6/bits/std_complex.h: In function `class complex<float>
> con
> j<float>(const complex<float> &)':
> ../../libstdc++-2.90.6/bits/std_complex.h:926: Internal compiler error.
> ../../libstdc++-2.90.6/bits/std_complex.h:926: Please submit a full bug
> report t
> o `egcs-bugs@egcs.cygnus.com'.
> ../../libstdc++-2.90.6/bits/std_complex.h:926: See
> <URL: http://egcs.cygnus.com/f
Genuine float complex bug, and reported to the mailing list. See
Linkname: (c++) libstdc++-v3 ICE on gcc-2.95 x86-win32 targets
URL: http://egcs.cygnus.com/ml/gcc-bugs/1999-07/msg00845.html
for a simplified testcase.
I'll send a workaround to the libstdc++-v3 list as well.
Regards,
Mumit
More information about the Gcc-bugs
mailing list