NetCDF Compilation Issue

Hi,

I was trying to compile netCDF 4.0.1 on PGI Workstation 10.6 (64-bit) running on Windows server 2008 as per the instructions given in here. The configure script took lot of time, but it created the make file. I then moved on to step 5 and tried to build it using make. Then I got the following error. I really appreciate if someone can shed some light to fix this issue.

Complete Config Log: http://www.cs.indiana.edu/~echintha/wrf/config.log
Complete Make Log: http://www.cs.indiana.edu/~echintha/wrf/make.log


/bin/sh …/libtool --tag=CC --mode=compile pgCC -DHAVE_CONFIG_H -I. -I… -I…/libsrc -DpgiFortran -O2 -c -o fort-varsio.lo fort-varsio.c
libtool: compile: pgCC -DHAVE_CONFIG_H -I. -I… -I…/libsrc -DpgiFortran -O2 -c fort-varsio.c -o fort-varsio.o
/bin/sh …/libtool --tag=CC --mode=link pgCC -O2 -o libnetcdff.la fort-attio.lo fort-control.lo fort-dim.lo fort-genatt.lo fort-geninq.lo fort-genvar.lo fort-lib.lo fort-misc.lo fort-v2compat.lo fort-vario.lo fort-var1io.lo fort-varaio.lo fort-varmio.lo fort-varsio.lo …/f90/libnetcdff90.la
libtool: link: (cd .libs/libnetcdff.lax/libnetcdff90.lib && ar x “/e/Scratch_For_Eran/netcdf-4.0.1/fortran/…/f90/.libs/libnetcdff90.lib”)
ar-Error-/e/Scratch_For_Eran/netcdf-4.0.1/fortran/…/f90/.libs/libnetcdff90.lib not found

make[3]: *** [libnetcdff.la] Error 1
make[3]: Leaving directory /e/Scratch_For_Eran/netcdf-4.0.1/fortran' make[2]: *** [all] Error 2 make[2]: Leaving directory /e/Scratch_For_Eran/netcdf-4.0.1/fortran’
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/e/Scratch_For_Eran/netcdf-4.0.1’
make: *** [all] Error 2
[/url]

Is this for linux? Did you get the right package? It looks like you configure it for win32 or your system is win32.


configure: netCDF 4.0.1
checking build system type… i686-pc-cygwin
checking host system type… i686-pc-cygwin

Hongyon

I’m trying to compile this on Windows server 2008.

Hi Eran,

The NetCDF build instructions are for Linux and Mac. For Windows, I wrote a guide on building WRF which includes how to build NetCDF. Account Login | PGI NetCDF requires a few changes.

Note that UCAR has updated WRF 3.2 with the changes I suggested in this article. Hence you should continue using their updated instructions when building WRF.

Hope this helps,
Mat