[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
20040105: Problems installing netcdf on Mac OSX
- Subject: 20040105: Problems installing netcdf on Mac OSX
- Date: Mon, 05 Jan 2004 09:10:23 -0700
Don,
> To: address@hidden
> From: Don Spong <address@hidden>
> Subject: Problems installing netcdf on Mac OSX
> Organization: ORNL
> Keywords: 200401050423.i054NWp2005410 netCDF MacOS-X IBM XLF
The above message contained the following:
> I'm trying to install netcdf on my Mac OS X system and am running
> into some errors in the make step. I am trying to get netcdf to use
> IBM's xlf fortran compiler which has been ported to Mac OSX and which
> I have successfully tested on other code.
We've had some reports of problems building the netCDF package on a
MacOS-X system using the xlf(1) compiler. Unfortunately, we don't have
that platform here so what I'll suggest is based on reports from others.
> A. uname -a gives:
>
> Darwin Don-Spongs-Computer.local 7.2.0 Darwin Kernel Version 7.2.0:
> Thu Dec 11 16:20:23 PST 2003; root:xnu/xnu-517.3.7.obj~1/RELEASE_PPC
> Power Macintosh powerpc
>
> B. VERSION has 3.5.0 in it
>
> C. Pathnames of C, C++, fortran and fortran90 compilers:
>
> /usr/bin/cc
> /usr/bin/c++
> /Applications/opt/ibmcmp/xlf/8.1/bin/xlf
> /Applications/opt/ibmcmp/xlf/8.1/bin/xlf90
>
> D. Contents of configure.log:
>
> creating cache ./config.cache
> checking for top-level source-directory
> /Users/spongda/Desktop/netcdf-3-1.5.0/src
> checking for m4 preprocessor
> checking for m4... m4
> checking m4 flags...
> checking C compiler "/usr/bin/cc"... works
> checking how to make dependencies... false
> checking for /usr/bin/c++... /usr/bin/c++
> checking C++ compiler "/usr/bin/c++"... works
> checking how to run the C preprocessor... /usr/bin/cc -E
> checking user-defined Fortran-77 compiler
> "/Applications/opt/ibmcmp/xlf/8.1/bin/xlf"... works
> checking for Fortran .F compiler...
> checking if Fortran-77 compiler handles *.F files... yes
> checking user-defined Fortran-90 compiler
> "/Applications/opt/ibmcmp/xlf/8.1/bin/xlf90"... works
> checking for nm utility
> checking for nm... nm
> checking nm flags...
> checking for C-equivalent to Fortran routine "SUB"... sub
> checking for Fortran "byte"... yes
> checking for Fortran "integer*2"... yes
> checking if Fortran "byte" is C "signed char"... yes
> checking if Fortran "byte" is C "short"... no
> checking if Fortran "byte" is C "int"... no
> checking if Fortran "byte" is C "long"... no
> checking if Fortran "integer*2" is C "short"... yes
> checking if Fortran "integer*2" is C "int"... no
> checking if Fortran "integer*2" is C "long"... no
> checking if Fortran "integer" is C "int"... yes
> checking if Fortran "real" is C "float"... yes
> checking if Fortran "doubleprecision" is C "double"... yes
> checking for Fortran-equivalent to netCDF "byte"... byte
> checking for Fortran-equivalent to netCDF "short"... integer*2
> checking for math library
> checking for tanh in -lc... yes
> checking for ar utility
> checking for ar... ar
> checking ar flags... cru
> checking for nm utility
> checking for nm... (cached) nm
> checking nm flags...
> checking for ranlib... ranlib
> checking for stdlib.h... yes
> checking for sys/types.h... yes
> checking for strerror... yes
> checking for working ftruncate()... yes
> checking for working alloca.h... yes
> checking for alloca... yes
> checking for st_blksize in struct stat... yes
> checking for IEEE floating point format... yes
> checking for ANSI C header files... yes
> checking for size_t... yes
> checking for off_t... yes
> checking for ssize_t... yes
> checking for ptrdiff_t... yes
> checking for uchar... no
> checking whether char is unsigned... no
> checking whether byte ordering is bigendian... yes
> checking size of short... 2
> checking size of int... 4
> checking size of long... 4
> checking size of float... 4
> checking size of double... 8
> checking size of off_t... 8
> checking size of size_t... 4
> checking for catman... catman
> checking for manual-page index command... catman -w -M $(MANDIR)
> checking binary distribution directory... /home/ftp/pub/binary/dummy_system
> updating cache ./config.cache
> creating ./config.status
> creating macros.make
> udcreating fortran/nfconfig.inc
> creating libsrc/ncconfig.h
...
> F. Contents of make.log:
>
>
> Making `all' in directory /Users/spongda/Desktop/netcdf-3-1.5.0/src/fortran
>
> /usr/bin/cc -c -O -I../libsrc fort-attio.c
>
>
> Making `all' in directory /Users/spongda/Desktop/netcdf-3-1.5.0/src/libsrc
>
> ar cru libnetcdf.a attr.o dim.o error.o libvers.o nc.o ncio.o ncx.o
> putget.o string.o v1hpg.o v2i.o var.o
> ranlib libnetcdf.a
>
> Returning to directory /Users/spongda/Desktop/netcdf-3-1.5.0/src
>
>
> Making `all' in directory /Users/spongda/Desktop/netcdf-3-1.5.0/src/fortran
>
> /usr/bin/cc -c -O -I../libsrc fort-attio.c
> In file included from ncfortran.h:13,
> from fort-attio.c:6:
> cfortran.h:134:3: #error "cfortran.h: Can't find your environment
> among: - MIPS cc and f77 2.0. (e.g. Silicon Graphics, DECstations,
> ...) - IBM AIX XL C and FORTRAN Compiler/6000 Version
> 01.01.0000.0000 - VAX VMS CC 3.1 and FORTRAN 5.4.
> - Alpha VMS DEC C 1.3 and DEC FORTRAN 6.0.
> - Alpha OSF DEC C and DEC Fortran for OSF/1 AXP Version 1.2
> - Apollo DomainOS 10.2 (sys5.3) with f77 10.7 and cc 6.7.
> - CRAY
> - NEC SX-4 SUPER-UX
> - CONVEX
> - Sun
> - PowerStation Fortran with Visual C++
> - HP9000s300/s700/s800 Latest test with: HP-UX A.08.07 A 9000/730
> - LynxOS: cc or gcc with f2c.
> - VAXUltrix: vcc,cc or gcc with f2c. gcc or cc with f77.
> - f77 with vcc works; but missing link magic for f77 I/O.
> - NO fort. None of gcc, cc or vcc generate required names.
> - f2c : Use #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"
> make[2]: *** [fort-attio.o] Error 1
> make[1]: *** [subdir_target] Error 1
> make: *** [fortran/all] Error 2
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 following environment variables contain the
indicated strings:
Environment Variable String
-------------------- --------------
CPPFLAGS -DIBMR2Fortran
F90FLAGS -qsuffix=f=f90
How this is done depends on your user-shell. The file
INSTALL.html contains examples.
4. Perform steps 6 through 9 described near the end of the file
INSTALL.html.
Please let me know what you discover.
> Donald A. Spong, Fusion Energy Theory, ORNL
> **NOTE ADDRESS CHANGE**: P. O. Box 2008, Bldg. 5700, Room R-F312
> Oak Ridge, Tennessee 37831-6169
> Phone: (865) 574-1304 FAX: (865) 576-7926 E-mail: address@hidden
> web page: http://www.ornl.gov/fed/Theory/stci/stellarator_theory.html
Regards,
Steve Emmerson