[petsc-dev] Build error with zlib

Satish Balay balay at mcs.anl.gov
Fri Jan 19 08:29:14 CST 2024


On Fri, 19 Jan 2024, Adrian Croucher wrote:

> hi
> 
> I've just started having errors building PETSc on both my Github CI pipeline
> and on another machine, as a result of zlib failing to download. (I'm using
> the download-zlib option.) The error is:
> 
> UNABLE to CONFIGURE with GIVEN OPTIONS    (see configure.log for details):
> Error during download/extract/detection of ZLIB:
> Unable to download package ZLIB from: http://www.zlib.net/zlib-1.2.11.tar.gz
> 
> ...
> 
> Unable to download package ZLIB from:
> http://ftp.mcs.anl.gov/pub/petsc/externalpackages/zlib-1.2.11.tar.gz
> 

Hm - this works directly - but not from python? I'll have to check with our admins.

You can try the alternative:

--download-zlib=https://ftp.mcs.anl.gov/pub/petsc/externalpackages/zlib-1.2.11.tar.gz

> ...
> 
> Unable to download package ZLIB from:
> ftp://ftp.mcs.anl.gov/pub/petsc/externalpackages/zlib-1.2.11.tar.gz
> 
> ...
> 
> Unable to download package ZLIB from:
> https://www.mcs.anl.gov/petsc/mirror/externalpackages/zlib-1.2.11.tar.gz
> 
> When I test these URLs, the first one from www.zlib.net does indeed give a
> 404. But the other ones are valid. I assumed that it's trying these URLs in
> sequence until it finds one that works?
> 
> I am using an older version of PETSc (3.15.5) as there is a PETSc bug in more
> recent versions that affects my project and means I can't upgrade until it is
> resolved.

It would be good if this is resolved - and you can upgrade. Is there are report on this issue [perhaps at https://gitlab.com/petsc/petsc/-/issues]?

Satish

> 
> Regards, Adrian
> 
> 


More information about the petsc-dev mailing list