[petsc-users] Issue when configuring my petsc-3.20.0

Ivan Luthfi ivanluthfi5 at gmail.com
Fri Sep 29 11:59:01 CDT 2023


Hi team,
I have an issue when I configure my petsc with the following script:

./configure --with-fc=0 --download-f2cblaslapack=1 --with-blaslapack-lib=libsunperf.a --with-blas-lib=libblas.a --with-lapack-lib=liblapack.a --download-make --with-cc=gcc --with-cxx=/home/ivanluthfi1/openmpi/opt-4.1.1/bin/mpicxx --download-cmake --download-superlu_dist --with-superlud-lib=libsuperlu_dist_3.3.a --download-parmetis --with-parmetis-lib=libparmetis.a --with-cc=/home/ivanluthfi1/openmpi/opt-4.1.1/bin/mpicc --download-metis --with-metis-lib=libmetis.a

 Here is the configure.log message:

 PETSc Error: No output file produced
              Rejecting compiler flag -std=c++11  due to nonzero status from link
*********************************************************************************************
           UNABLE to CONFIGURE with GIVEN OPTIONS (see configure.log for details):
---------------------------------------------------------------------------------------------
  Using C++ dialect C++11 as lower bound due to package(s):
  - SuperLU_DIST
  But C++ compiler (/home/ivanluthfi1/openmpi/opt-4.1.1/bin/mpicxx) appears non-compliant
  with C++11 or didn't accept:
  - -std=gnu++20
  - -std=c++20
  - -std=gnu++17
  - -std=c++17
  - -std=gnu++14
  - -std=c++14
  - -std=gnu++11
  - -std=c++11
*********************************************************************************************
  File "/home/ivanluthfi1/petsc/config/configure.py", line 462, in petsc_configure
    framework.configure(out = sys.stdout)
  File "/home/ivanluthfi1/petsc/config/BuildSystem/config/framework.py", line 1447, in configure
    self.processChildren()
  File "/home/ivanluthfi1/petsc/config/BuildSystem/config/framework.py", line 1435, in processChildren
    self.serialEvaluation(self.childGraph)
  File "/home/ivanluthfi1/petsc/config/BuildSystem/config/framework.py", line 1410, in serialEvaluation
    child.configure()
  File "/home/ivanluthfi1/petsc/config/BuildSystem/config/setCompilers.py", line 2786, in configure
    self.executeTest(self.checkCxxDialect,args=[LANG],kargs={'isGNUish':isGNUish})
  File "/home/ivanluthfi1/petsc/config/BuildSystem/config/base.py", line 138, in executeTest
    ret = test(*args,**kargs)
  File "/home/ivanluthfi1/petsc/config/BuildSystem/config/setCompilers.py", line 1225, in checkCxxDialect
    raise ConfigureSetupError(mess)
================================================================================
Finishing configure run at Sat, 30 Sep 2023 00:52:35 +0800

Please help me, I need to configure it with metis, parmetis, superlud, blas, and lapack. 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20230930/9e8f2069/attachment.html>


More information about the petsc-users mailing list