This post was from a previous version of the WRF&MPAS-A Support Forum. New replies have been disabled and if you have follow up questions related to this post, then please start a new thread from the forum home page.
gfortran -O2 -ffree-form -Wall -DHAVE_NF90_INQ_VARIDS -I/home/ubuntu/install_mpas/libraries/include/ -L/home/ubuntu/install_mpas/libraries/lib/ -lnetcdf -lnetcdff -o sdfsd -c scan_input.F
GNU Make 4.0
Built for x86_64-unknown-linux-gnu
Copyright (C) 1988-2013 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
cmake version 3.18.2
CMake suite maintained and supported by Kitware (kitware.com/cmake).
Command 'gmake' not found, but there are 14 similar ones.
( cd src; make FC="gfortran" FFLAGS="-O2 -ffree-form -Wall -DHAVE_NF90_INQ_VARIDS" FCINCLUDES="" FCLIBS="" )
make[1]: Entering directory '/home/ubuntu/convert_mpas/convert_mpas/src'
rm -f scan_input.o scan_input.mod
gfortran -O2 -ffree-form -Wall -DHAVE_NF90_INQ_VARIDS -c scan_input.F
scan_input.F:3:8:
use netcdf
1
Fatal Error: Can't open module file ‘netcdf.mod’ for reading at (1): No such file or directory
compilation terminated.
-I/home/ubuntu/install_mpas/libraries/include/ -L/home/ubuntu/install_mpas/libraries/lib/ -lnetcdf -lnetcdff -o sdfsd
FCINCLUDES = $(shell nc-config --fflags)
FCLIBS = $(shell nc-config --flibs)
FFLAGS = -O2 -ffree-form -Wall -DHAVE_NF90_INQ_VARIDS -I/home/ubuntu/install_mpas/libraries/include/ -L/home/ubuntu/install_mpas/libraries/lib/ -lnetcdf -lnetcdff
FCINCLUDES = $(shell nc-config --fflags)
FCLIBS = $(shell nc-config --flibs)
FFLAGS = -O2 -ffree-form -Wall -DHAVE_NF90_INQ_VARIDS -I/home/ubuntu/install_mpas/libraries/include/ -L/home/ubuntu/install_mpas/libraries/lib/ -lnetcdf -lnetcdff
FFLAGS = -O2 -ffree-form -Wall -DHAVE_NF90_INQ_VARIDS -I/home/ubuntu/install_mpas/libraries/include/ -L/home/ubuntu/install_mpas/libraries/lib/ -lnetcdff -lnetcdf
nc-config --fflags
nc-config --flibs
make >& make.log
nc-config --fflags
-I/datadrive/models/mpas_install/libraries/include
nc-config --flibs
-L/datadrive/models/mpas_install/libraries/lib -lnetcdff -L/datadrive/models/mpas_install/libraries/lib -lnetcdf -lhdf5_hl -lhdf5 -lm -lnetcdf -lhdf5_hl -lhdf5 -lz -ldl
/datadrive/models/mpas_install/libraries/lib/libnetcdf.a(libdispatch_la-derror.o): In function `nc_strerror':
derror.c:(.text+0x46b): undefined reference to `ncmpi_strerror'
derror.c:(.text+0x47a): undefined reference to `ncmpi_strerror'
/datadrive/models/mpas_install/libraries/lib/libnetcdf.a(libdispatch_la-dfile.o): In function `openmagic':
dfile.c:(.text+0x1cd8): undefined reference to `MPI_File_open'
dfile.c:(.text+0x1cf2): undefined reference to `MPI_Error_class'
dfile.c:(.text+0x1d2d): undefined reference to `MPI_File_get_size'
FC = mpif90
FFLAGS = -O2 -ffree-form -Wall -DHAVE_NF90_INQ_VARIDS
FCINCLUDES = $(shell nc-config --fflags)
FCLIBS = $(shell nc-config --flibs) -lpnetcdf