Usenet comp.unix.osf.osf1 (1992-2004)
 help / color / mirror / Atom feed
* Re: g77 running on dUNIX 3.2?
  1995-10-11  4:00 g77 running on dUNIX 3.2? Grzegorz Mucha
@ 1995-10-11  4:00 ` Michel Kern
  0 siblings, 0 replies; 2+ messages in thread
From: Michel Kern @ 1995-10-11  4:00 UTC (permalink / raw)


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                    |



^ permalink raw reply	[flat|nested] 2+ messages in thread

* g77 running on dUNIX 3.2?
@ 1995-10-11  4:00 Grzegorz Mucha
  1995-10-11  4:00 ` Michel Kern
  0 siblings, 1 reply; 2+ messages in thread
From: Grzegorz Mucha @ 1995-10-11  4:00 UTC (permalink / raw)


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?
						Grzesiek
--
    _/_/_/       _/     _/          _/_/_/_/_/    Grzegorz Mucha
  _/            _/     _/              _/         Civil Eng. Dept., L-5 Inst.
 _/            _/     _/              _/          System Administrator
_/            _/     _/              _/           tel. +48 12 330340
 _/_/_/racow   _/_/_/niversity  of  _/echnology   grzes@twins.pk.edu.pl



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~1995-10-11  4:00 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1995-10-11  4:00 g77 running on dUNIX 3.2? Grzegorz Mucha
1995-10-11  4:00 ` Michel Kern

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