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.
Cara-Lyn, >Date: Tue, 2 Nov 2004 14:04:12 -0700 >From: Cara-Lyn Lappen <address@hidden> >Organization: Colorado State University >To: Steve Emmerson <address@hidden> >Subject: Re: 20041102: netcdf compilation error on linux using PGI Fortran >Keywords: 200411021745.iA2HjqvV020011 netCDF PDI The above message contained the following: > ok, try this config.log file: ... > configure:1475: checking for f77 > configure:1516: f77 -c conftest.f > configure:1548: checking for Fortran .F compiler > configure:1558: checking if Fortran-77 compiler handles *.F files > configure:1569: f77 -o conftest conftest.F > configure:1638: checking "f77" as Fortran-90 compiler > configure:1640: f77 -o conftest conftest.f90 > /usr/bin/ld:conftest.f90: file format not recognized; treating as linker > script > /usr/bin/ld:conftest.f90:1: syntax error > collect2: ld returned 1 exit status ... The above indicates that the configure script did not attempt to use the Fortran compilers that you wanted to use. It is likely that the environment variables FC and F90 were not correctly set before the configure script was executed. (ASIDE: this also appears to be the case with the C compiler as I noticed you mentioned gcc(1) but that the configure script used c89(1) instead.) What user-shell are you using (e.g., bash(1), csh(1))? Regards, Steve Emmerson