This archive contains answers to questions sent to Unidata support through mid-2025. Note that the archive is no longer being updated. We provide the archive for reference; many of the answers presented here remain technically correct, even if somewhat outdated. For the most up-to-date information on the use of NSF Unidata software and data services, please consult the Software Documentation first.
> Hi Ed > > It turned out that -lm was not the only issue - so I still don't have a > working parallel NetCDF library that works with Fortran. > > If I --disable-f77 > ./f90/typesizes.mod > ./f90/netcdf.mod > are nut produced > > and I I don't do --disable-f77 I do get the modules but I get an error > during creation of the shared library: > libtool: link: mpif90 -shared .libs/fort-attio.o .libs/fort-control.o > .libs/fort-dim.o .libs/fort-genatt.o .libs/fort-geninq.o > .libs/fort-genvar.o .libs/fort-lib.o .libs/fort-misc.o > .libs/fort-v2compat.o .libs/fort-vario.o .libs/fort-var1io.o > .libs/fort-varaio.o .libs/fort-varmio.o .libs/fort-varsio.o > .libs/fort-nc4.o --whole-archive ../f90/.libs/libnetcdff90.a > --no-whole-archive -L/opt/hdf5-par//lib /usr/lib/libcurl-gnutls.so > /opt/hdf5-1.8.6-par/lib/libhdf5_hl.a /opt/hdf5-1.8.6-par/lib/libhdf5.a > -lz -L/opt/mpich2-1.2-romio/lib > -L/opt/intel/Compiler/11.0/069/mkl/lib/32 > -L/opt/intel/Compiler/11.0/069/lib/ia32 > -L/usr/lib/gcc/i686-linux-gnu/4.4.5/ > -L/usr/lib/gcc/i686-linux-gnu/4.4.5/../../../../lib/ -L/lib/../lib/ > -L/usr/lib/../lib/ -L/opt/intel/Compiler/11.0/069/mkl/lib/32/ > -L/usr/lib/gcc/i686-linux-gnu/4.4.5/../../../ -L/lib/ -L/usr/lib/ > -L/usr/lib/i686-linux-gnu -lmpichf90 -lmpich -lopa -lpthread -lrt > -lifport -lifcore -limf -lsvml -lm -lipgo -lintlc -lgcc_s -lirc_s -ldl > -lc -soname libnetcdff.so.5 -o .libs/libnetcdff.so.5.1.0 > ifort: command line warning #10006: ignoring unknown option > '-fwhole-archive' > ifort: command line warning #10006: ignoring unknown option > '-fno-whole-archive' > ifort: command line warning #10156: ignoring option '-s'; no argument > required > ld: cannot find libnetcdff.so.5: No such file or directory > make[3]: *** [libnetcdff.la] Error 1 > > The snap-shot you provided does not make it for me. It even fails if I > specify the LIBS=-lm option. > > Karsten > Howdy Karsten! The F90 API depends completely on the F77 API. If you --disable-f77 that turns off the F90 API too. You must build both if you want the F90 API. The problem you are having is one that has to do with ifort and some mistakes I made in the various configure and build files of netCDF. Other users with this problem have reported success with the latest snapshot, which leads me to deduce that you are using different configure options than they were, and that I missed cleaning up some mistakes in the build system. I am making another pass through it now, and I wonder if you could try it. Get my snapshot release here: ftp://ftp.unidata.ucar.edu/pub/netcdf/snapshot/netcdf-4-ed.tar.gz Thanks, Ed Ticket Details =================== Ticket ID: LEF-356666 Department: Support netCDF Priority: Normal Status: Closed