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 Jim, > I am trying to configure the netCDF FORTRAN 4.4.2 libraries using the > Lahey/Fujitsu FORTRAN L8.10b (lf95) compiler and it is failing. It > configures, builds, and installs fine with gfortran, but I am required to > use lf95 for my production application. > > I tried it without any special flags, with different combinations of listed > option arguments, and with a non-standard argument that I found from > examining the configure script, but there was eventual failure in all cases . I forwarded your question to Richard Weed, the developer of the F2003 and F2008 extensions, and here's what he said: Took a look at the Lahey web site. It appears to be out of date. They have two products. One is a reworking of gfortran, the other is the Fujitsu compiler. As best as I can make out from the info on the web site the Fujitsu compiler does not support ISO_C_BINDING (the gfortran is 4.9 so it does) so the question is why did the configure scripts think that it does support F2003. They do have a trial version you can download for both Linux and Windows. We don't have a Lahey compiler, but might be able to figure out what's going on by downloading a trial version, but I can't commit to getting that done before I officially retire at the end of this month ... It may be possible to just hard-wire the ISO_C_BINDING test in the configure script (or the configure.in input from which it's generated by autoconf) to return false for F2003 support for just the Fujitsu compiler, as a workaround for whatever the problem with the test is. --Russ > Here's a summary of the different cases and their results (I've attached a > config.log file for each case): > > - ./configure --prefix=Target --libdir=Target/lib/lahey > --program-suffix="_l" FC=lf95 CPPFLAGS=-ITarget/include > LDFLAGS=-LTarget/lib LD_LIBRARY_PATH=Target/lib > - error: Can't use build F03 interfaces and cannot do compiler recovery > (details in config_plain.log) > - ./configure ... --disable-f03 > - error: Can't use build F03 interfaces and cannot do compiler > recovery (details in config_nof03.log) > - ./configure ... --disable-f03-compiler-check > - success, but on make all it fails because the module > 'ISO_C_BINDING' is not available in file module_netcdf_nc_data.F90. > (details in config_no_f03_compiler_check.log and > make_no_f03_compiler_check.log) > - ./configure ... --disable-f03-compiler-check --disable-f03 > - success, but on make all it fails because the module > 'ISO_C_BINDING' is not available in file module_netcdf_nc_data.F90. > (details in config_no_f03_both.log and make_no_f03_both.log) > - ./configure ... --enable-compiler-recover=yes > - success, but with the interesting warning that the option was not > recognized, even though it was. On make all it fails because the module > 'ISO_C_BINDING' is not available in file module_netcdf_nc_data.F90. > (details in config_enable_compiler_recover.log and > make_compiler_recover.log) > - ./configure ... --enable-compiler-recover=yes --enable-f03=no > - success, but the make fails. The results are identical to the > previous case, so no new log files are provided. > > It appears that no matter what I do, the make sequence attempts to compile > FORTRAN 2003 code. > > Grace and peace, > > Jim > [image: CICS-NC] <https://www.cicsnc.org/>Visit us on > Facebook <http://www.facebook.com/cicsnc>*Jim Biard* > *Research Scholar* > Cooperative Institute for Climate and Satellites NC <http://cicsnc.org/> > North Carolina State University <http://ncsu.edu/> > NOAA National Centers for Environmental Information <http://ncdc.noaa.gov/> > *formerly NOAA’s National Climatic Data Center* > 151 Patton Ave, Asheville, NC 28801 > e: address@hidden > o: +1 828 271 4900 > > *Connect with us on Facebook for climate > <http://www.facebook.com/NOAANCEIclimate> and ocean and geophysics > <http://www.facebook.com/NOAANCEIoceangeo> information, and follow us on > Twitter at @NOAANCEIclimate > <http://www.twitter.com/NOAANCEIclimate>and @NOAANCEIocngeo > <http://www.twitter.com/NOAANCEIocngeo>.* > > Russ Rew UCAR Unidata Program address@hidden http://www.unidata.ucar.edu Ticket Details =================== Ticket ID: EQK-707978 Department: Support netCDF Priority: Normal Status: Closed