Problem with MCIP making

In my use of pgi compiler compilation MCIP when the following error, please ask what is going on, I checked the path, netcdf folder netcdf.mod file exists, please ask me how to solve, thank you!Here’s what I’m reporting as an error:
make[1]: Entering directory /public/home/ecichm/liuc/tools/CMAQ-5.3/PREP/mcip/src' pgf90 -O4 -fastsse -pc 32 -Mfree -byteswapio -I/public/home/ecichm/weihua/lib/netcdf4.5pgi/include -I/public/home/ecichm/weihua/lib/ioapi-3.1.pgi/Linux2_x86_64pg_gcc_nomp -c const_mod.f90 pgf90 -O4 -fastsse -pc 32 -Mfree -byteswapio -I/public/home/ecichm/weihua/lib/netcdf4.5pgi/include -I/public/home/ecichm/weihua/lib/ioapi-3.1.pgi/Linux2_x86_64pg_gcc_nomp -c const_pbl_mod.f90 pgf90 -O4 -fastsse -pc 32 -Mfree -byteswapio -I/public/home/ecichm/weihua/lib/netcdf4.5pgi/include -I/public/home/ecichm/weihua/lib/ioapi-3.1.pgi/Linux2_x86_64pg_gcc_nomp -c coord_mod.f90 pgf90 -O4 -fastsse -pc 32 -Mfree -byteswapio -I/public/home/ecichm/weihua/lib/netcdf4.5pgi/include -I/public/home/ecichm/weihua/lib/ioapi-3.1.pgi/Linux2_x86_64pg_gcc_nomp -c ctmvars_mod.f90 pgf90 -O4 -fastsse -pc 32 -Mfree -byteswapio -I/public/home/ecichm/weihua/lib/netcdf4.5pgi/include -I/public/home/ecichm/weihua/lib/ioapi-3.1.pgi/Linux2_x86_64pg_gcc_nomp -c date_time_mod.f90 pgf90 -O4 -fastsse -pc 32 -Mfree -byteswapio -I/public/home/ecichm/weihua/lib/netcdf4.5pgi/include -I/public/home/ecichm/weihua/lib/ioapi-3.1.pgi/Linux2_x86_64pg_gcc_nomp -c date_pack_mod.f90 pgf90 -O4 -fastsse -pc 32 -Mfree -byteswapio -I/public/home/ecichm/weihua/lib/netcdf4.5pgi/include -I/public/home/ecichm/weihua/lib/ioapi-3.1.pgi/Linux2_x86_64pg_gcc_nomp -c files_mod.f90 pgf90 -O4 -fastsse -pc 32 -Mfree -byteswapio -I/public/home/ecichm/weihua/lib/netcdf4.5pgi/include -I/public/home/ecichm/weihua/lib/ioapi-3.1.pgi/Linux2_x86_64pg_gcc_nomp -c lucats_mod.f90 pgf90 -O4 -fastsse -pc 32 -Mfree -byteswapio -I/public/home/ecichm/weihua/lib/netcdf4.5pgi/include -I/public/home/ecichm/weihua/lib/ioapi-3.1.pgi/Linux2_x86_64pg_gcc_nomp -c mcipparm_mod.f90 pgf90 -O4 -fastsse -pc 32 -Mfree -byteswapio -I/public/home/ecichm/weihua/lib/netcdf4.5pgi/include -I/public/home/ecichm/weihua/lib/ioapi-3.1.pgi/Linux2_x86_64pg_gcc_nomp -c metinfo_mod.f90 pgf90 -O4 -fastsse -pc 32 -Mfree -byteswapio -I/public/home/ecichm/weihua/lib/netcdf4.5pgi/include -I/public/home/ecichm/weihua/lib/ioapi-3.1.pgi/Linux2_x86_64pg_gcc_nomp -c metvars_mod.f90 pgf90 -O4 -fastsse -pc 32 -Mfree -byteswapio -I/public/home/ecichm/weihua/lib/netcdf4.5pgi/include -I/public/home/ecichm/weihua/lib/ioapi-3.1.pgi/Linux2_x86_64pg_gcc_nomp -c netcdf_io_mod.f90 PGF90-F-0004-Corrupt or Old Module file /public/home/ecichm/weihua/lib/netcdf4.5pgi/include/netcdf.mod (netcdf_io_mod.f90: 67) PGF90/x86-64 Linux 10.6-0: compilation aborted make[1]: *** [netcdf_io_mod.o] Error 2 make[1]: Leaving directory /public/home/ecichm/liuc/tools/CMAQ-5.3/PREP/mcip/src’
make: *** [all] Error 2

This typically means that the module file, in this case “netcdf.mod”, was built with a different compiler version. You’ll need to rebuild NetCDF with the same compiler to get it match.

Note that the compiler version you’re using is about 15 years old. There may be reasons why you need this, but you might want to consider updating to a more recent version.

PGI was rebranded to be the NVHPC compilers several years ago and can be downloaded without cost as part of the NVHPC SDK from: NVIDIA HPC SDK Current Release Downloads | NVIDIA Developer

Thank you for your reply. I have used this netcdf and its compiled ioapi library to compile Megan3.2 successfully, and the process did not produce any error report.Why in the compilation of mcip this problem occurs? Is it related to the version of mcip?

No, it’s not related to the version of mcip. Fortran modules, like netcdf.mod, are not compatible between different compilers and may not be compatible between different versions of the same compiler. Hence, they may need to be rebuilt in order to get them to match the compiler you’re using to build mcip.

Thanks for the suggestion, I have successfully solved it after recompiling netcdf as well as ioapi.