<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<meta name="Generator" content="Microsoft Exchange Server">
<!-- converted from text --><style><!-- .EmailQuote { margin-left: 1pt; padding-left: 4pt; border-left: #800000 2px solid; } --></style>
</head>
<body>
<meta content="text/html; charset=UTF-8">
<style type="text/css" style="">
<!--
p
        {margin-top:0;
        margin-bottom:0}
-->
</style>
<div dir="ltr">
<div id="x_divtagdefaultwrapper" dir="ltr" style="font-size:12pt; color:#000000; font-family:Calibri,Helvetica,sans-serif">
<p>Thanks a lot, </p>
<p>I had overseen the second --with-shared-libraries</p>
<p>Regards</p>
<p>Inge</p>
</div>
<hr tabindex="-1" style="display:inline-block; width:98%">
<div id="x_divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" color="#000000" style="font-size:11pt"><b>Von:</b> Satish Balay <balay@mcs.anl.gov><br>
<b>Gesendet:</b> Mittwoch, 4. November 2020 15:32:23<br>
<b>An:</b> Gutheil, Inge<br>
<b>Cc:</b> petsc-users@mcs.anl.gov<br>
<b>Betreff:</b> Re: [petsc-users] Problems configuring with PIC</font>
<div> </div>
</div>
</div>
<font size="2"><span style="font-size:10pt;">
<div class="PlainText">Please remove --with-shared-libraries=0 option - and rerun configure<br>
<br>
Satish<br>
<br>
On Wed, 4 Nov 2020, Gutheil, Inge wrote:<br>
<br>
> Dear PETSc team,<br>
> <br>
> I have problems configuring PETSc with PIC which I need for later configuring petsc4py.<br>
> <br>
> Although I configure with --with-shared-libraries:<br>
> <br>
> <br>
> Starting configure run at Wed, 04 Nov 2020 14:53:36 +0100<br>
> <br>
> 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<br>
 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<br>
 -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<br>
> <br>
> Working directory: /dev/shm/mathprod/PETSc/3.14/gpsmkl-2020/petsc-3.14.0<br>
> <br>
> <br>
> <br>
> I always get<br>
> <br>
> <br>
> <br>
>          UNABLE to CONFIGURE with GIVEN OPTIONS    (see configure.log for details):<br>
> <br>
> -------------------------------------------------------------------------------<br>
> <br>
> Cannot determine compiler PIC flags if shared libraries is turned off<br>
> <br>
> Either run using --with-shared-libraries or --with-pic=0 and supply the compiler PIC flag via CFLAGS, CXXXFLAGS, and FCFLAGS<br>
> <br>
> *******************************************************************************<br>
> <br>
>   File "/dev/shm/mathprod/PETSc/3.14/gpsmkl-2020/petsc-3.14.0/config/configure.py", line 452, in petsc_configure<br>
> <br>
>     framework.configure(out = sys.stdout)<br>
> <br>
>   File "/dev/shm/mathprod/PETSc/3.14/gpsmkl-2020/petsc-3.14.0/config/BuildSystem/config/framework.py", line 1251, in configure<br>
> <br>
>     self.processChildren()<br>
> <br>
>   File "/dev/shm/mathprod/PETSc/3.14/gpsmkl-2020/petsc-3.14.0/config/BuildSystem/config/framework.py", line 1240, in processChildren<br>
> <br>
>     self.serialEvaluation(self.childGraph)<br>
> <br>
>   File "/dev/shm/mathprod/PETSc/3.14/gpsmkl-2020/petsc-3.14.0/config/BuildSystem/config/framework.py", line 1215, in serialEvaluation<br>
> <br>
>     child.configure()<br>
> <br>
>   File "/dev/shm/mathprod/PETSc/3.14/gpsmkl-2020/petsc-3.14.0/config/BuildSystem/config/setCompilers.py", line 1969, in configure<br>
> <br>
>     self.executeTest(self.checkPIC)<br>
> <br>
>   File "/dev/shm/mathprod/PETSc/3.14/gpsmkl-2020/petsc-3.14.0/config/BuildSystem/config/base.py", line 140, in executeTest<br>
> <br>
>     ret = test(*args,**kargs)<br>
> <br>
>   File "/dev/shm/mathprod/PETSc/3.14/gpsmkl-2020/petsc-3.14.0/config/BuildSystem/config/setCompilers.py", line 1272, in checkPIC<br>
> <br>
>     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")<br>
> <br>
> I don't know what I am doing wrong.<br>
> Thanks for your help,<br>
> <br>
> Regards<br>
> Inge Gutheil<br>
> <br>
> --<br>
> Inge Gutheil<br>
> Juelich Supercomputing Centre<br>
> Forschungszentrum Jülich GmbH<br>
> 52425 Jülich<br>
> Germany<br>
> <br>
> <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>
> <br>
</div>
</span></font>
</body>
</html>