egcs-1.0 on RH5.0/alpha and octave
Peter Speier
speier@sugar-land.spc.slb.com
Mon Dec 22 11:54:00 GMT 1997
I tried to compile octave on an alpha running RH5.0, using egcs1.0
with the patches egcs-1.0.diff and libg++2.8.0b6.5.tar.gz by H.J.Lu
as suggested by D.A. Gilbert on axp-list@redhat.com.
The compiler configured, bootstraped and installed without a problem.
The test results are listed at the end.
To compile octave, I had to add -fguiding-decls to the compiler flags.
The final linking failed with repeated messages like the following,
all related to the "complex"- and "string"-classes:
/home/speier/octave-2.0.9/src/log.cc:69:
undefined reference to `log(complex<double> const &)'
/home/speier/octave-2.0.9/src/log.cc:212:
undefined reference to `sqrt(complex<double> const &)'
...and...
./liboctinterp.a(dirfns.o): In function `Fls(octave_value_list const &, int)':
/home/speier/octave-2.0.9/src/dirfns.cc:389:
undefined reference to `operator<<(ostream &, basic_string<char, string_char_traits<char> > const &)'
My question: Could this be due to the switch -fguiding-decls somehow,
is this a library problem, or is it just me overlooking something obvious?
Any help is very much appreciated.
Peter Speier
P.S.: The actual link command is:
/home/speier/EGCS/lib/gcc-lib/alphaev56-unknown-linux-gnu/egcs-2.90.21/ld -m elf64alpha -G 8 -O3 -dynamic-linker /lib/ld-linux.so.2 -o octave -u MAIN__ /usr/lib/crt1.o /usr/lib/crti.o /usr/lib/crtbegin.o -L.. -L../liboctave -L../libcruft -L../readline -L../kpathsea -L../glob -L../dlfcn -L. -L/home/speier/EGCS/lib/gcc-lib/alphaev56-unknown-linux-gnu/egcs-2.90.21 -L/home/speier/EGCS/alphaev56-unknown-linux-gnu/lib -L/home/speier/EGCS/lib -L/home/speier/EGCS/lib/gcc-lib/alphaev56-unknown-linux-gnu/egcs-2.90.21 -L/home/speier/EGCS/alphaev56-unknown-linux-gnu/lib -L/home/speier/EGCS/lib octave.o builtins.o balance.o chol.o colloc.o dassl.o det.o eig.o expm.o fft.o fft2.o filter.o find.o fsolve.o getgrent.o getpwent.o getrusage.o givens.o hess.o ifft.o ifft2.o inv.o log.o lpsolve.o lsode.o lu.o minmax.o pinv.o qr.o quad.o qzval.o rand.o schur.o sort.o svd.o syl.o time.o -loctinterp -loctave -ltinst -lcruft -lOctaveReadline -lkpathsea -lglob -lf2c -lncurses -lm -ldl -lstdc++ -lm -lg!
cc -lc -lgcc /usr/lib/crtend.o /usr/lib/crtn.o
-----------------------------------------------------------------
Testresults on RH5.0 alpha (alphaev56-unknown-linux-gnu)
=========================================================
=== libio Summary ===
# of expected passes 33
# of unexpected failures 3
# of expected failures 4
=== libstdc++ Summary ===
# of expected passes 30
=== gcc Summary ===
# of expected passes 4862
# of unexpected failures 8
# of expected failures 5
# of unsupported tests 9
=== g++ Summary ===
# of expected passes 3384
# of unexpected failures 6
# of unexpected successes 4
# of expected failures 83
# of untested testcases 10
=== g77 Summary ===
# of expected passes 128
# of unexpected failures 4
/home/speier/EGCS/gcc/g77 version egcs-2.90.21 971202 (egcs-1.00 release)
FAIL: tfformat.c compilation
FAIL: tiformat.c compilation
FAIL: tstdiomisc.c compilation
FAIL: gcc.c-torture/execute/complex-5.c execution, -O0
FAIL: gcc.c-torture/execute/complex-5.c execution, -O1
FAIL: gcc.c-torture/execute/complex-5.c execution, -O2
FAIL: gcc.c-torture/execute/complex-5.c execution, -O2 -fomit-frame-pointer -finline-functions
FAIL: gcc.c-torture/execute/ieee/fp-cmp-1.c execution, -O0
FAIL: gcc.c-torture/execute/ieee/fp-cmp-1.c execution, -O1
FAIL: gcc.c-torture/execute/ieee/fp-cmp-1.c execution, -O2
FAIL: gcc.c-torture/execute/ieee/fp-cmp-1.c execution, -O2 -fomit-frame-pointer -finline-functions
FAIL: g++.benjamin/p12475.C (test for warnings, line 4)
FFAIL: g++.eh/spec4.C Execution test
FAIL: g++.mike/eh28.C Execution test
FAIL: g++.mike/p6610a.C Execution test
FAIL: g++.other/rttid2.C Execution test
FAIL: g++.pt/eichin01a.C Execution test
FAIL: g77.f-torture/execute/claus.f execution, -O0
FAIL: g77.f-torture/execute/dcomplex.f execution, -O2 -fomit-frame-pointer -finline-functions
FAIL: g77.f-torture/execute/dnrm2.f execution, -O0
FAIL: g77.f-torture/execute/dnrm2.f execution, -O1
=================================================================
More information about the Gcc-bugs
mailing list