[tor.general] GNU C++ Libraries on Sun4

dan@sparkles.dcss.McMaster.CA (Dan Trottier) (04/29/89)

Has anyone been able to compile the GNU C++ libraries on a Sun4 OS4.0.1?

I have gcc-1.34.2, g++-1.34.2, glib+-1.34.0, and an up-to-date bison. 

The problem arises when g++ tries to compile Integer.cc. The compiler 
returns from compiling Integer.cc but no object file is created and the
return status isn't zero. This causes make(1) to exit with an error and
the whole process grinds to a halt.

The strange thing is that g++ doesn't complain or produce an error message
while compiling Integer.cc.

===  Here is the output produced by running make in dist-libg++ ===

(cd src; make GXX=g++ CC=gcc)
g++ -g -O -fchar-charconst -I../g++-include -I..  -fsave-memoized -c  builtin.cc
g++ -g -O -fchar-charconst -I../g++-include -I..  -fsave-memoized -c  File.cc
/usr/include/sys/fcntlcom.h:62: warning: type declaration of flock shadows previous declaration
/usr/include/sys/fcntlcom.h:62: warning: `flock' was declared `extern' and later `static'
g++ -g -O -fchar-charconst -I../g++-include -I..  -fsave-memoized -c  stream.cc
g++ -g -O -fchar-charconst -I../g++-include -I..  -fsave-memoized -c  PlotFile.cc
g++ -g -O -fchar-charconst -I../g++-include -I..  -fsave-memoized -c  SFile.cc
g++ -g -O -fchar-charconst -I../g++-include -I..  -fsave-memoized -c  Obstack.cc
gcc -g -O -I../g++-include  -sun4 -c  regex.c
/usr/include/alloca.h:3: warning: alloca redefined
regex.c: In function re_search_2:
regex.c:1069: warning: argument passing between incompatible pointer types
regex.c:1069: warning: argument passing between incompatible pointer types
regex.c: In function re_match:
regex.c:1096: warning: argument passing between incompatible pointer types
g++ -g -O -fchar-charconst -I../g++-include -I..  -fsave-memoized -c  String.cc
g++ -g -O -fchar-charconst -I../g++-include -I..  -fsave-memoized -c  Integer.cc
../g++-include/Integer.h:187: friend `even' implicitly overloaded
../g++-include/builtin.h:122: after declaration of non-overloaded `int even (long int)'
../g++-include/Integer.h:188: friend `odd' implicitly overloaded
../g++-include/builtin.h:127: after declaration of non-overloaded `int odd (long int)'
*** Error code 1
make: Fatal error: Command failed for target `Integer.o'
Current working directory /u0/usr2/gnu/dist-libg++/src
*** Error code 1
make: Fatal error: Command failed for target `libg++.a'

==========

Thanks
-- 
Dan Trottier                                            dan@maccs.McMaster.CA
Dept of Computer Science                       ...!uunet!utai!utgpu!maccs!dan
McMaster University                                      (416) 525-9140 x3444