Operating System - HP-UX
1752425 Members
5749 Online
108788 Solutions
New Discussion юеВ

Re: compilation on HP-UX 11.11 with f90

 
GORCE
New Member

compilation on HP-UX 11.11 with f90

I try to compil a fortran program and when I launch make the f77 is launch and not f90.
Perhaps I don't have the good release ok make.
Do you have an idea?
5 REPLIES 5
Jean-Luc Oudart
Honored Contributor

Re: compilation on HP-UX 11.11 with f90

Hi

may be you could post your Makefile.
Also, what is your PATH ?

Regards
Jean-Luc
fiat lux
GORCE
New Member

Re: compilation on HP-UX 11.11 with f90

My path is:
/usr/local/bin:/products/mag_206v/bin:/bin:/usr/bin:/usr/dt/bin:/usr/bin/X11:/opt/Migration/bin:/usr/vue/bin:/opt/ansic/bin:/usr/ccs/bin:/usr/contrib/bin:/opt/mpi/bin:/opt/hparray/bin:/opt/nettladm/bin:/opt/upgrade/bin:/opt/fcms/bin:/usr/contrib/bin/X11:/opt/pd/bin:/opt/resmon/bin:/opt/scr/bin:/opt/atok/bin:/opt/egb/bin:/opt/graphics/phigs/bin://opt/perl/bin:/usr/sbin/diag/contrib:/opt/vje/bin:/opt/langtools/bin:/opt/imake/bin:/opt/fortran90/bin:/opt/fortran90/contrib/bin:/opt/sentinel/bin

I attache the Makefile to the answer.
Jean-Luc Oudart
Honored Contributor

Re: compilation on HP-UX 11.11 with f90

Hi again

I don't see the reference to the fortran compiler. This might be in the include file.
could you attach : $(MAGALI)/compil/Make.mod


Jean-Luc
fiat lux
GORCE
New Member

Re: compilation on HP-UX 11.11 with f90

I have found my problem, but my goal is to compile fortran 77 code with f90 compilator.
Its seems that I have to change option on the Makefile.
For example +E4 is not recognized on f90 compilator.
Can you help me on writing the new command line for compilator?

Best Regards
Jean-Luc Oudart
Honored Contributor

Re: compilation on HP-UX 11.11 with f90

From the doc :
http://docs.hp.com/en/B3909-90002/ch10s01.html#f77-opt-unsup

HP FORTRAN 77 does not print leading zeroes in floating-point numbers; HP Fortran 90 does. This behavior is equivalent to compiling an HP FORTRAN 77 program with the +E4 option (note that this option is not supported by f90).

Regards
Jean-Luc
fiat lux