Open
Description
I'm getting the following linkage errors in the MPAS-A 3.3 build:
undefined reference to `netcdf_mp_nf90_inquire_'
undefined reference to `netcdf_mp_nf90_inquire_attribute_'
undefined reference to `netcdf_mp_nf90_inq_attname_'
undefined reference to `netcdf_mp_nf90_inq_varid_'
undefined reference to `netcdf_mp_nf90_inquire_variable_'
<etc.>
When I try the compile-command on the command-line, I can get it to link by adding
-L$NETCDF_F/lib -lnetcdff
I've tried adding these settings to the build environment
export LDFLAGS="-L$NETCDF_F/lib -lnetcdff -L$NETCDF/lib -lnetcdf"
export LIBS="-L$NETCDF_F/lib -lnetcdff"
export FFLAGS="-L$NETCDF_F/lib -lnetcdff"
export FCFLAGS="-L$NETCDF_F/lib -lnetcdff"
but they never show up on the problematic compile line
mpif90 -O3 -o atmosphere_model driver/*.o -L. -ldycore -lops -lframework -L/shared/apps/rhel-6.2/tools/cponder/PIO-1.9.15/Intel-15.0/lib -lpio -L/shared/apps/rhel-6.2/tools/cponder/PNetCDF-1.6.0/OpenMPI-1.8.4_Intel-15.0_CUDA-6.5/lib -lpnetcdf -L/shared/apps/rhel-6.2/tools/cponder/NetCDF-4.3.3-rc3/Intel-15.0_HDF5-1.8.14_OpenMPI-1.8.4_CUDA-6.5/lib -lnetcdf -I./external/esmf_time_f90 -L./external/esmf_time_f90 -lesmf_time
How do I pass the NetCDF-Fortran info into the build?