<div dir="ltr">Thanks Satish.<div><br></div><div>I built this and it is working. </div></div><br><div class="gmail_quote"><div dir="ltr">On Sat, Oct 20, 2018 at 5:39 PM Balay, Satish <<a href="mailto:balay@mcs.anl.gov">balay@mcs.anl.gov</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Pushed this change to branch balay/p4est-add-zlib-dep/maint [it works as desired on my laptop]<br>
<br>
Satish<br>
<br>
On Sat, 20 Oct 2018, Balay, Satish wrote:<br>
<br>
> I don't see an option for specifying zlib explicitly - so perhaps it can use it from LIBS?<br>
> <br>
> [untested patch]<br>
> <br>
> Satish<br>
> <br>
> --------<br>
> <br>
> diff --git a/config/BuildSystem/config/packages/p4est.py b/config/BuildSystem/config/packages/p4est.py<br>
> index 03d1e2fcb0..31d2307f2b 100644<br>
> --- a/config/BuildSystem/config/packages/p4est.py<br>
> +++ b/config/BuildSystem/config/packages/p4est.py<br>
> @@ -21,8 +21,9 @@ class Configure(config.package.GNUPackage):<br>
> def setupDependencies(self, framework):<br>
> config.package.GNUPackage.setupDependencies(self, framework)<br>
> self.mpi = framework.require('config.packages.MPI',self)<br>
> - self.blasLapack = self.framework.require('config.packages.BlasLapack',self)<br>
> - self.deps = [self.mpi,self.blasLapack]<br>
> + self.blasLapack = framework.require('config.packages.BlasLapack',self)<br>
> + self.zlib = framework.require('config.packages.zlib',self)<br>
> + self.deps = [self.mpi,self.blasLapack,self.zlib]<br>
> return<br>
> <br>
> def formGNUConfigureArgs(self):<br>
> @@ -30,7 +31,7 @@ class Configure(config.package.GNUPackage):<br>
> if self.argDB['with-p4est-debugging']:<br>
> args.append('--enable-debug')<br>
> args.append('--enable-mpi')<br>
> - args.append('LIBS="'+self.libraries.toString(self.blasLapack.dlib)+'"')<br>
> + args.append('LIBS="'+self.libraries.toString(self.dlib)+'"')<br>
> return args<br>
> <br>
> def updateGitDir(self):<br>
> <br>
> <br>
> On Sat, 20 Oct 2018, Smith, Barry F. wrote:<br>
> <br>
> > <br>
> > <br>
> > > On Oct 20, 2018, at 4:14 PM, Isaac, Tobin G <<a href="mailto:tisaac@cc.gatech.edu" target="_blank">tisaac@cc.gatech.edu</a>> wrote:<br>
> > > <br>
> > > I think adler32 is in zlib: p4est typically finds it in configure. Can you send along config.log from externalpackages/git.p4est?<br>
> > <br>
> > Is there a way to pass the zlib information to ./configure? We should add that to p4est.py Reason: we don't like external packages making their own decisions, we want PETSc's configure making the decisions and passing the decisions down to the packages.<br>
> > <br>
> > Barry<br>
> > <br>
> > This is especially true for hairy machines that Mark likes to build on, where standard configure sometimes makes the wrong decision or cannot figure out something.<br>
> > <br>
> > > <br>
> > > On October 20, 2018 4:52:54 PM EDT, Mark Adams <<a href="mailto:mfadams@lbl.gov" target="_blank">mfadams@lbl.gov</a>> wrote:<br>
> > >> I am getting this error. This was a clean build (nuked the arch<br>
> > >> directory).<br>
> > >> <br>
> > >> 13:50 nid12922 master= ~/petsc_install/petsc$ make<br>
> > >> PETSC_DIR=/global/homes/m/madams/petsc_install/petsc-cori-haswell-opt-intel<br>
> > >> PETSC_ARCH="" test<br>
> > >> Running test examples to verify correct installation<br>
> > >> Using<br>
> > >> PETSC_DIR=/global/homes/m/madams/petsc_install/petsc-cori-haswell-opt-intel<br>
> > >> and PETSC_ARCH=<br>
> > >> *******************Error detected during compile or<br>
> > >> link!*******************<br>
> > >> See <a href="http://www.mcs.anl.gov/petsc/documentation/faq.html" rel="noreferrer" target="_blank">http://www.mcs.anl.gov/petsc/documentation/faq.html</a><br>
> > >> /global/homes/m/madams/petsc_install/petsc/src/snes/examples/tutorials<br>
> > >> ex19<br>
> > >> *********************************************************************************<br>
> > >> cc -o ex19.o -c -g -fp-model fast<br>
> > >> -I/global/homes/m/madams/petsc_install/petsc-cori-haswell-opt-intel/include<br>
> > >> `pwd`/ex19.c<br>
> > >> cc -g -fp-model fast -o ex19 ex19.o<br>
> > >> -L/global/homes/m/madams/petsc_install/petsc-cori-haswell-opt-intel/lib<br>
> > >> -Wl,-rpath,/global/homes/m/madams/petsc_install/petsc-cori-haswell-opt-intel/lib<br>
> > >> -L/global/homes/m/madams/petsc_install/petsc-cori-haswell-opt-intel/lib<br>
> > >> -lpetsc -lcmumps -ldmumps -lsmumps -lzmumps -lmumps_common -lpord<br>
> > >> -lscalapack -lfftw3_mpi -lfftw3 -lp4est -lsc -lflapack -lfblas<br>
> > >> -lhdf5hl_fortran -lhdf5_fortran -lhdf5_hl -lhdf5 -lchaco -lparmetis<br>
> > >> -lmetis<br>
> > >> -lstdc++ -ldl<br>
> > >> /global/homes/m/madams/petsc_install/petsc-cori-haswell-opt-intel/lib/libpetsc.a(dlimpl.o):<br>
> > >> In function `PetscDLOpen':<br>
> > >> /global/u2/m/madams/petsc_install/petsc/src/sys/dll/dlimpl.c:108:<br>
> > >> warning:<br>
> > >> Using 'dlopen' in statically linked applications requires at runtime<br>
> > >> the<br>
> > >> shared libraries from the glibc version used for linking<br>
> > >> /usr/lib64/gcc/x86_64-suse-linux/4.8/../../../../x86_64-suse-linux/bin/ld:<br>
> > >> Warning: alignment 8 of symbol `ARCHITECTURE' in<br>
> > >> /global/homes/m/madams/petsc_install/petsc-cori-haswell-opt-intel/lib/libchaco.a(user_params.o)<br>
> > >> is smaller than 32 in<br>
> > >> /opt/cray/pe/pmi/5.0.13/lib64/libpmi.a(_pmi_topology_discovery.o)<br>
> > >> /global/homes/m/madams/petsc_install/petsc-cori-haswell-opt-intel/lib/libpetsc.a(send.o):<br>
> > >> In function `PetscOpenSocket':<br>
> > >> /global/u2/m/madams/petsc_install/petsc/src/sys/classes/viewer/impls/socket/send.c:108:<br>
> > >> warning: Using 'gethostbyname' in statically linked applications<br>
> > >> requires<br>
> > >> at runtime the shared libraries from the glibc version used for linking<br>
> > >> /global/homes/m/madams/petsc_install/petsc-cori-haswell-opt-intel/lib/libp4est.a(src_libp4est_la-p4est.o):<br>
> > >> In function `p4est_checksum':<br>
> > >> /global/u2/m/madams/petsc_install/petsc/arch-cori-haswell-opt-intel/externalpackages/git.p4est/src/p4est.c:3228:<br>
> > >> undefined reference to `adler32'<br>
> > >> /global/u2/m/madams/petsc_install/petsc/arch-cori-haswell-opt-intel/externalpackages/git.p4est/src/p4est.c:3236:<br>
> > >> undefined reference to `adler32_combine'<br>
> > >> /global/homes/m/madams/petsc_install/petsc-cori-haswell-opt-intel/lib/libp4est.a(src_libp4est_la-p4est_communication.o):<br>
> > >> In function `p4est_comm_checksum':<br>
> > >> /global/u2/m/madams/petsc_install/petsc/arch-cori-haswell-opt-intel/externalpackages/git.p4est/src/p4est_communication.c:903:<br>
> > >> undefined reference to `adler32_combine'<br>
> > >> /global/homes/m/madams/petsc_install/petsc-cori-haswell-opt-intel/lib/libp4est.a(src_libp4est_la-p8est.o):<br>
> > >> In function `p8est_checksum':<br>
> > >> /global/u2/m/madams/petsc_install/petsc/arch-cori-haswell-opt-intel/externalpackages/git.p4est/src/p4est.c:3228:<br>
> > >> undefined reference to `adler32'<br>
> > >> /global/u2/m/madams/petsc_install/petsc/arch-cori-haswell-opt-intel/externalpackages/git.p4est/src/p4est.c:3236:<br>
> > >> undefined reference to `adler32_combine'<br>
> > >> /global/homes/m/madams/petsc_install/petsc-cori-haswell-opt-intel/lib/libp4est.a(src_libp4est_la-p8est_communication.o):<br>
> > >> In function `p8est_comm_checksum':<br>
> > >> /global/u2/m/madams/petsc_install/petsc/arch-cori-haswell-opt-intel/externalpackages/git.p4est/src/p4est_communication.c:903:<br>
> > >> undefined reference to `adler32_combine'<br>
> > >> /global/homes/m/madams/petsc_install/petsc-cori-haswell-opt-intel/lib/libsc.a(src_libsc_la-sc_containers.o):<br>
> > >> In function `sc_array_checksum':<br>
> > >> /global/u2/m/madams/petsc_install/petsc/arch-cori-haswell-opt-intel/externalpackages/git.p4est/sc/src/sc_containers.c:565:<br>
> > >> undefined reference to `adler32'<br>
> > >> /global/u2/m/madams/petsc_install/petsc/arch-cori-haswell-opt-intel/externalpackages/git.p4est/sc/src/sc_containers.c:571:<br>
> > >> undefined reference to `adler32'<br>
> > >> /global/homes/m/madams/petsc_install/petsc-cori-haswell-opt-intel/lib/libsc.a(src_libsc_la-sc_io.o):<br>
> > >> In function `sc_vtk_write_compressed':<br>
> > >> /global/u2/m/madams/petsc_install/petsc/arch-cori-haswell-opt-intel/externalpackages/git.p4est/sc/src/sc_io.c:492:<br>
> > >> undefined reference to `compress2'<br>
> > >> /global/u2/m/madams/petsc_install/petsc/arch-cori-haswell-opt-intel/externalpackages/git.p4est/sc/src/sc_io.c:507:<br>
> > >> undefined reference to `compress2'<br>
> > >> /global/homes/m/madams/petsc_install/petsc-cori-haswell-opt-intel/lib/petsc/conf/test:13:<br>
> > >> recipe for target 'ex19' failed<br>
> > >> gmake[3]: [ex19] Error 1 (ignored)<br>
> > >> true ex19<br>
> > >> rm ex19.o<br>
> > <br>
> <br>
<br>
</blockquote></div>