* egcs g77 and RH5.0
@ 1998-03-05 5:00 Idir Mourad
1998-03-05 5:00 ` Toon Moene
0 siblings, 1 reply; 3+ messages in thread
From: Idir Mourad @ 1998-03-05 5:00 UTC (permalink / raw)
Hi everybody!
I am trying to upgrade to RH5.0:
- I solved the problem of broken c++/c library
by compiling egcs
- Things seem working fine on the c/c++ side,
but I am having big segmentation faults
when running certains fortran subroutines
compiled with egcs g77 1.0.1
The same programs run perfectly on
other architecture/systems like i386/Linux,alpha-RH4.2 and
Solaris-sun using traditional gcc and different
flavors of fortran77
- I tried to recompile egcs with itself, glibc
with egcs and still my programs are bombing out
heavily.
Any help is appreciated enormously, better if it
comes before RH5.0 drives me completely crazy
(but fortunately I can work with 4.2)
Thank you very much
Alessandro
please, if you answer to me, please use the address
alex@greco2.polytechnique.fr
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: egcs g77 and RH5.0
1998-03-05 5:00 egcs g77 and RH5.0 Idir Mourad
@ 1998-03-05 5:00 ` Toon Moene
1998-03-06 5:00 ` Idir Mourad
0 siblings, 1 reply; 3+ messages in thread
From: Toon Moene @ 1998-03-05 5:00 UTC (permalink / raw)
idir@lure.u-psud.fr (Idir Mourad) wrote:
> - Things seem working fine on the c/c++ side,
> but I am having big segmentation faults
> when running certains fortran subroutines
> compiled with egcs g77 1.0.1
There are known bugs in egcs-1.0.1/g77 when using negative lower bounds in
arrays. This might be your problem.
On the Other Hand, segmentation faults can also be caused by using to much
stack space. Note that the default in g77 is to allocate arrays less than
32K in size on the stack. Read the documentation of your shell on how to
enlarge that limit.
--
Toon Moene (mailto:toon@moene.indiv.nluug.nl)
Saturnushof 14, 3738 XG Maartensdijk, The Netherlands
Phone: +31 346 214290; Fax: +31 346 214286
g77 Support: mailto:fortran@gnu.org; NWP: http://www.knmi.nl/hirlam
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: egcs g77 and RH5.0
1998-03-05 5:00 ` Toon Moene
@ 1998-03-06 5:00 ` Idir Mourad
0 siblings, 0 replies; 3+ messages in thread
From: Idir Mourad @ 1998-03-06 5:00 UTC (permalink / raw)
In article <6dn4di$5od$5@news.utrecht.NL.net>,
toon@moene.indiv.nluug.nl says...
>
>idir@lure.u-psud.fr (Idir Mourad) wrote:
>
>> - Things seem working fine on the c/c++ side,
>> but I am having big segmentation faults
>> when running certains fortran subroutines
>> compiled with egcs g77 1.0.1
>
>There are known bugs in egcs-1.0.1/g77 when using negative lower
bounds in
>arrays. This might be your problem.
>
>On the Other Hand, segmentation faults can also be caused by
using to much
>stack space. Note that the default in g77 is to allocate arrays
less than
>32K in size on the stack. Read the documentation of your shell
on how to
>enlarge that limit.
>
>
Hi!! (from Alessandro Mirone: alex@greco2.polytechnique.fr)
I solved the problem:-)
Answer: The generated shared library was too big!!!!!!!
I thought this problem had been solved in RH5.0,
with RH4.2 the building of a too big library fails,
but with 5.0 it is successful, unfortunately
it explodes later at run-time.
So I splitted (as I was used to do in RH4.2) the big
lapack library in two smaller parts and the big segmentation
faults
disappeared as soon.
Weird.. isn't?? But at least things are working now.
Might this problem be linked to the above stack space limitations?
Greetings
almost got mad
Alessandro
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~1998-03-06 5:00 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1998-03-05 5:00 egcs g77 and RH5.0 Idir Mourad
1998-03-05 5:00 ` Toon Moene
1998-03-06 5:00 ` Idir Mourad
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox