[gnu.g++.lib.bug] build of libg++ tests fails

raeburn@ATHENA.MIT.EDU (Ken Raeburn) (09/19/89)

Using g++ on a vax, based on gcc-1.35.98, compiled with 1.35.99.

g++ -g -O -fstrength-reduce -I/site/raeburn/libg++ -I/site/raeburn/libg++/g++-include -c  tString.cc
/mit/gnu/vaxbin/gcc: Program cc1plus got fatal signal 4.
*** Exit 1

[ I reported this before to bug-g++.  The fix posted made no
  difference; the source supplied appeared to be exactly what had been
  there before. ]

g++ -g -O -fstrength-reduce -I/site/raeburn/libg++ -I/site/raeburn/libg++/g++-include -c  twrapper.cc
twrapper.cc:14: warning: lazy prototyping frowned upon
twrapper.cc:42: warning: lazy prototyping frowned upon
twrapper.cc:45: warning: lazy prototyping frowned upon
twrapper.cc:76: warning: lazy prototyping frowned upon
twrapper.cc:84: warning: lazy prototyping frowned upon

[ tgwrapper.cc:216 also; just warnings, but still... ]

../genclass int val defs i
genclass warning: class has a .h but no .cc file

[ several other files too; again just warnings ]

g++ -g -O -fstrength-reduce -I/site/raeburn/libg++ -I/site/raeburn/libg++/g++-include -c  iPlex.cc
iPlex.cc: In method void intPlex::append (const class intPlex &):
iPlex.cc:125: call to non-const method `low' with const object
iPlex.cc:125: call to non-const method `fence' with const object
iPlex.cc:125: call to non-const method `next' with const object
iPlex.cc:125: call to non-const method `operato' with const object
iPlex.cc: In method void intPlex::prepend (const class intPlex &):
iPlex.cc:130: call to non-const method `high' with const object
iPlex.cc:130: call to non-const method `ecnef' with const object
iPlex.cc:130: call to non-const method `prev' with const object
iPlex.cc:130: call to non-const method `operato' with const object
*** Exit 1

[ iFPlex.cc, iXPlex.cc, iRPlex.cc, iMPlex.cc, iPHPQ.cc died similarly ]

../genclass -2 int val int val RAVLMap i
genclass: RAVLMap.hP: no such file
*** Exit 1
g++ -g -O -fstrength-reduce -I/site/raeburn/libg++ -I/site/raeburn/libg++/g++-include -c  tMap.cc
tMap.cc:251: iRAVLMap.h: No such file or directory
*** Exit 1

Has anyone had success with these (on a vax especially) in the latest
version?  Perhaps compiled with a gcc version other than 1.35.99?

-- Ken

dl@G.OSWEGO.EDU (Doug Lea) (09/19/89)

If these problems stem from a previous pre-release, please try the
libg++.ytar.Z on labrea.stanford.edu:~ftp/pub/gnu.

Also, you need to `make install' before `make tests' for files
preprocessed via genclass. I will place in a `test_genclass'
in the next release, that will allow genclass to find things
in /tests/../g++-include/ for the purposes of testing installation,
but now, it looks in the default g++-include directory, which probably
contains old versions of things. Sorry.

-Doug