From: kern@donald.inria.fr (Michel Kern)
Subject: Re: g77 running on dUNIX 3.2?
Date: 1995/10/11 [thread overview]
Message-ID: <45g73k$qvc@news-rocq.inria.fr> (raw)
In-Reply-To: DG9yJn.C7o@cyf-kr.edu.pl
In article <DG9yJn.C7o@cyf-kr.edu.pl>, grzes@twins.pk.edu.pl (Grzegorz Mucha) writes:
|> Hi,
|>
|> I've compiled g77 0.5.16 using gcc 2.7.0 on DEC Alpha running dUNIX 3.2.
|> Everything seemed to be OK, but that's all I get during compilation:
|>
|> (73)|alpha:~/FORTRAN> g77 aqq.f
|> collect2: ld returned 1 exit status
|> /usr/ucb/ld:
|> Object file format error in: /usr/local/lib/gcc-lib/alpha-dec-osf3.2/2.7.0/libf2c.a(main.o): bad isym in proc table entry
|>
|> aqq.f is as follows:
|>
|> program aqq
|> write(*,*)'Hello world'
|> end
|>
|> Any idea?
Yup, I gpot through this one :)
You have to modify the Makefiles (or more precisely Makefile.in) in
<wherever-your-gcc-is>/f/runtime/{libF77,libI77}
Comment out the last 2 lines in the .c.o rule
.c.o:
$(CC) -c -DSkip_f2c_Undefs $(ALL_CFLAGS) $(CGFLAGS) $<
## ld -r -x -o $@x $@
## mv $@x $@
I don't know why it doesn't work that way, but that fixed it for me,
and Dave Love agrees that these 2 lines shouldn't be there.
Hope that helps,
Michel
--
Michel KERN | Tel. (33) (1) 39 63 58 41
INRIA Rocquencourt | E-mail: Michel.Kern@inria.fr
78153 Le Chesnay Cedex |
FRANCE |
prev parent reply other threads:[~1995-10-11 4:00 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
1995-10-11 4:00 g77 running on dUNIX 3.2? Grzegorz Mucha
1995-10-11 4:00 ` Michel Kern [this message]
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