Install g++ 1.39.1 and libg++ 1.39.0 on AT&T SVR3.2.2
Hongjiu Lu
hlu at yoda.eecs.wsu.edu
Sat Jun 8 16:32:41 AEST 1991
Has anyone successfully built g++ 1.39.1 and libg++ 1.39.0 on AT&T UNIX
System Release 3.2.2? I am using the native assembler and linker. If I
use gas and GNU ld, lots of disk spaces will end up just for converting
the libraries.
I managed to compile everything. They seem to work fine. After having
built libg++.a, I am having some trouble testing it. First when I do
a
make tests
g++ made lots of complaints. Fortunately, it compiled all the testing
programs. The weird part is during the link stage, most of programs are
fine. I only found some differences for tRandom. But the last four
programs failed to link. I got the error message "Bus error --- core
dumped". I traced down to the point where the error occurred. I am
using collect2 with g++. It is during the final stage of collect2,
output the executable file, that the "Bus error" happened. The
troubling command looked like
ld -o tPQ /tmp/codeXXXXXX /tmp/asXXXXXX.o
It only occurred to the last four testing programs and g++ also
complained a lots about them. I was not sure if they were related.
I am new to C++. I have no idea about some of the complains, especially
those for the last four programs. I would appreciate any advice. Here
is the part of the output of make "tests". Thanks in advance.
(cd tests; make checktests GXX="g++" GXXFLAGS="-DUSG -I/local/src/libg++/g++-include -g -O -fstrength-reduce -felide-constructors -fschedule-insns -fdelayed-branch -fsave-memoized -Wall " GXXLDFLAGS="-L/local/src/libg++/src -lg++ -lm " LIBDIR="/usr/local/lib" SRCIDIR="/local/src/libg++/g++-include" CC="gcc" CFLAGS="-DUSG -I/usr/local/lib/gcc-include -I/usr/include -I/local/src/libg++/g++-include -g -O -fstrength-reduce -fdelayed-branch -Wall " RANLIB="echo" LDXX="/usr/local/lib/gcc-ld" GXXCRT1="" MA
KE="make" prefix="/usr/local" AR="ar" TEST0="" PROTODIR="/local/src/libg++/g++-include/gen" GENCLASS="/local/src/libg++/genclass")
PROTODIR=/local/src/libg++/g++-include/gen; export PROTODIR; /local/src/libg++/genclass int val defs i
genclass warning: class has a .h but no .cc file
g++ -DUSG -I/local/src/libg++/g++-include -g -O -fstrength-reduce -felide-constructors -fschedule-insns -fdelayed-branch -fsave-memoized -Wall -c iVec.cc
iVec.h: In method intVec::~intVec ():
In file included from iVec.cc:28:
iVec.h:111: warning: array size expression for delete ignored
iVec.cc: In method class intVec &intVec::operator = (class intVec &):
iVec.cc:80: warning: array size expression for delete ignored
iVec.cc: In method void intVec::resize (int):
iVec.cc:106: warning: array size expression for delete ignored
g++ -DUSG -I/local/src/libg++/g++-include -g -O -fstrength-reduce -felide-constructors -fschedule-insns -fdelayed-branch -fsave-memoized -Wall -c iAVec.cc
iVec.h: In method intVec::~intVec ():
In file included from iAVec.h:33, from iAVec.cc:28:
iVec.h:111: warning: array size expression for delete ignored
g++ -DUSG -I/local/src/libg++/g++-include -g -O -fstrength-reduce -felide-constructors -fschedule-insns -fdelayed-branch -fsave-memoized -Wall -c iPlex.cc
iPlex.cc: In method void intIChunk::error (const char *)const :
iPlex.cc:36: warning: `volatile' function does return
iPlex.cc: In method void intPlex::error (const char *)const :
iPlex.cc:115: warning: `volatile' function does return
iPlex.cc: In method void intPlex::del_chunk (class intIChunk *):
iPlex.cc:184: warning: array size expression for delete ignored
g++ -DUSG -I/local/src/libg++/g++-include -g -O -fstrength-reduce -felide-constructors -fschedule-insns -fdelayed-branch -fsave-memoized -Wall -c iBSTSet.cc
iBSTSet.cc: In method void *intBSTSet::add (int):
iBSTSet.cc:124: warning: `comp' may be used uninitialized in this function
g++ -DUSG -I/local/src/libg++/g++-include -g -O -fstrength-reduce -felide-constructors -fschedule-insns -fdelayed-branch -fsave-memoized -Wall -c iVHSet.cc
iVHSet.h: In method intVHSet::~intVHSet ():
In file included from iVHSet.cc:27:
iVHSet.h:77: warning: array size expression for delete ignored
iVHSet.cc: In method void intVHSet::resize (unsigned int (= 0 )):
iVHSet.cc:167: warning: array size expression for delete ignored
g++ -DUSG -I/local/src/libg++/g++-include -g -O -fstrength-reduce -felide-constructors -fschedule-insns -fdelayed-branch -fsave-memoized -Wall -c iVOHSet.cc
iVOHSet.h: In method intVOHSet::~intVOHSet ():
In file included from iVOHSet.cc:29:
iVOHSet.h:79: warning: array size expression for delete ignored
iVOHSet.cc: In method void intVOHSet::resize (int (= 0 )):
iVOHSet.cc:203: warning: array size expression for delete ignored
g++ -DUSG -I/local/src/libg++/g++-include -g -O -fstrength-reduce -felide-constructors -fschedule-insns -fdelayed-branch -fsave-memoized -Wall -c iVHBag.cc
iVHBag.h: In method intVHBag::~intVHBag ():
In file included from iVHBag.cc:27:
iVHBag.h:70: warning: array size expression for delete ignored
iVHBag.cc: In method void intVHBag::resize (unsigned int (= 0 )):
iVHBag.cc:230: warning: array size expression for delete ignored
PROTODIR=/local/src/libg++/g++-include/gen; export PROTODIR; /local/src/libg++/genclass int val CHBag i
g++ -DUSG -I/local/src/libg++/g++-include -g -O -fstrength-reduce -felide-constructors -fschedule-insns -fdelayed-branch -fsave-memoized -Wall -c iCHBag.cc
PROTODIR=/local/src/libg++/g++-include/gen; export PROTODIR; /local/src/libg++/genclass -2 int val int val VHMap i
g++ -DUSG -I/local/src/libg++/g++-include -g -O -fstrength-reduce -felide-constructors -fschedule-insns -fdelayed-branch -fsave-memoized -Wall -c iVHMap.cc
iVHMap.h: In method intintVHMap::~intintVHMap ():
In file included from iVHMap.cc:27:
iVHMap.h:70: warning: array size expression for delete ignored
iVHMap.h:71: warning: array size expression for delete ignored
iVHMap.h:72: warning: array size expression for delete ignored
iVHMap.cc: In method void intintVHMap::resize (unsigned int (= 0 )):
iVHMap.cc:175: warning: array size expression for delete ignored
iVHMap.cc:176: warning: array size expression for delete ignored
g++ -DUSG -I/local/src/libg++/g++-include -g -O -fstrength-reduce -felide-constructors -fschedule-insns -fdelayed-branch -fsave-memoized -Wall -c iPHPQ.cc
iPHPQ.h: In method intPHPQ::~intPHPQ ():
In file included from iPHPQ.cc:30:
iPHPQ.h:86: warning: array size expression for delete ignored
iPHPQ.cc: In method void intPHPQ::prealloc (int):
iPHPQ.cc:95: warning: array size expression for delete ignored
g++ -DUSG -I/local/src/libg++/g++-include -g -O -fstrength-reduce -felide-constructors -fschedule-insns -fdelayed-branch -fsave-memoized -Wall -c iVStack.cc
iVStack.h: In method intVStack::~intVStack ():
In file included from iVStack.cc:28:
iVStack.h:74: warning: array size expression for delete ignored
iVStack.cc: In method void intVStack::operator = (class intVStack &):
iVStack.cc:44: warning: array size expression for delete ignored
iVStack.cc: In method void intVStack::resize (int):
iVStack.cc:58: warning: array size expression for delete ignored
g++ -DUSG -I/local/src/libg++/g++-include -g -O -fstrength-reduce -felide-constructors -fschedule-insns -fdelayed-branch -fsave-memoized -Wall -c iVQueue.cc
iVQueue.h: In method intVQueue::~intVQueue ():
In file included from iVQueue.cc:28:
iVQueue.h:77: warning: array size expression for delete ignored
iVQueue.cc: In method void intVQueue::operator = (class intVQueue &):
iVQueue.cc:46: warning: array size expression for delete ignored
iVQueue.cc: In method void intVQueue::resize (int):
iVQueue.cc:73: warning: array size expression for delete ignored
g++ -DUSG -I/local/src/libg++/g++-include -g -O -fstrength-reduce -felide-constructors -fschedule-insns -fdelayed-branch -fsave-memoized -Wall -c tVec.cc
iVec.h: In method intVec::~intVec ():
In file included from tVec.cc:6:
iVec.h:111: warning: array size expression for delete ignored
g++ tVec.o -o tVec -L. -ltest -L/local/src/libg++/src -lg++ -lm
g++ -DUSG -I/local/src/libg++/g++-include -g -O -fstrength-reduce -felide-constructors -fschedule-insns -fdelayed-branch -fsave-memoized -Wall -c tStack.cc
iVStack.h: In method intVStack::~intVStack ():
In file included from tStack.cc:80:
iVStack.h:74: warning: array size expression for delete ignored
g++ -DUSG -I/local/src/libg++/g++-include -g -O -fstrength-reduce -felide-constructors -fschedule-insns -fdelayed-branch -fsave-memoized -Wall -c tQueue.cc
iVQueue.h: In method intVQueue::~intVQueue ():
In file included from tQueue.cc:80:
iVQueue.h:77: warning: array size expression for delete ignored
g++ -DUSG -I/local/src/libg++/g++-include -g -O -fstrength-reduce -felide-constructors -fschedule-insns -fdelayed-branch -fsave-memoized -Wall -c tPQ.cc
tPQ.cc: In function void XPtest ():
tPQ.cc:123: warning: array size expression for delete ignored
iPHPQ.h: In method intPHPQ::~intPHPQ ():
In file included from tPQ.cc:132:
iPHPQ.h:86: warning: array size expression for delete ignored
tPQ.cc: In function void PHtest ():
tPQ.cc:179: warning: array size expression for delete ignored
tPQ.cc: In function void Splaytest ():
tPQ.cc:235: warning: array size expression for delete ignored
g++ tPQ.o -o tPQ -L. -ltest -L/local/src/libg++/src -lg++ -lm
sh: 22975 Bus error - core dumped
g++ -DUSG -I/local/src/libg++/g++-include -g -O -fstrength-reduce -felide-constructors -fschedule-insns -fdelayed-branch -fsave-memoized -Wall -c tSet.cc
iVHSet.h: In method intVHSet::~intVHSet ():
In file included from tSet.cc:226:
iVHSet.h:77: warning: array size expression for delete ignored
iVOHSet.h: In method intVOHSet::~intVOHSet ():
In file included from tSet.cc:284:
iVOHSet.h:79: warning: array size expression for delete ignored
g++ tSet.o -o tSet -L. -ltest -L/local/src/libg++/src -lg++ -lm
sh: 22989 Bus error - core dumped
g++ -DUSG -I/local/src/libg++/g++-include -g -O -fstrength-reduce -felide-constructors -fschedule-insns -fdelayed-branch -fsave-memoized -Wall -c tBag.cc
iVHBag.h: In method intVHBag::~intVHBag ():
In file included from tBag.cc:213:
iVHBag.h:70: warning: array size expression for delete ignored
g++ tBag.o -o tBag -L. -ltest -L/local/src/libg++/src -lg++ -lm
sh: 23004 Bus error - core dumped
g++ -DUSG -I/local/src/libg++/g++-include -g -O -fstrength-reduce -felide-constructors -fschedule-insns -fdelayed-branch -fsave-memoized -Wall -c tMap.cc
iVHMap.h: In method intintVHMap::~intintVHMap ():
In file included from tMap.cc:119:
iVHMap.h:70: warning: array size expression for delete ignored
iVHMap.h:71: warning: array size expression for delete ignored
iVHMap.h:72: warning: array size expression for delete ignored
g++ tMap.o -o tMap -L. -ltest -L/local/src/libg++/src -lg++ -lm
sh: 23016 Bus error - core dumped
H.J. Lu
More information about the Comp.unix.sysv386
mailing list