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

[netCDF #CZA-818826]: regarding netcdf-4.3.3.1 build failure



The first thing you need to do is to rebuild hdf4 with the --disable-netcdf
flag. Below you appear to be building with --enable-netcdf, which is a known
cause of failures.


> Dear Sir,
> I am facing errors while trying to build netcdf-4.3.3.1 with hdf4 &
> parallel support!.
> i had configured using:-
> 
> 
> 
> *LD_LIBRARY_PATH=/root/Downloads/COMMON/lib/:$LD_LIBRARY_PATH CC=mpicc
> CFLAGS="-fPIC" LDFLAGS="-L/root/Downloads/COMMON/lib  -lhdf5_fortran
> -lhdf5_hl -lhdf5hl_fortran  -lhdf5 -lmfhdf -ldf -lsz -lz -ljpeg "
> CPPFLAGS="-I/root/Downloads/COMMON/include" ./configure
> --prefix="/root/Downloads/COMMON" --enable-netcdf-4 --enable-hdf4
> --enable-pnetcdf --enable-parallel-tests *
> i am getting :
> 
> checking for H5Z_SZIP... yes
> checking whether parallel I/O features are to be included... yes
> checking for library containing SZ_Compress... none required
> checking mfhdf.h usability... yes
> checking mfhdf.h presence... yes
> checking for mfhdf.h... yes
> checking for Hclose in -ldf... no
> configure: error: Can't find or link to the hdf4 df library. See config.log
> for errors.
> 
> My contents of COMMON/lib are :-
> 
> ls /root/Downloads/COMMON/lib/
> *libdf.a  *           libhdf5_fortran.so.10
> libhdf5hl_fortran.so.10.0.0  libhdf5.so         libsz.la
> libz.so.1.2.8
> *libdf.la <http://libdf.la> *           libhdf5_fortran.so.10.0.0
> libhdf5_hl.la                libhdf5.so.10      libsz.so        pkgconfig
> libhdf4.settings    libhdf5_hl.a               libhdf5_hl.so
> libhdf5.so.10.0.0  libsz.so.2
> libhdf5.a           libhdf5hl_fortran.a        libhdf5_hl.so.10
> libjpeg.a          libsz.so.2.0.0
> libhdf5_fortran.a   libhdf5hl_fortran.la       libhdf5_hl.so.10.0.0
> libmfhdf.a         libz.a
> libhdf5_fortran.la  libhdf5hl_fortran.so       libhdf5.la
> libmfhdf.la        libz.so
> libhdf5_fortran.so  libhdf5hl_fortran.so.10    libhdf5.settings
> libsz.a            libz.so.1
> 
> attached log:  *config_hdf4_1.log*
> 
> also i tried omitting the *--enable-hdf4* :
> * LD_LIBRARY_PATH=/root/Downloads/COMMON/lib/:$LD_LIBRARY_PATH CC=mpicc
> CFLAGS="-fPIC" LDFLAGS="-L/root/Downloads/COMMON/lib  -lhdf5_fortran
> -lhdf5_hl -lhdf5hl_fortran  -lhdf5 -lmfhdf -ldf -lsz -lz -ljpeg "
> CPPFLAGS="-I/root/Downloads/COMMON/include" ./configure
> --prefix="/root/Downloads/COMMON" --enable-netcdf-4 --enable-pnetcdf*
> 
> now i end up with :
> 
> checking for library containing H5Fflush... none required
> checking for library containing H5DSis_scale... none required
> checking hdf5.h usability... yes
> checking hdf5.h presence... yes
> checking for hdf5.h... yes
> checking for H5Pget_fapl_mpiposix... no
> checking for H5Pget_fapl_mpio... yes
> checking for H5Pset_deflate... yes
> checking for H5Z_SZIP... yes
> checking whether parallel I/O features are to be included... yes
> checking for library containing SZ_Compress... none required
> checking for ncmpi_create in -lpnetcdf... no
> configure: error: Cannot link to pnetcdf library, yet --enable-pnetcdf was
> used.
> 
> attached log: *par_config.log*.
> 
> So, if i keep only --enable-netcdf-4 flag , the *configure* ,*make* &* make
> install* succeeds.
> 
> My objective if to build netcdf with parallel & hdf4 support !
> Where am i going wrong here ? Any hint/help in this regard will be very
> fruitful to me.
> 
> 
> *P.S.*
> I had installed HDF5 using following configuration:
> * LD_LIBRARY_PATH=/root/Downloads/COMMON/lib/:$LD_LIBRARY_PATH CC=mpicc
> FC=mpifort CXX=mpicxx CFLAGS="-fPIC"
> LDFLAGS="-L/root/Downloads/COMMON/lib/" LIBS="-lsz -lz -ljpeg"
> CPPFLAGS="-I/root/Downloads/COMMON/include"  FCFLAGS="-fPIC"   ./configure
> --prefix=/root/Downloads/COMMON/ --with-zlib=/root/Downloads/COMMON
> --with-szlib=/root/Downloads/COMMON --enable-fortran  --enable-parallel*
> 
> and hdf4 via :
> *LD_LIBRARY_PATH=/root/Downloads/COMMON/lib:$LD_LIBRARY_PATH CC="gcc"
> CFLAGS="-fPIC" LDFLAGS="-L/root/Downloads/COMMON/lib -lsz -lz -ljpeg"
> CPPFLAGS="-I/root/Downloads/COMMON/include/" CXX="g++" CXXFLAGS="-fPIC"
> F77="gfortran" FFLAGS="-fPIC"  ./configure --prefix=/root/Downloads/COMMON
> --with-zlib=/root/Downloads/COMMON --with-szlib=/root/Downloads/COMMON
> --with-jpeg=/root/Downloads/COMMON --enable-fortran --enable-netcdf*
> 
> 
> Eagerly Awaiting your reply,
> 
> Thanks & Regards,
> 
> Puneet Singh
> 
> 

=Dennis Heimbigner
  Unidata


Ticket Details
===================
Ticket ID: CZA-818826
Department: Support netCDF
Priority: Critical
Status: Open
===================
NOTE: All email exchanges with Unidata User Support are recorded in the Unidata 
inquiry tracking system and then made publicly available through the web.  If 
you do not want to have your interactions made available in this way, you must 
let us know in each email you send to us.