Compiling libstdc++-2.90.6 with gcc 2.95

Richard Ryan rar@hpesrar.fc.hp.com
Thu Sep 9 12:07:00 GMT 1999


Hi,

I tried compiling libstdc++-2.90.6 with gcc and had something come up
saying I needed to turn in a bug report.  So here's what I got:

% gcc -v
Reading specs from /opt/dvlpmt/lib/gcc-lib/hppa2.0-hp-hpux10.20/2.95/specs
gcc version 2.95 19990728 (release)

% uname -a
HP-UX hpesrar B.10.20 A 9000/782 2005125968 two-user license

I configured with:

env CC='gcc -B/usr/ccs/bin/ -mno-gas' CXX='g++ -B/usr/ccs/bin/ -mno-gas' CFLAGS='-O2 -march=1.1 -mschedule=8000 -mlinker-opt' CXXFLAGS='-O2 -march=1.1 -mschedule=8000 -mlinker-opt' ../libstdc++-2.90.6/configure --prefix=/opt/dvlpmt --x-includes='/usr/include/X11R6 -I/usr/contrib/X11R6/include -I/usr/dt/include -I/usr/include/X11R5' --x-libraries='/usr/lib/X11R6 -L/usr/contrib/X11R6/lib -L/usr/dt/lib -L/usr/lib/X11R5' --with-readline-library=/opt/dvlpmt/lib --with-readline-includes=/opt/dvlpmt/include --with-rplay-includes=/opt/audio/include --with-rplay-library=/opt/audio/lib --with-gnu-as=no --with-gnu-ld=no --enable-shared --enable-static

I changed libstdc++-2.90.6/src/gen-num-limits.cc in order to get it
past mknumeric_limits.  It was complaining about these things not
being defined otherwise.  Here's the diff:

336,347d335
< // begin debug -- my stuff
< SPECIALIZE_EPSILON(bool, true);
< SPECIALIZE_EPSILON(char, 1);
< SPECIALIZE_EPSILON(signed char, 1);
< SPECIALIZE_EPSILON(unsigned char, 1);
< SPECIALIZE_EPSILON(short, 1);
< SPECIALIZE_EPSILON(unsigned short, 1);
< SPECIALIZE_EPSILON(int, 1);
< SPECIALIZE_EPSILON(unsigned int, 1);
< SPECIALIZE_EPSILON(long, 1L);
< SPECIALIZE_EPSILON(unsigned long, 1L);
< // end debug -- my stuff
358,369d345
< // begin debug -- my stuff
< SPECIALIZE_ROUND_ERROR(bool, false);
< SPECIALIZE_ROUND_ERROR(char, 0);
< SPECIALIZE_ROUND_ERROR(signed char, 0);
< SPECIALIZE_ROUND_ERROR(unsigned char, 0);
< SPECIALIZE_ROUND_ERROR(short, 0);
< SPECIALIZE_ROUND_ERROR(unsigned short, 0);
< SPECIALIZE_ROUND_ERROR(int, 0);
< SPECIALIZE_ROUND_ERROR(unsigned int, 0);
< SPECIALIZE_ROUND_ERROR(long, 0L);
< SPECIALIZE_ROUND_ERROR(unsigned long, 0L);
< // end debug -- my stuff

And finally, I'm attaching the nohup.out:



More information about the Gcc-bugs mailing list