This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
egcs-971105 on Openserver 5.04
- To: egcs at cygnus dot com
- Subject: egcs-971105 on Openserver 5.04
- From: jwj at dde dot dk (Jesper Wolf Jespersen)
- Date: Mon, 10 Nov 1997 12:05:56 +0100 (DNT)
I have a few problems with egcs on SCO Openserver 5.04 and would
like a bit of advice from the experts.
This posting is a bit long, I hope its not just a waste of
bandwidth :-)
This is now the third complete snapshot i have downloaded and
compiled, with the best results yet, but still I cannot complete a
make check from the top directory.
I havent been able to find any readme files on how to setup egcs on
my machine so I have been doing a bit of guessing along the way. Of
course I have been following the discussion in this maillist and
have found some of the conversations quite helpfull.
To test my egcs I have built a dejagnu from the 971028 snapshot. It
reports an error in the tcl filename-14.1 test, but otherwise shows
no problem. It complains that it cannot find a global config and a
global tool init file. I hope the defaults suffice for testing egcs.
Now after building egcs i run the make check from the egcs top
directory. Unfortunately the test stops in libstdc++ and does not
continue to test the rest.
Here is the output of the libstdc++ test:
---
"Running ./libstdc++.tests/test.exp ...
"FAIL: tcomplex.cc compilation
"FAIL: tcomplex.cc -O compilation
"FAIL: tlist.cc compilation
"FAIL: tlist.cc -O compilation
"FAIL: tmap.cc compilation
"FAIL: tmap.cc -O compilation
"FAIL: tstring.cc compilation
"FAIL: tstring.cc -O compilation
"FAIL: tvector.cc compilation
"FAIL: tvector.cc -O compilation
=== libstdc++ Summary ===
# of unexpected failures 10
# of expected failures 20
---
Looking into the log file gives this report for tcomplex.cc:
---
"Executing on host: /pub/src/egcs-971105/gcc/xgcc
"-B/pub/src/egcs-971105/gcc/ ./libstdc++.tests/../../tests/tcomplex.cc \
"-I.. -I./.. -I./../stl -I. -I/pub/src/egcs-971105/libraries/libio \
"-I/pub/src/egcs-971105/libraries/libio -g \
"-L/pub/src/egcs-971105/libraries//libstdc++ -lstdc++ -lm \
"-o /pub/src/egcs-971105/libraries/libstdc++/testsuite/tcomplex
"compiler exited with status 1
"output is:
"Undefined first referenced
" symbol in file
"complex<double> sqrt<double>(complex<double> const &)/usr/tmp/cca006W11.o
"istream & operator>><double>(istream &, complex<double> &)/usr/tmp/cca006W11.o
"complex<double> pow<double>(complex<double> const &,
"complex<double> const &)/usr/tmp/cca006W11.o
"complex<double>::operator-=(complex<double> const &)/usr/tmp/cca006W11.o
"complex<double>::operator*=(complex<double> const &)/usr/tmp/cca006W11.o
"complex<long double>::complex(long double, long double)/usr/tmp/cca006W11.o
"complex<double> sinh<double>(complex<double> const &)/usr/tmp/cca006W11.o
"complex<double> cosh<double>(complex<double> const &)/usr/tmp/cca006W11.o
"complex<double>::operator/=(complex<double> const &)/usr/tmp/cca006W11.o
"complex<double> cos<double>(complex<double> const &)/usr/tmp/cca006W11.o
"complex<float>::complex(float, float)/usr/tmp/cca006W11.o
"complex<double> log<double>(complex<double> const &)/usr/tmp/cca006W11.o
"complex<double>::real(void) const /usr/tmp/cca006W11.o
"complex<float>::real(void) const /usr/tmp/cca006W11.o
"complex<long double>::real(void) const/usr/tmp/cca006W11.o
"complex<double>::complex(double, double)/usr/tmp/cca006W11.o
"complex<double> exp<double>(complex<double> const &)/usr/tmp/cca006W11.o
"complex<double>::operator+=(complex<double> const &)/usr/tmp/cca006W11.o
"complex<double> operator/<double>(complex<double> const &,
"complex<double> const &)/usr/tmp/cca006W11.o
"complex<double> sin<double>(complex<double> const &)/usr/tmp/cca006W11.o
"complex<double>::imag(void) const /usr/tmp/cca006W11.o
"complex<float>::imag(void) const /usr/tmp/cca006W11.o
"complex<long double>::imag(void) const/usr/tmp/cca006W11.o
"complex<double> pow<double>(complex<double> const &, int)/usr/tmp/cca006W11.o
"ostream & operator<<<double>(ostream &, complex<double> const &)/usr/tmp/cca006W
"11.o
"/pub/src/egcs-971105/libraries/libstdc++/testsuite/tcomplex:
"fatal error: Symbol referencing errors. No output written to
"/pub/src/egcs-971105/libraries/libstdc
"++/testsuite/tcomplex
"collect2: ld returned 1 exit status
"
"FAIL: tcomplex.cc compilation
---
for tvector.c I get the following result:
---
"Executing on host: /pub/src/egcs-971105/gcc/xgcc
"-B/pub/src/egcs-971105/gcc/ ./l
"ibstdc++.tests/../../tests/tvector.cc -I.. -I./.. -I./../stl -I. -I/pub/src/e
"gcs-971105/libraries/libio -I/pub/src/egcs-971105/libraries/libio -g -L/pub/src/
"egcs-971105/libraries//libstdc++ -lstdc++ -lm -o /pub/src/egcs-971105/librari
"es/libstdc++/testsuite/tvector
"compiler exited with status 1
"output is:
"(EOF):undefined name: .L_T6081
"FAIL: tvector.cc compilation
---
A very strange thing is that the coff version of this test gives
the follong result:
---
"Executing on host: gcc ./libstdc++.tests/../../tests/tvector.cc
"-I.. -I./.. -I.
"/../stl -I. -g -L/pub/src/egcs-971105/libraries/coff/libstdc++/testsuite/../..
"/libstdc++ -lstdc++ -lm -o /pub/src/egcs-971105/libraries/coff/libstdc++/test
"suite/tvector
"compiler exited with status 1
"output is:
"In file included from /usr/local/include/g++/new.h:6,
" from ../stl/stl_construct.h:34,
" from ../stl/iterator.h:42,
" from ../stl/algobase.h:33,
" from ../stl/vector.h:30,
" from ./libstdc++.tests/../../tests/tvector.cc:1:
"/usr/local/include/g++/std/new.h:26: warning: declaration of
"`operator delete(void *)' throws different exceptions
"<internal>:26: warning: previous declaration here
"/usr/local/include/g++/std/new.h:27: warning: declaration of
"`operator delete []
"(void *)' throws different exceptions
"<internal>:27: warning: previous declaration here
"(EOF):undefined name: .L_T5991
"
---
I ran the other tests by hand and here are the result summaries for these:
---
"/pub/src/egcs-971105/gcc/testsuite/gcc.sum
" === gcc tests ===
" === gcc Summary ===
"# of expected passes 4883
"# of expected failures 5
"# of unsupported tests 7
"/pub/src/egcs-971105/gcc/testsuite/g++.sum
" === g++ tests ===
"FAIL: g++.benjamin/warn01.C (test for excess errors)
"FAIL: g++.jason/template31.C (test for excess errors)
"FAIL: g++.law/profile1.C (test for excess errors)
"FAIL: g++.mike/eh23.C Execution test
"FAIL: g++.mike/p9732b.C Execution test
" === g++ Summary ===
"# of expected passes 3375
"# of unexpected failures 5
"# of unexpected successes 3
"# of expected failures 80
"# of untested testcases 6
"/pub/src/egcs-971105/gcc/testsuite/g77.sum
" === g77 tests ===
" === g77 Summary ===
"# of expected passes 112
"/pub/src/egcs-971105/libraries/libio/testsuite/libio.sum
" === libio tests ===
" === libio Summary ===
"# of expected passes 40
"/pub/src/egcs-971105/libraries/coff/libio/testsuite/libio.sum
" === libio tests ===
"FAIL: tfformat.c compilation
"FAIL: tiformat.c compilation
"FAIL: tstdiomisc.c compilation
" === libio Summary ===
"# of expected passes 33
"# of unexpected failures 3
"# of expected failures 4
"/pub/src/egcs-971105/libraries/coff/libstdc++/testsuite/libstdc++.sum
" === libstdc++ tests ===
"FAIL: tcomplex.cc compilation
"FAIL: tcomplex.cc -O compilation
"FAIL: tlist.cc compilation
"FAIL: tlist.cc -O compilation
"FAIL: tmap.cc compilation
"FAIL: tmap.cc -O compilation
"FAIL: tstring.cc compilation
"FAIL: tstring.cc -O compilation
"FAIL: tvector.cc compilation
"FAIL: tvector.cc -O compilation
" === libstdc++ Summary ===
"# of unexpected failures 10
"# of expected failures 20
"/pub/src/egcs-971105/libraries/pic/libio/testsuite/libio.sum
" === libio tests ===
"FAIL: tfformat.c compilation
"FAIL: tiformat.c compilation
"FAIL: tstdiomisc.c compilation
" === libio Summary ===
"# of expected passes 33
"# of unexpected failures 3
"# of expected failures 4
"/pub/src/egcs-971105/libraries/libstdc++/testsuite/libstdc++.sum
" === libstdc++ tests ===
"FAIL: tcomplex.cc compilation
"FAIL: tcomplex.cc -O compilation
"FAIL: tlist.cc compilation
"FAIL: tlist.cc -O compilation
"FAIL: tmap.cc compilation
"FAIL: tmap.cc -O compilation
"FAIL: tstring.cc compilation
"FAIL: tstring.cc -O compilation
"FAIL: tvector.cc compilation
"FAIL: tvector.cc -O compilation
" === libstdc++ Summary ===
"# of unexpected failures 10
"# of expected failures 20
---
I dont know how to make the gcc and g++ tests for both ELF and
COFF, I hope somebody here can tell me how to do those.
One other observation I made is that the COFF part of libio still
is being ELF compiled. Sorry I dont know what to do to the
configure scripts to change this, I just put -mcoff in the Makefile
in that directory.
If it is possible to generate a shared version of the ELF librarys
I would like to know how. The Skunkware 97 version og GCC has
shared libraries, but I dont know how they were made.
Is this possible ?
I realy thing the egcs initiative is an improvement its the first
version of gcc that compiles out of the box on SCO Openserver, and
it seems quite a few things have improved over gcc version 2.7.2.
Thanks to all of you.
Greetings from Denmark.
Jesper Wolf Jespersen