[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[netCDF #WBQ-922854]: building netcdf 4.1.3 on OS X 10.7 using nagfor



Hi Tim,

Sorry to take so long to respond to your question.  A later question
you sent makes me think you got around this problem somehow, so I'm
wondering if we can close this.  I know the 4.1.3 configure ignores the
--with-szlib= option, but I would have thought including the library in
LDFLAGS would have told configure where to find the library.

--Russ

> I tried to compile netcdf 4.1.3 on my MacBook and got an unexpected
> error-message out of the make.
> 
> What I did:
> 
> I configured using nag and Apple's gcc and linking to compiled versions
> of hdf5 and szlib
> 
> configure --prefix=/sw/lion/netcdf-4.1.3_nag52.711 FC=nagfor
> CPPFLAGS="-DNAGf90Fortran -I/sw/lion/hdf5-1.8.7_nag52.711/include
> -I/usr/include -I/sw/lion/szip-2.1_nag52.711/include "
> LDFLAGS="-L/sw/lion/hdf5-1.8.7_nag52.711/lib -L/usr/ 
> -L/sw/lion/szip-2.1_nag52.711/lib  " LIBS="-lsz -lz -lm" --disable-shared 
> --enable-netcdf-4 --enable-f77 --enable-f90 --disable-cxx-4 
> --enable-separate-fortran --disable-hdf4 
> --with-szlib=/sw/lion/szip-2.1_nag52.711/ 
> --with-hdf5=/sw/lion/hdf5-1.8.7_nag52.711/ --with-zlib=/usr/ --disable-dap 
> --with-libcf LD=/usr/bin/ld
> 
> which was working fine.
> 
> 
> Within the make I got the error message:
> 
> /bin/sh ../libtool --tag=CC   --mode=link gcc  -g -O2
> -L/sw/lion/hdf5-1.8.7_nag52.711/lib -L/usr/
> -L/sw/lion/szip-2.1_nag52.711/lib   -o libdispatch.la
> libdispatch_la-parallel.lo libdispatch_la-copy.lo libdispatch_la-file.lo
> libdispatch_la-dim.lo libdispatch_la-att.lo libdispatch_la-error.lo
> libdispatch_la-var.lo libdispatch_la-dispatch.lo
> libdispatch_la-nc_uri.lo libdispatch_la-nclist.lo
> libdispatch_la-ncbytes.lo libdispatch_la-nchashmap.lo
> libdispatch_la-nclog.lo libdispatch_la-nc4.lo  -lhdf5_hl -lhdf5 -lm -lcurl 
> -lsz -lz -lm
> grep: /sw/src/NAG/szip-2.1/szip/lib/libsz.la: No such file or directory
> sed: /sw/src/NAG/szip-2.1/szip/lib/libsz.la: No such file or directory
> libtool: link: `/sw/src/NAG/szip-2.1/szip/lib/libsz.la' is not a valid
> libtool archive
> make[2]: *** [libdispatch.la] Error 1
> make[2]: *** Waiting for unfinished jobs....
> mv -f .deps/libnetcdf2_la-v2i.Tpo .deps/libnetcdf2_la-v2i.Plo
> make[1]: *** [all-recursive] Error 1
> make: *** [all] Error 2
> 
> 
> Well, this is right as this dir does not exist…. but I configured
> using:
> --with-szlib=/sw/lion/szip-2.1_nag52.711/
> 
> and:
> LDFLAGS="-L/sw/lion/hdf5-1.8.7_nag52.711/lib -L/usr/ 
> -L/sw/lion/szip-2.1_nag52.711/lib "
> 
> so, the dir "szip-2.1/szip/lib/" was not mentioned.
> Do you have an idea ?
> 
> best regards and thanks in advance,
> 
> Tim
> 
> 
> --
> Dr. Tim Bruecher
> Research Group Climate-Biogeosphere Interactions
> Max Planck Institute for Meteorology
> Bundesstraße 53, 20146 Hamburg, Germany
> @: address@hidden
> W: http://www.mpimet.mpg.de/~bruecher.tim     www.mpimet.mpg.de
> 
> 

Russ Rew                                         UCAR Unidata Program
address@hidden                      http://www.unidata.ucar.edu



Ticket Details
===================
Ticket ID: WBQ-922854
Department: Support netCDF
Priority: Normal
Status: Closed