I'm attempting to run "make" on grid_rotate on Derecho, and am getting the following output and error:
For reference, I have the following modules loaded:
/glade/u/apps/common/23.04/spack/opt/spack/intel-oneapi-compilers/2023.0.0/compiler/latest/linux/bin/intel64/ifort grid_rotate.f90 -o grid_rotate -O3 -I/glade/u/apps/derecho/23.06/spack/opt/spack/netcdf/4.9.2/packages/netcdf-fortran/4.6.0/oneapi/2023.0.0/amlu/include -I/glade/u/apps/derecho/23.06/spack/opt/spack/netcdf/4.9.2/packages/netcdf-fortran/4.6.0/oneapi/2023.0.0/amlu/include -L/glade/u/apps/derecho/23.06/spack/opt/spack/netcdf/4.9.2/packages/netcdf-fortran/4.6.0/oneapi/2023.0.0/amlu/lib -lnetcdff -lnetcdf -lnetcdf -lm
/usr/lib64/gcc/x86_64-suse-linux/7/../../../../x86_64-suse-linux/bin/ld: cannot find -lnetcdf
/usr/lib64/gcc/x86_64-suse-linux/7/../../../../x86_64-suse-linux/bin/ld: cannot find -lnetcdf
make: *** [Makefile:9: grid_rotate] Error 1
For reference, I have the following modules loaded:
Currently Loaded Modules:
1) ncarenv/23.06 (S) 3) intel/2023.0.0 5) cray-mpich/8.1.25 7) hdf5/1.12.2
2) craype/2.7.20 4) ncarcompilers/1.0.0 6) parallel-netcdf/1.12.3 8) netcdf/4.9.2