[petsc-dev] Fwd: [petsc-users] cannot find 'libz.a' when configuring

Satish Balay balay at mcs.anl.gov
Wed Apr 10 19:53:51 CDT 2013


How do we handle these packages with complicated dependencies [they
are complicated as petsc dependencies?]

In this report hdf5 was built with szip-2.1 and zlib-1.2.7. So how
does petsc configure automatically detect this?

And I've recently used the following for hdf5/necddf5 on fusion [with
the extra implicit depenceny of hdf5 on zlib, and netcdf5 on hdf5 from
within configure]

    '--with-hdf5-lib=-L/soft/hdf5/1.8.6-parallel/lib -lhdf5_hl -lhdf5 -lgpfs',

    '--with-netcdf-lib=-L/soft/netcdf/4.1.1-parallel/lib -lnetcdff -lnetcdf -L/usr/kerberos/lib64 -lcurl -ldl -lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err -lidn -lssl -lcrypto -lz',

Yeah - things work if the user knows the dependencies and the link
command for those dependencies - and specify it to petsc configure as
above. But I'm not sure how to autodetect this.

Also currently -lz is handled in package.py with
'self.needsCompression' similar to 'self.needsMath' with the detection
of -lz in libraires.py:checkCompression() - but one can't specify a
--with-zlib-lib option this way. I guess this part can be fixed by
migrating it a standalone package z.py. [And somehow handle the
optional part of this dependency for hdf5]

Satish

On Wed, 10 Apr 2013, Barry Smith wrote:

> 
>   Shouldn't this be fixed by now in PETSc-dev?
> 
> 
> 
> Begin forwarded message:
> 
> > From: Satish Balay <balay at mcs.anl.gov>
> > Subject: Re: [petsc-users] cannot find 'libz.a' when configuring
> > Date: April 10, 2013 5:21:38 PM CDT
> > To: PETSc users list <petsc-users at mcs.anl.gov>
> > Reply-To: PETSc users list <petsc-users at mcs.anl.gov>
> > 
> > try using configure option LIBS="-L/opt/zlib-1.2.7/lib -lz'
> > 
> > Satish
> > 
> > On Wed, 10 Apr 2013, Seungbum Koo wrote:
> > 
> >> Hi. I tried to add hdf5 when configuring. HDF5-1.8.9 is currently installed
> >> with szip-2.1 and zlib-1.2.7.
> >> 
> >> It stops with message
> >> 
> >> *******************************************************************************
> >>         UNABLE to CONFIGURE with GIVEN OPTIONS    (see configure.log for
> >> details):
> >> -------------------------------------------------------------------------------
> >> Compression library [libz.a or equivalent] not found
> >> *******************************************************************************
> >> 
> >> What I don't understand is that 'libz.a' file exists in
> >> '/opt/zlib-1.2.7/lib'. What should I do?
> >> 
> >> Seungbum
> >> 
> > 
> 
> 




More information about the petsc-dev mailing list