Re: BZDEV: Blitz and egcs

From: Peter Nordlund (petern@nada.kth.se)
Date: Tue Jun 09 1998 - 13:32:28 EST


JOYOT Pierre wrote:
>
> I try to compile blitz-980417 with egcs-1.03a. I compile the blitz lib
> fine but the first test produce a compiler crash :
>

Dear Pierre,

Maybe you should try a more recent snapshot.
I managed to compile blitz-980417 with egcs snapshots egcs-19980531 and
egcs-19980608
on Solaris.
>>g++ -v
Reading specs from
/misc/cvap/egcs/egcs-gas-19980531/lib/gcc-lib/sparc-sun-solaris2.5.1/egcs-2.91.34/specs
gcc version egcs-2.91.34 19980530 (gcc2 ss-980502 experimental)

At first it did not work for me if I used many operators in the same
expession.
Around 9 operators or more, got ld to fail.
I guess that blitz produces symbol-names too long for ld on my system.
So, I configured egcs for using gnu ld and as, then it worked ok.
(How to configure egcs for using gnu ld and as in a correct way I4m not
sure about.
If you want to know how I did, please mail me again and I will send a
description.)
If someone knows how to configure egcs for gnu as and ld properly,
please mail me!
For me it was not enough to have gnu as and ld in my path and then
configure with
../src/egcs-19980531/configure --prefix=/misc/cvap/egcs/egcs-19980531
--with-gnu-as --with-gnu-ld

Anyway, I use
GNU assembler version 2.9.1 (sparc-sun-solaris2.5.1), using BFD version
2.9.1
and
GNU ld version 2.9.1 (with BFD 2.9.1)

After
make setup
I had to edit blitz/config.h and undef BZ_NAMESPACE since namespaces
seem to be broken in egcs.
Then
make check
compiled ok, except for one error in the promote test concerning
conversions of bool, but I have not checked why this error occur.

Best regards,
Peter
--------------------- blitz-dev list --------------------------------
* To subscribe/unsubscribe: mail to majordomo@oonumerics.org, with
"subscribe blitz-dev" or "unsubscribe blitz-dev" in the body of the message
* Blitz++ web page: http://oonumerics.org/blitz/



This archive was generated by hypermail 2b29 : Wed Feb 20 2002 - 04:30:04 EST