Hi,
You are using a very old version of GNU (V4.8.5). Since GNU is a free compiler, can you update to a newer version and try this again? You'll need to make sure to reinstall all of the libraries (e.g., MPI and netCDF) using the new compiler, as well. Then make sure to issue a "clean -a" and reconfigure before recompiling the code.