[netcdfgroup] Mac OS X with Intel Fortran compiler make error

Group,

 

Using today's netcdf-fortran trunk:

svn co http://svn.unidata.ucar.edu/repos/netcdf-fortran/trunk/

glibtoolize ; aclocal ; autoheader; automake --add-missing ; autoconf

./configure \

--prefix=/home/tools/netcdf-fortran \

--enable-f03 \

CPPFLAGS='-DBUILD_F03 -DNO_NETCDF_2 -DpgiFortran
-I/home/tools/netcdf/include -I/home/tools/hdf5/include -I/home/tools/zlib'
\

LDFLAGS='-L/home/tools/netcdf/lib -L/home/tools/hdf5/lib
-L/home/tools/zlib/lib' \

LIBS='-lnetcdf_sc -lhdf5_hl_sc -lhdf5_sc -lz_sc' 

make

make check

 

I get the following error:

make  all-recursive

Making all in fortran

ifort -DHAVE_CONFIG_H -I. -I.. -I../libsrc   -DBUILD_F03 -DNO_NETCDF_2
-DpgiFortran -I/home/tools/netcdf/include -I/home/tools/hdf5/include
-I/home/tools/zlib  -g -c -o module_netcdf_nc_data.o
module_netcdf_nc_data.F90

ifort  -g -c -o module_netcdf_nc_interfaces.o
module_netcdf_nc_interfaces.f90

ifort -DHAVE_CONFIG_H -I. -I.. -I../libsrc   -DBUILD_F03 -DNO_NETCDF_2
-DpgiFortran -I/home/tools/netcdf/include -I/home/tools/hdf5/include
-I/home/tools/zlib  -g -c -o module_netcdf_nf_data.o
module_netcdf_nf_data.F90

ifort -DHAVE_CONFIG_H -I. -I.. -I../libsrc   -DBUILD_F03 -DNO_NETCDF_2
-DpgiFortran -I/home/tools/netcdf/include -I/home/tools/hdf5/include
-I/home/tools/zlib  -g -c -o module_netcdf_nf_interfaces.o
module_netcdf_nf_interfaces.F90

ifort  -g -c -o module_netcdf_f03.o module_netcdf_f03.f90

for lc in netcdf_nc_data.mod netcdf_nc_interfaces.mod netcdf_nf_data.mod
netcdf_nf_interfaces.mod netcdf_f03.mod  ; do \

    uc="${lc%%.mod}" ; \

    uc=`echo $uc | tr 'abcdefghijklmnopqrstuvwxyz'
'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`; \

        uc="${uc}.mod" ; rm -f $uc ; cp $lc $uc ; \

    done

cp: netcdf_nc_data.mod: No such file or directory

cp: netcdf_nc_interfaces.mod: No such file or directory

cp: netcdf_nf_data.mod: No such file or directory

cp: netcdf_nf_interfaces.mod: No such file or directory

cp: netcdf_f03.mod: No such file or directory

make[2]: *** [NETCDF_NC_DATA.mod] Error 1

make[1]: *** [all-recursive] Error 1

make: *** [all] Error 2

 

I am not sure why, but the .mod files are deleted after they are built.

 

Commenting out the following lines in fortran/Makefile.am:

#   for lc in $(LCHEADERS) ; do \

#   uc="$${lc%%.mod}" ; \

#   uc=`echo $$uc | tr 'abcdefghijklmnopqrstuvwxyz'
'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`; \

#       uc="$${uc}.mod" ; rm -f $$uc ; cp $$lc $$uc ; \

#   done

 

I get a correct build and all tests pass.  Which compiler is causing all the
craziness with uppercase names?

 

How do you control the f03 build?  I added both " --enable-f03" and
"-DBUILD_F03".

Can I still trigger a build in libsrc with the old stuff?  Are you planning
to delete the libsrc code?

 

Thanks,

Roy Dennington

Semichem, Inc.

<<attachment: winmail.dat>>

  • 2013 messages navigation, sorted by:
    1. Thread
    2. Subject
    3. Author
    4. Date
    5. ↑ Table Of Contents
  • Search the netcdfgroup archives: