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 Andrew, > I am attempting to build netcdf 4.1.1 using PGI compilers (v. 9.0.3) > using 64-bit on a Mac OS X running Snow Leopard (10.6.4). > > I have tried numerous compiler settings, but the build never makes it > past the "make test" phase. Any help you could provide would be > greatly appreciated! Have you tried the settings recommended by the Portland Group on this web site? http://www.pgroup.com/resources/netcdf/netcdf40_pgi90.htm They claim this works for 32- or 64-bit MacOS-X with the 9.0 versions of the pg compilers. However, the web site above hasn't been updated for the 4.1.1 netCDF version, but claims those settings work for version 4.0.1. I'd try them for 4.1.1 after a "make clean". I hope this helps, because we don't have the PGI compilers installed on MacOS X for testing. --Russ > These are the settings I am using: > ---------------------------------------- > ---------------------------------------- > setenv CC pgcc > setenv FC pgf90 > setenv F90 pgf90 > setenv F95 pgf95 > setenv F77 pgf77 > setenv CXX pgcpp > setenv CPP "pgcpp -E" > setenv CFLAGS " -Msignextend" > setenv CPPFLAGS " -DNDEBUG -DpgiFortran" > setenv CXXFLAGS " " > setenv F90FLAGS " " > setenv FFLAGS " -w" > setenv LDFLAGS " " > > ./configure --prefix=/Users/abpenny/Desktop/new_files/netcdf_pgi64 > --disable-netcdf-4 > ---------------------------------------- > ---------------------------------------- > > and the message I get when the test fails: > > ---------------------------------------- > ---------------------------------------- > /bin/sh ../libtool --tag=CC --mode=link pgcc -Msignextend -lcurl -o > t_nc t_nc-t_nc.o ../libsrc/libnetcdf.la > libtool: link: pgcc -Msignextend -o t_nc t_nc-t_nc.o > ../libsrc/.libs/libnetcdf.a -lcurl > source='t_type.c' object='t_type.o' libtool=no \ > DEPDIR=.deps depmode=none /bin/sh ../depcomp \ > pgcc -DHAVE_CONFIG_H -I. -I.. -I../fortran -DNDEBUG -DpgiFortran > -Msignextend -c -o t_type.o t_type.c > /bin/sh ../libtool --tag=CC --mode=link pgcc -Msignextend -lcurl -o > t_type t_type.o ../libsrc/libnetcdf.la > libtool: link: pgcc -Msignextend -o t_type t_type.o > ../libsrc/.libs/libnetcdf.a -lcurl > make check-TESTS > dimrename: IXX > nc_close ret = 0 > > Could not open test.nc: NetCDF: Unknown file format > FAIL: t_nc > > *** Testing netCDF classic version of nc_inq_type... OK! > PASS: t_type > ================================================ > 1 of 2 tests failed > Please report to address@hidden > ================================================ > make[2]: *** [check-TESTS] Error 1 > make[1]: *** [check-am] Error 2 > make: *** [check-recursive] Error 1 > ---------------------------------------- > ---------------------------------------- > > > > > > Russ Rew UCAR Unidata Program address@hidden http://www.unidata.ucar.edu Ticket Details =================== Ticket ID: LUK-451433 Department: Support netCDF Priority: Normal Status: Closed