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.
Stephen,
> To: Unidata <address@hidden>
> From: Stephen Leroy <address@hidden>
> Subject: Problem with Absoft8.0 on Mac OS X
> Organization: NASA/JPL
> Keywords: netCDF 3.5.0 MacOS
The above message contained the following:
> I am having problems building fortran applications on a Mac OS X system
> with netcdf 3.5.0. I have added the patch to cfortran.h and set
> environment variables, within configure, as suggested. Linking to
> netcdf, though, still doesn't work. Might it have something to do with
> the fact I'm using Absoft 8.0 compiler instead of 7.0?
The file "configure.log" contained the following error message:
checking user-defined Fortran-77 compiler "/Applications/Absoft/bin/f90"...
Error: bad option: --YEXT_NAMES=LCS
Unfortunately, the file "config.log" didn't contain the standard error
output from the compilation command:
configure:1383: checking user-defined Fortran-77 compiler
"/Applications/Absoft/bin/f90"
configure:1389: /Applications/Absoft/bin/f90 -c --YEXT_NAMES=LCS
-YEXT_SFX=_ -YCFRL=1 conftest.f
configure:1548: checking for Fortran .F compiler
so the reason for the error is unclear. It appears, however, that the
Absoft 8.0 Fortran compiler doesn't understand the "--YEXT_NAMES=LCS"
option, whereas the Absoft Pro Fortran 7.0 compiler mentioned in the
on-line documentation does.
I suggest the following:
1. Go to the top-level source directory.
2. Perform steps 3 through 5 described near the end of the file
INSTALL.html.
3. Ensure that the environment variable FFLAGS does NOT contain the
"--YEXT_NAMES=LCS" option.
4. Perform steps 6 through 9 described near the end of the file
INSTALL.html. Be sure that you redirect BOTH standard output
AND standard error to the log files.
Please let me know if this helps.
Regards,
Steve Emmerson