<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none;"><!-- P {margin-top:0;margin-bottom:0;} --></style>
</head>
<body dir="ltr">
<div id="divtagdefaultwrapper" style="font-size:12pt;color:#000000;font-family:Calibri,Helvetica,sans-serif;" dir="ltr">
<p>Dear PETSc team,</p>
<p>I have problems configuring PETSc with PIC which I need for later configuring petsc4py. </p>
<p>Although I configure with --with-shared-libraries:</p>
<p><br>
</p>
<p style="margin-right: 0px; margin-left: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo;">
<span style="font-variant-ligatures: no-common-ligatures">Starting configure run at Wed, 04 Nov 2020 14:53:36 +0100</span></p>
<p style="margin-right: 0px; margin-left: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo;">
<span style="font-variant-ligatures: no-common-ligatures">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 --C</span><span style="font-variant-ligatures: no-common-ligatures; background-color: #e0e409">FLAGS</span><span style="font-variant-ligatures: no-common-ligatures">="-O2
 -ftree-vectorize -march=native -fno-math-errno -fPIC" --CXX</span><span style="font-variant-ligatures: no-common-ligatures; background-color: #e0e409">FLAGS</span><span style="font-variant-ligatures: no-common-ligatures">="-O2 -ftree-vectorize -march=native
 -fno-math-errno -fPIC -DOMPI_SKIP_MPICXX -DMPICH_SKIP_MPICXX" --F</span><span style="font-variant-ligatures: no-common-ligatures; background-color: #e0e409">FLAGS</span><span style="font-variant-ligatures: no-common-ligatures">="-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/software/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</span></p>
<p style="margin-right: 0px; margin-left: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo;">
<span style="font-variant-ligatures: no-common-ligatures">Working directory: /dev/shm/mathprod/PETSc/3.14/gpsmkl-2020/petsc-3.14.0</span></p>
<p style="margin-right: 0px; margin-left: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo;">
<span style="font-variant-ligatures: no-common-ligatures"><br>
</span></p>
<p style="margin-right: 0px; margin-left: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo;">
<span style="font-variant-ligatures: no-common-ligatures"><br>
</span></p>
<p style="margin-right: 0px; margin-left: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo;">
<span style="font-variant-ligatures: no-common-ligatures">I always get </span></p>
<p style="margin-right: 0px; margin-left: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo;">
<span style="font-variant-ligatures: no-common-ligatures"><br>
</span></p>
<p style="margin-right: 0px; margin-left: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo;">
<span style="font-variant-ligatures: no-common-ligatures"><br>
</span></p>
<p style="margin-right: 0px; margin-left: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo;">
<span style="font-variant-ligatures: no-common-ligatures">         UNABLE to CONFIGURE with GIVEN OPTIONS    (see configure.log for details):</span></p>
<p style="margin-right: 0px; margin-left: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo;">
<span style="font-variant-ligatures: no-common-ligatures">-------------------------------------------------------------------------------</span></p>
<p style="margin-right: 0px; margin-left: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo;">
<span style="font-variant-ligatures: no-common-ligatures">Cannot determine compiler PIC flags if shared libraries is turned off</span></p>
<p style="margin-right: 0px; margin-left: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo;">
<span style="font-variant-ligatures: no-common-ligatures">Either run using --with-shared-libraries or --with-pic=0 and supply the compiler PIC flag via C</span><span style="font-variant-ligatures: no-common-ligatures; background-color: #e0e409">FLAGS</span><span style="font-variant-ligatures: no-common-ligatures">,
 CXXX</span><span style="font-variant-ligatures: no-common-ligatures; background-color: #e0e409">FLAGS</span><span style="font-variant-ligatures: no-common-ligatures">, and FC</span><span style="font-variant-ligatures: no-common-ligatures; background-color: #e0e409">FLAGS</span></p>
<p style="margin-right: 0px; margin-left: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo;">
<span style="font-variant-ligatures: no-common-ligatures">*******************************************************************************</span></p>
<p style="margin-right: 0px; margin-left: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo;">
<span style="font-variant-ligatures: no-common-ligatures">  File "/dev/shm/mathprod/PETSc/3.14/gpsmkl-2020/petsc-3.14.0/config/configure.py", line 452, in petsc_configure</span></p>
<p style="margin-right: 0px; margin-left: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo;">
<span style="font-variant-ligatures: no-common-ligatures">    framework.configure(out = sys.stdout)</span></p>
<p style="margin-right: 0px; margin-left: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo;">
<span style="font-variant-ligatures: no-common-ligatures">  File "/dev/shm/mathprod/PETSc/3.14/gpsmkl-2020/petsc-3.14.0/config/BuildSystem/config/framework.py", line 1251, in configure</span></p>
<p style="margin-right: 0px; margin-left: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo;">
<span style="font-variant-ligatures: no-common-ligatures">    self.processChildren()</span></p>
<p style="margin-right: 0px; margin-left: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo;">
<span style="font-variant-ligatures: no-common-ligatures">  File "/dev/shm/mathprod/PETSc/3.14/gpsmkl-2020/petsc-3.14.0/config/BuildSystem/config/framework.py", line 1240, in processChildren</span></p>
<p style="margin-right: 0px; margin-left: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo;">
<span style="font-variant-ligatures: no-common-ligatures">    self.serialEvaluation(self.childGraph)</span></p>
<p style="margin-right: 0px; margin-left: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo;">
<span style="font-variant-ligatures: no-common-ligatures">  File "/dev/shm/mathprod/PETSc/3.14/gpsmkl-2020/petsc-3.14.0/config/BuildSystem/config/framework.py", line 1215, in serialEvaluation</span></p>
<p style="margin-right: 0px; margin-left: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo;">
<span style="font-variant-ligatures: no-common-ligatures">    child.configure()</span></p>
<p style="margin-right: 0px; margin-left: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo;">
<span style="font-variant-ligatures: no-common-ligatures">  File "/dev/shm/mathprod/PETSc/3.14/gpsmkl-2020/petsc-3.14.0/config/BuildSystem/config/setCompilers.py", line 1969, in configure</span></p>
<p style="margin-right: 0px; margin-left: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo;">
<span style="font-variant-ligatures: no-common-ligatures">    self.executeTest(self.checkPIC)</span></p>
<p style="margin-right: 0px; margin-left: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo;">
<span style="font-variant-ligatures: no-common-ligatures">  File "/dev/shm/mathprod/PETSc/3.14/gpsmkl-2020/petsc-3.14.0/config/BuildSystem/config/base.py", line 140, in executeTest</span></p>
<p style="margin-right: 0px; margin-left: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo;">
<span style="font-variant-ligatures: no-common-ligatures">    ret = test(*args,**kargs)</span></p>
<p style="margin-right: 0px; margin-left: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo;">
<span style="font-variant-ligatures: no-common-ligatures">  File "/dev/shm/mathprod/PETSc/3.14/gpsmkl-2020/petsc-3.14.0/config/BuildSystem/config/setCompilers.py", line 1272, in checkPIC</span></p>
<p style="margin-right: 0px; margin-left: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo;">
<span style="font-variant-ligatures: no-common-ligatures"></span></p>
<p style="margin-right: 0px; margin-left: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo;">
<span style="font-variant-ligatures: no-common-ligatures">    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 C</span><span style="font-variant-ligatures: no-common-ligatures; background-color: #e0e409">FLAGS</span><span style="font-variant-ligatures: no-common-ligatures">,
 CXXX</span><span style="font-variant-ligatures: no-common-ligatures; background-color: #e0e409">FLAGS</span><span style="font-variant-ligatures: no-common-ligatures">, and FC</span><span style="font-variant-ligatures: no-common-ligatures; background-color: #e0e409">FLAGS</span><span style="font-variant-ligatures: no-common-ligatures">\n")</span></p>
<div><span style="font-variant-ligatures: no-common-ligatures"><br>
</span></div>
<div>I don't know what I am doing wrong.</div>
<div>Thanks for your help,</div>
<div><br>
</div>
<div>Regards</div>
<div>Inge Gutheil</div>
<div><br>
</div>
<div>--</div>
<div>Inge Gutheil</div>
<div>Juelich Supercomputing Centre</div>
<div>Forschungszentrum Jülich GmbH</div>
<div>52425 Jülich</div>
<div>Germany</div>
</div>
<br>
<font face="Arial" color="Black" size="1"><br>
------------------------------------------------------------------------------------------------<br>
------------------------------------------------------------------------------------------------<br>
Forschungszentrum Juelich GmbH<br>
52425 Juelich<br>
Sitz der Gesellschaft: Juelich<br>
Eingetragen im Handelsregister des Amtsgerichts Dueren Nr. HR B 3498<br>
Vorsitzender des Aufsichtsrats: MinDir Volker Rieke<br>
Geschaeftsfuehrung: Prof. Dr.-Ing. Wolfgang Marquardt (Vorsitzender),<br>
Karsten Beneke (stellv. Vorsitzender), Prof. Dr.-Ing. Harald Bolt<br>
------------------------------------------------------------------------------------------------<br>
------------------------------------------------------------------------------------------------<br>
<br>
</font>
</body>
</html>