Usenet comp.unix.osf.osf1 (1992-2004)
 help / color / mirror / Atom feed
From: reagan@hiyall.enet.dec.com (John R. Reagan)
Subject: Re: FORTRAN executables not transportable?
Date: 24 MAY 94 12:20:11	[thread overview]
Message-ID: <2rt9q8$qed@jac.zko.dec.com> (raw)
In-Reply-To: 2rrht2$ijd@news.cuny.edu


In article <2rrht2$ijd@news.cuny.edu>, jon@qcvaxa.acc.qc.edu (Jon Leong) writes...
>In an attempt to take advantage of idle CPU cycles, I FTPed a FORTRAN 
>executable (a.out) from one Alpha OSF/1 system to another but it would
>not run.  The Alpha with the idle cycles does not have a F77 compiler. 
>That is why I was trying to deal with executables.
> 
>The error message I got was: 
> 
>   375:a.out: /sbin/loader: Fatal Error: Main's RLD_VERSION is 3,
>   the correct version should be 1
> 
>Does this mean that FORTRAN executables are not transportable? 

It isn't just Fortran, but anything linked with shared libraries.
OSF/1 is upwards compatable (ie, thinks built on older versions should
run on newer versions), but not the other way around.  It seems that the
a.out you copied was built on a newer version of OSF/1 than the idle machine
you are copying to.

>It seems that the only way I can get an executable from an object file
>is to use the command: 
>                            f77 prog.o
> 

You can use ld, but you'll have to specify the libraries that the f77
command would have done.  Go to the machine with f77 and use "-v"
on an f77 command.  You'll see how it invokes ld to convert the .o
into an a.out.  It should be something like:

/usr/lib/cmplrs/cc/ld -g0 -O4 -call_shared /usr/lib/cmplrs/cc/crt0.o \
/usr/lib/cmplrs/fort/for_main.o prog.o -nocount -lUfor -lfor -lFutil -lm \
-lots -lc

---
John Reagan
The Languages Group
Digital Equipment Corporation
reagan@hiyall.enet.dec.com
Disclaimer:  The opinions and statements expressed by me are not
             necessarily those of Digital Equipment Corporation.
---


  reply	other threads:[~1994-05-24 16:20 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1994-05-24  1:31 FORTRAN executables not transportable? Jon Leong
1994-05-24 16:20 ` John R. Reagan [this message]
1994-05-24 18:22   ` Castor Fu
1994-05-24 21:43 ` FORTRAN executables not transportable? (Summary) jon
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