-assume noold_ldout_format for GNU

Martin Tee via fortran fortran@gcc.gnu.org
Wed May 30 11:43:00 GMT 2018


.f files are fixed format?

For explicit interface include an interface block or put sub-program in
a module and 'USE' the module in the calling procedure.


On Wed, 2018-05-30 at 15:25 +0530, nachiket k wrote:
> Yes I tried removing all those flags but I am still getting same
> errors
> I tried that's why I thought may be it is due to some flags that I am
> missing
> 
> Same source has been compiled with intel compilers
> 
> Is there anything obvious about the error that I am missing ?
> 
> Is this because of some format mismatch error in source (as error is
> reported at 72 column copygb2.f:1074:72 )
> Is there any flag that I can you so control this kind of behavior ?
> 
> I have also tried
> -ffree-line-length-0 -fconvert=swap -freal-4-real-8 -lm -fcheck=all
> (-static and -ffast-math too just to check)
> 
> Also what does it mean to make an explicit interface available in the
> subprogram where this CALL occurs.
> I copied the subroutine in another file
> compilation happens with -c to create .o
> but when I do -o to create exe it gives undefined references
> 
> PS: I am new to fortran
> 
> 
> 
> On Tue, May 29, 2018 at 10:05 PM, Steve Kargl <
> sgk@troutmask.apl.washington.edu> wrote:
> 
> > On Tue, May 29, 2018 at 11:35:00AM +0530, nachiket k wrote:
> > > Hi,
> > > copygb2 has dependency on modfiles genereated from library g2
> > > 
> > > Makefile parameters for g2 were
> > > 
> > > Original for intel
> > > 
> > > DEFS=-DLINUX
> > > FC=ftn
> > > CC=cc
> > > CPP=CC -P
> > > MODDIR=../g2/lib/temp/incmod/g2_4
> > > 
> > > FFLAGS=-O3 -g  -assume noold_ldout_format -module $(MODDIR)
> > > 
> > 
> > Remove all options and only add those that are needed.
> > You can remove '-assume noold_ldout_format' as that is
> > an Intel specific loader option.  Change -module to -I.
> > 
> > --
> > Steve
> > 



More information about the Fortran mailing list