[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[ldmMcidas #TMZ-781650]: ldm-mcidas problem



Hi Mark,

re:
> I'm trying to build the ldm-mcidas  decoders package on our upgraded
> server (CentOS 6.2 x86-64).  I have set the following environment
> variables in the file "CUSTOMIZE" and in the shell environment.
> 
> CC=gcc
> CFLAGS=-O
> CPPFLAGS='-DNDEBUG -Df2cFortran'
> FC=/usr/bin/gfortran
> FFLAGS='-O -Wuninitialized -fno-automatic -ff90-intrinsics-hide'
> #FLAGS='-O -Wuninitialized -fno-automatic'
> CPP_LDM=-I/software/ldm/include
> LD_LDM='-L/software/ldm/lib -lldm'
> CPP_MCIDAS=-I/software/mcidas/inc
> LD_MCIDAS='-L/software/mcidas/lib -lmcidas'
> CPP_NETCDF=-I/software/mcidas/include
> LD_NETCDF='-L/software/mcidas/lib -lnetcdf'
> LD_X11='-L/usr/X11R6/lib -lX11'
> LD_MATH=-lm
> 
> Configure produces no errors but when I compile with "make all" I get the
> following error:
> 
> gcc -O  lgt2md.o alarm.o decode_lgt.o nldninput.o \
> rtesubs.o commonsubs.o -L/software/ldm/lib -lldm -L/usr/X11R6/lib
> -lX11 ../port/misc/libudport.a -L/software/mcidas/lib -lnetcdf -L../libpng
> -lpng -L../zlib -lz    -lm -o lgt2md || (rm -f lgt2md; exit 1)
> /usr/bin/gfortran -c -O -Wuninitialized -fno-automatic
> -ff90-intrinsics-hide nldn2md.f
> f951: error: unrecognized command line option "-ff90-intrinsics-hide"
> make[2]: *** [nldn2md.o] Error 1
> make[2]: Leaving directory
> `/software/ldm-mcidas/ldm-mcidas-2008/src/decode'
> make[1]: *** [decode/all] Error 1
> make[1]: Leaving directory `/software/ldm-mcidas/ldm-mcidas-2008/src'
> + set +x

I see that you have an alternate definition for FFLAGS commented out.
Did you try it?

re:
> I don't seem to be able to find any documentation on the appropriate flags
> for gfortran.

Unfortunately, the flags supported by gfortran have changed from what they
once were, so specifying them would be a moving target depending on which
version of gfortran was being used.  That being said, I would try using
the FFLAG value that is used in the McIDAS build:

FFLAGS=-O -Wuninitialized -fno-automatic -fno-range-check

Question:

- did you try using the binary ldm-mcidas release first?

  It may work for you directly and so alleviate the headache of buiding
  from source.

Cheers,

Tom
--
****************************************************************************
Unidata User Support                                    UCAR Unidata Program
(303) 497-8642                                                 P.O. Box 3000
address@hidden                                   Boulder, CO 80307
----------------------------------------------------------------------------
Unidata HomePage                       http://www.unidata.ucar.edu
****************************************************************************


Ticket Details
===================
Ticket ID: TMZ-781650
Department: Support ldm-mcidas
Priority: Normal
Status: Closed