* More f2c problems
@ 1998-02-17 16:16 Gerald Brandt
0 siblings, 0 replies; 3+ messages in thread
From: Gerald Brandt @ 1998-02-17 16:16 UTC (permalink / raw)
Hi there,
I have some more f2c problems. Again, all this works on an Intel/Linux
system.
Alpha/Linux RedHat 4.2
brand new f2c from netlib.
Compiling a small(ish) program works like a charm.
Compiling a VERY large program results in the following errors:
/emtaux.f:3691: relocation truncated to fit: LITERAL c__100
/emtaux.f:3691: relocation truncated to fit: LITERAL c__300
/emtaux.f:3691: relocation truncated to fit: LITERAL c__40
--
To unsubscribe: send e-mail to axp-list-request@redhat.com with
'unsubscribe' as the subject. Do not send it to axp-list@redhat.com
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: More f2c problems
@ 1998-02-17 19:52 Harvey J. Stein
0 siblings, 0 replies; 3+ messages in thread
From: Harvey J. Stein @ 1998-02-17 19:52 UTC (permalink / raw)
Gerald Brandt <gbr@hvdc.ca> writes:
> Hi there,
>
> I have some more f2c problems. Again, all this works on an Intel/Linux
> system.
>
> Alpha/Linux RedHat 4.2
>
> brand new f2c from netlib.
>
> Compiling a small(ish) program works like a charm.
>
> Compiling a VERY large program results in the following errors:
>
> /emtaux.f:3691: relocation truncated to fit: LITERAL c__100
> /emtaux.f:3691: relocation truncated to fit: LITERAL c__300
> /emtaux.f:3691: relocation truncated to fit: LITERAL c__40
I believe that's the problem with older versions of ld not being able
to cope with certain large sections in the executable file.
I think there're 2 solutions:
1. Split the code into a set of shared libraries, or
2. Upgrade binutils.
I don't know which version of binutils is sufficiently new to deal
with this.
In any case, the problem is unrelated to f2c in the sense that very
large C programs will cause the same problem (I had this problem with
bigloo).
--
Harvey J. Stein
Berger Financial Research
hjstein@bfr.co.il
--
To unsubscribe: send e-mail to axp-list-request@redhat.com with
'unsubscribe' as the subject. Do not send it to axp-list@redhat.com
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: More f2c problems
@ 1998-02-17 22:02 Wes Bauske
0 siblings, 0 replies; 3+ messages in thread
From: Wes Bauske @ 1998-02-17 22:02 UTC (permalink / raw)
Gerald/Harvey,
Do you really need shared libraries or just smaller subroutines
so the number of constants generated is smaller per routine?.
I build quite large binaries but most routines don't exceed
500 lines of code.
(I stick with egcs now that it has a reasonable g77 but did
use f2c to start with before g77 got the right answers)
One other thing Toon mentioned. If the code requires promoting
REAL's to double precision, why not just run something like sed
on it and just replace the definitions and add the standard FORTRAN
variable definitions explicitly to the code? I have probably 100K
lines of code I work with regularly and although all my code uses
explicit variable definitions already("IMPLICIT NONE" helps find
errant variables), it wouldn't take long to add that sort of thing.
Just a thought. I've had to move code between systems/compilers
before and that sort of thing was minor compared to re-doing the
I/O software (multi-GB file accesses, re-writing user interfaces)
since I just setup scripts to edit the source the way I wanted it.
Wes
Harvey J. Stein wrote:
>
> Gerald Brandt <gbr@hvdc.ca> writes:
>
> > Hi there,
> >
> > I have some more f2c problems. Again, all this works on an Intel/Linux
> > system.
> >
> > Alpha/Linux RedHat 4.2
> >
> > brand new f2c from netlib.
> >
> > Compiling a small(ish) program works like a charm.
> >
> > Compiling a VERY large program results in the following errors:
> >
> > /emtaux.f:3691: relocation truncated to fit: LITERAL c__100
> > /emtaux.f:3691: relocation truncated to fit: LITERAL c__300
> > /emtaux.f:3691: relocation truncated to fit: LITERAL c__40
>
> I believe that's the problem with older versions of ld not being able
> to cope with certain large sections in the executable file.
>
> I think there're 2 solutions:
>
> 1. Split the code into a set of shared libraries, or
> 2. Upgrade binutils.
>
> I don't know which version of binutils is sufficiently new to deal
> with this.
>
> In any case, the problem is unrelated to f2c in the sense that very
> large C programs will cause the same problem (I had this problem with
> bigloo).
>
> --
> Harvey J. Stein
> Berger Financial Research
> hjstein@bfr.co.il
>
> --
> To unsubscribe: send e-mail to axp-list-request@redhat.com with
> 'unsubscribe' as the subject. Do not send it to axp-list@redhat.com
--
To unsubscribe: send e-mail to axp-list-request@redhat.com with
'unsubscribe' as the subject. Do not send it to axp-list@redhat.com
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~1998-02-17 22:02 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1998-02-17 19:52 More f2c problems Harvey J. Stein
-- strict thread matches above, loose matches on Subject: below --
1998-02-17 22:02 Wes Bauske
1998-02-17 16:16 Gerald Brandt
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox