Operating System - HP-UX
1753797 Members
7404 Online
108805 Solutions
New Discussion юеВ

Compiled Fortran File from another OS...

 
Jonathan Caplette_1
Super Advisor

Compiled Fortran File from another OS...

Hi guys!!

I've a little problem here... I've an IBM workstation running AIX 4.3.2 and XLfortran.... On that machine, some users have compiled Fortran progs, and now I have change my IBM for and HP Visualize B2600 running HP-UX 11i and without a Fortran compiler...

What I have done, is moved the file from the IBM on the HP station, with the same rights of rwx on each file.... The problem is when I call on compiled app, it says to me:
/elec/bin/excu[57]: //elec/bin/exec/zturb: cannot execute

What's on the line in my "excu" script on line 57, is to run that prog "zturb"....

any clue.?.?.? or somebody know why this program is not executable... is it really because of the compilation on an IBM machine???

Regards
Jonathan
20 REPLIES 20
Pete Randall
Outstanding Contributor

Re: Compiled Fortran File from another OS...

Jonathan,

Different compiler, different architecture: it's definitely not going to work.


Pete

Pete
Jonathan Caplette_1
Super Advisor

Re: Compiled Fortran File from another OS...

I've found the source code... Can I compile it with any Fortran compiler???
Pete Randall
Outstanding Contributor

Re: Compiled Fortran File from another OS...

HP has a Fortran compiler they'd be happy to sell you. I don't know if there's a "freeware" compiler available.

Pete

Pete
John Poff
Honored Contributor

Re: Compiled Fortran File from another OS...

Hi,

I just hit the gcc web site and it says it will compile fortran. I've never tried it before. Sounds like fun!


http://gcc.gnu.org/onlinedocs/gcc-3.2.1/gcc/G---and-GCC.html#G++%20and%20GCC


JP

harry d brown jr
Honored Contributor

Re: Compiled Fortran File from another OS...

Why not use GNU's fortran compiler, ported to HP - (install the Dependencies first!)?

http://hpux.cs.utah.edu/hppd/hpux/Gnu/gcc-3.2/

Or the GCC compiler depot from HP:
http://h21007.www2.hp.com/dspp/tech/tech_TechSoftwareDetailPage_IDX/1,1703,547,00.html



live free or die
harry
Live Free or Die
Jonathan Caplette_1
Super Advisor

Re: Compiled Fortran File from another OS...

I'm gonna try those compiler.... I'll keep writting!!
Shannon Petry
Honored Contributor

Re: Compiled Fortran File from another OS...

The GNU project EGCS includes a fortran compiler. It's pretty robust, and supports fortran 77 standards. The compiler name is actually g77.

If your code is written in f90 standards, the compile will most likely fail.

The HP fortran compiler has both f77 and f90, so definately a safer route if your not sure.

You can download egcs from the HP porting center. http://hpux.cs.utah.edu/hppd/hpux/

Good luck!
Shannon
Microsoft. When do you want a virus today?
harry d brown jr
Honored Contributor

Re: Compiled Fortran File from another OS...

Shannon,

Does the g77 compiler support the "old" f77 extensions of do...while and do...until constructs ??

It's been about 20 years since I've written an F77 program!

live free or die
harry
Live Free or Die
John Poff
Honored Contributor

Re: Compiled Fortran File from another OS...

Harry,

My curiousity is peaked also. I took a Fortran programming class a LONG time ago when I was in college. I won't say how long ago, but the U.S. president at the time was a former Southern governor, and not from Arkansas! :)

JP