This archive contains answers to questions sent to Unidata support through mid-2025. Note that the archive is no longer being updated. We provide the archive for reference; many of the answers presented here remain technically correct, even if somewhat outdated. For the most up-to-date information on the use of NSF Unidata software and data services, please consult the Software Documentation first.
Hi Anne, We have output from a successful build of netCDF 3.6.2 on AIX using xlf for the Fortran compiler here: http://www.unidata.ucar.edu/software/netcdf/builds/zasu_AIX_netcdf-3.6.2_2007-03-05-10-44.txt which shows xlf was invoked in the following way: xlf -DHAVE_CONFIG_H -I. -I. -I.. -I../fortran -I../libsrc -I../f90 -g -c -o test_get.o test_get.F with no "-DpgiFortran" flag, as in your output. I suspect you may have had the environment variables FFLAGS defined with "-DpgiFortran" before invoking configure. Otherwise, I can't explain why that option appeared on the xlf invocation in your build. I think it would be incorrect to specify -DpgiFortran with the xlf compiler, because it uses different conventions for calling C from Fortran programs than the Portland Group compilers. To confirm this was the problem, you might try building without FFLAGS defined to see if it completes successfully. --Russ Russ Rew UCAR Unidata Program address@hidden http://www.unidata.ucar.edu Ticket Details =================== Ticket ID: CXW-877910 Department: Support netCDF Priority: High Status: Closed