[petsc-users] Problems configuring with PIC

Gutheil, Inge i.gutheil at fz-juelich.de
Wed Nov 4 09:01:00 CST 2020


Thanks a lot,

I had overseen the second --with-shared-libraries

Regards

Inge

________________________________
Von: Satish Balay <balay at mcs.anl.gov>
Gesendet: Mittwoch, 4. November 2020 15:32:23
An: Gutheil, Inge
Cc: petsc-users at mcs.anl.gov
Betreff: Re: [petsc-users] Problems configuring with PIC

Please remove --with-shared-libraries=0 option - and rerun configure

Satish

On Wed, 4 Nov 2020, Gutheil, Inge wrote:

> Dear PETSc team,
>
> I have problems configuring PETSc with PIC which I need for later configuring petsc4py.
>
> Although I configure with --with-shared-libraries:
>
>
> Starting configure run at Wed, 04 Nov 2020 14:53:36 +0100
>
> Configure Options: --configModules=PETSc.Configure --optionsModule=config.compilerOptions --prefix=/p/software/juwels/stages/Devel-2020/software/PETSc/3.14-gpsmkl-2020 --with-large-file-io --with-cxx-dialect=C++11 --with-shared-libraries --download-superlu=1 --download-chaco=1 --download-parms=1 --download-spai=1 --download-superlu_dist=1 --download-spooles=1 --with-cc=mpicc --with-cxx=mpicxx --with-c++-support --with-fc=mpif90 --CFLAGS="-O2 -ftree-vectorize -march=native -fno-math-errno -fPIC" --CXXFLAGS="-O2 -ftree-vectorize -march=native -fno-math-errno -fPIC -DOMPI_SKIP_MPICXX -DMPICH_SKIP_MPICXX" --FFLAGS="-O2 -ftree-vectorize -march=native -fno-math-errno -fPIC" --with-mpi=1 --with-build-step-np=40 --with-shared-libraries=0 --with-debugging=0 --with-pic=1 --with-x=0 --with-windows-graphics=0 --with-fftw=1 --with-fftw-include=/gpfs/software/juwels/stages/Devel-2020/software/imkl/2020.2.254-gpsmpi-2020/mkl/include/fftw --with-fftw-lib="[/gpfs/software/juwels/stages/Devel-2020/s
 oftware/imkl/2020.2.254-gpsmpi-2020/mkl/lib/intel64/libfftw3xc_gnu_pic.a,libfftw3x_cdft_lp64_pic.a,libmkl_cdft_core.a,libmkl_blacs_intelmpi_lp64.a,libmkl_gf_lp64.a,libmkl_sequential.a,libmkl_core.a,libgfortran.a]" --with-scalapack=1 --with-scalapack-include=/gpfs/software/juwels/stages/Devel-2020/software/imkl/2020.2.254-gpsmpi-2020/mkl/include --with-scalapack-lib="[/gpfs/software/juwels/stages/Devel-2020/software/imkl/2020.2.254-gpsmpi-2020/mkl/lib/intel64/libmkl_scalapack_lp64.a,libmkl_blacs_intelmpi_lp64.a,libmkl_gf_lp64.a,libmkl_sequential.a,libmkl_core.a,libgfortran.a]" --with-blaslapack-lib="[/gpfs/software/juwels/stages/Devel-2020/software/imkl/2020.2.254-gpsmpi-2020/mkl/lib/intel64/libmkl_gf_lp64.a,libmkl_sequential.a,libmkl_core.a,libgfortran.a]" --with-hdf5=1 --with-hdf5-dir=/gpfs/software/juwels/stages/Devel-2020/software/HDF5/1.10.6-gpsmpi-2020 --with-metis=1 --with-metis-dir=/gpfs/software/juwels/stages/Devel-2020/software/METIS/5.1.0-GCC-9.3.0 --with-parmetis=1 --with
 -parmetis-dir=/p/software/juwels/stages/Devel-2020/software/ParMETIS/4.0.3-gpsmpi-2020 --with-hypre=1 --with-hypre-dir=/p/software/juwels/stages/Devel-2020/software/Hypre/2.20.0-gpsmkl-2020 --with-mumps=1 --with-mumps-dir=/p/software/juwels/stages/Devel-2020/software/MUMPS/5.3.4-gpsmkl-2020 --with-sundials=1 --with-sundials-dir=/p/software/juwels/stages/Devel-2020/software/sundials/5.4.0-gpsmkl-2020
>
> Working directory: /dev/shm/mathprod/PETSc/3.14/gpsmkl-2020/petsc-3.14.0
>
>
>
> I always get
>
>
>
>          UNABLE to CONFIGURE with GIVEN OPTIONS    (see configure.log for details):
>
> -------------------------------------------------------------------------------
>
> Cannot determine compiler PIC flags if shared libraries is turned off
>
> Either run using --with-shared-libraries or --with-pic=0 and supply the compiler PIC flag via CFLAGS, CXXXFLAGS, and FCFLAGS
>
> *******************************************************************************
>
>   File "/dev/shm/mathprod/PETSc/3.14/gpsmkl-2020/petsc-3.14.0/config/configure.py", line 452, in petsc_configure
>
>     framework.configure(out = sys.stdout)
>
>   File "/dev/shm/mathprod/PETSc/3.14/gpsmkl-2020/petsc-3.14.0/config/BuildSystem/config/framework.py", line 1251, in configure
>
>     self.processChildren()
>
>   File "/dev/shm/mathprod/PETSc/3.14/gpsmkl-2020/petsc-3.14.0/config/BuildSystem/config/framework.py", line 1240, in processChildren
>
>     self.serialEvaluation(self.childGraph)
>
>   File "/dev/shm/mathprod/PETSc/3.14/gpsmkl-2020/petsc-3.14.0/config/BuildSystem/config/framework.py", line 1215, in serialEvaluation
>
>     child.configure()
>
>   File "/dev/shm/mathprod/PETSc/3.14/gpsmkl-2020/petsc-3.14.0/config/BuildSystem/config/setCompilers.py", line 1969, in configure
>
>     self.executeTest(self.checkPIC)
>
>   File "/dev/shm/mathprod/PETSc/3.14/gpsmkl-2020/petsc-3.14.0/config/BuildSystem/config/base.py", line 140, in executeTest
>
>     ret = test(*args,**kargs)
>
>   File "/dev/shm/mathprod/PETSc/3.14/gpsmkl-2020/petsc-3.14.0/config/BuildSystem/config/setCompilers.py", line 1272, in checkPIC
>
>     raise RuntimeError("Cannot determine compiler PIC flags if shared libraries is turned off\nEither run using --with-shared-libraries or --with-pic=0 and supply the compiler PIC flag via CFLAGS, CXXXFLAGS, and FCFLAGS\n")
>
> I don't know what I am doing wrong.
> Thanks for your help,
>
> Regards
> Inge Gutheil
>
> --
> Inge Gutheil
> Juelich Supercomputing Centre
> Forschungszentrum Jülich GmbH
> 52425 Jülich
> Germany
>
>
> ------------------------------------------------------------------------------------------------
> ------------------------------------------------------------------------------------------------
> Forschungszentrum Juelich GmbH
> 52425 Juelich
> Sitz der Gesellschaft: Juelich
> Eingetragen im Handelsregister des Amtsgerichts Dueren Nr. HR B 3498
> Vorsitzender des Aufsichtsrats: MinDir Volker Rieke
> Geschaeftsfuehrung: Prof. Dr.-Ing. Wolfgang Marquardt (Vorsitzender),
> Karsten Beneke (stellv. Vorsitzender), Prof. Dr.-Ing. Harald Bolt
> ------------------------------------------------------------------------------------------------
> ------------------------------------------------------------------------------------------------
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20201104/0feef8bd/attachment.html>


More information about the petsc-users mailing list