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.
Sasi, >Date: Sat, 24 Jan 2004 02:11:57 -0500 >From: "address@hidden" <address@hidden> >Organization: UCAR/Unidata >To: address@hidden >Subject: Re: 20031229: Compiling NetCDF on SGI Altix >Keywords: netCDF SGI Linux Altrix The above message contained the following: > Sorry for getting back to you so late=2E The machine on which I was > workin= g was down, and it was unavailable till yesterday=2E And hey, > this is a real= ly long mail=2E=2E=2E!!!! > > I have again ran the configure and make, with all the report files, and > please find them below: > > The compiler version I used was Intel C and Fortran compilers version 7=2E= > 0=2E > > 1=2E uname -a Output : Linux altix 2=2E4=2E21-sgi230r7 #1 SMP Tue Oct 7 22= > :38:53 > PDT 2003 ia64 unknown ... > Making `all' in directory /iisc_caos/netcdf-3=2E5=2E0/src/fortran > > make[2]: Entering directory `/iisc_caos/netcdf-3=2E5=2E0/src/fortran' > /opt/intel/compiler70/ia64/bin/ecc -c -O -mp -I=2E=2E/libsrc -DNDEBUG > fort-attio=2Ec > cfortran=2Eh(135): catastrophic error: #error directive: "cfortran=2Eh: C= > an't > find your environment among: - MIPS cc and f77 2=2E0=2E (e=2Eg=2E Silic= > on > Graphics, DECstations, =2E=2E=2E) - IBM AIX XL C and FORTRAN > Compiler/6000 Version 01=2E01=2E0000=2E0000 - VAX VMS CC 3=2E1 a= > nd > FORTRAN 5=2E4=2E - Alpha VMS DEC C 1=2E= > 3 and > DEC FORTRAN 6=2E0=2E - Alpha OSF DEC C and D= > EC > Fortran for OSF/1 AXP Version 1=2E2 - Apollo DomainOS 10=2E2 > (sys5=2E3) with f77 10=2E7 and cc 6=2E7=2E - CRAY= > =20 > - NEC SX-4 SUPER-UX -= > > CONVEX - > Sun - > PowerStation Fortran with Visual C++ - > HP9000s300/s700/s800 Latest test with: HP-UX A=2E08=2E07 A 9000/730 = > - > LynxOS: cc or gcc with f2c=2E = > =20 > - VAXUltrix: vcc,cc or gcc with f2c=2E gcc or cc with f77=2E = > -=20 > f77 with vcc works; but missing link magic for f77 I/O=2E - = > NO > fort=2E None of gcc, cc or vcc generate required names=2E - f2c : Us= > e > #define f2cFortran, or cc -Df2cFortran - NAG f90: Use > #define NAGf90Fortran, or cc -DNAGf90Fortran - Absoft UNIX > F77: Use #define AbsoftUNIXFortran or > cc -DAbsoftUNIXFortran - Absoft Pro Fortran: Use #define > AbsoftProFortran - Portland Group Fortran: Use #define pgiFortran" > #error "cfortran=2Eh: Can't find your environment among:\ > ^ The above occurs because the C compiler doesn't know what type of calling conventions to use for C functions that are intended to be called by Fortran routines. After searching our support-email database for "efc" and the "other builds" instructions at http://my.unidata.ucar.edu/content/software/netcdf/other-builds.html I belive you should try 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 CPPFLAGS contains the string "-DpgiFortran", e.g., export CPPFLAGS=-DpgiFortran or setenv CPPFLAGS -DpgiFortran depending on your user-shell. 4. Perform steps 6 through 9 described near the end of the file INSTALL.html. Please let me know if this helps. Regards, Steve Emmerson