Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
From: M. Nicklaus <mn1@helix.nih.gov>
Subject: Re: Redhat 5.0 - The *real* questions.
Date: Tue, 25 Nov 1997 11:33:26 -0500 (EST)	[thread overview]
Message-ID: <78e64fe4089cf2b494e108ed4762a938.axp-list@archive.invalid> (raw)

Roger Hill-Cottingham <eesrjhc@ee.bath.ac.uk> wrote:
> > > I was hoping for a fortran compiler that worked, as f2c is broken (as
> > > installed from RH4.2 CD-Rom):
> > > 
> > If you just compile f2c from the sources at netlib, it will work.
> 
> OK, just done that, and it is fine for little things, but large code
> I get millions of
> 
>  relocation truncated to fit: LITERAL 
> 
> (seems like one for every assignment). Do I have to fix something in
> f2c/src before making it (like definitions of integer in f2c.h)?

This actually seems to be a problem with the linker; or at least it manifests
itself during the linking.  I checked that by doing f2c, gcc, ld manually.
The C code generated by f2c at least *looks* o.k.  I also get many thousands
of these error messages

beckw2.c(.text+0x14f0): relocation truncated to fit: LITERAL j1.20
beckw2.c(.text+0x14f8): relocation truncated to fit: LITERAL j2.21
beckw2.c(.text+0x157c): relocation truncated to fit: LITERAL xfac.53
beckw2.c(.text+0x1598): relocation truncated to fit: LITERAL yfac.54
beckw2.c(.text+0x15b4): relocation truncated to fit: LITERAL zfac.55
[etc.]

They seem to come from local variables only, as far as I can tell
(which are declared static by f2c).

Does this help anyone explain what's the problem here?  And what a
fix, or at least workaround, would be?

Marc

P.S. Versions used:  f2c (version 19970805)
                     gcc version 2.7.2.1
                     ld version 2.7 (with BFD 2.7.0.2)
                     RH 4.2, kernel 2.0.30

-- 
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

             reply	other threads:[~1997-11-25 16:33 UTC|newest]

Thread overview: 23+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1997-11-25 16:33 M. Nicklaus [this message]
  -- strict thread matches above, loose matches on Subject: below --
1997-11-26 11:05 Redhat 5.0 - The *real* questions Harvey J. Stein
1997-11-26 10:46 R J Hill-Cottingham
1997-11-25 19:41 Harvey J. Stein
1997-11-25 19:29 M. Nicklaus
1997-11-25 17:07 Harvey J. Stein
     [not found] <347AD767.FEB4A63F@voicenet.com>
1997-11-25 16:29 ` Hugo van der Kooij
1997-11-25 14:21 Harvey J. Stein
     [not found] <m2d8jpp5wq.fsf@blinky.bfr.co.il>
1997-11-25 11:57 ` Hugo van der Kooij
1997-11-25 13:55 ` Roman Martonak
1997-11-25 13:49 Uncle George
1997-11-25 12:01 R J Hill-Cottingham
1997-11-25 12:01 Harvey J. Stein
1997-11-25 11:30 Harvey J. Stein
1997-11-25 10:24 R J Hill-Cottingham
     [not found] <18009.9711241036@ee.bath.ac.uk>
1997-11-24 13:05 ` Roman Martonak
1997-11-24 10:36 R J Hill-Cottingham
1997-11-21 14:52 Toon Moene
     [not found] <12915.9711210950@ee.bath.ac.uk>
1997-11-21 13:50 ` Erik Troan
1997-11-21  9:50 R J Hill-Cottingham
1997-11-21  9:17 Stefan Schroepfer
     [not found] <m24t57bkhv.fsf@blinky.bfr.co.il>
1997-11-20 17:11 ` Erik Troan
1997-11-20 16:25 Harvey J. Stein
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox