[petsc-users] Error when installing PETSc

Matthew Knepley knepley at gmail.com
Wed Oct 18 06:41:27 CDT 2023


On Wed, Oct 18, 2023 at 6:07 AM Gong Yujie <yc17470 at connect.um.edu.mo>
wrote:

> Dear PETSc developers,
>
> I got an error message when installing PETSc with a clang compiler. Could
> you please help me find the problem? The configure.log is attached.
>

Your compiler segfaulted when compiling OpenMPI:

Making all in mca/crs
make[2]: Entering directory
'/home/tt/petsc-3.16.0/optamd/externalpackages/openmpi-4.1.0/opal/mca/crs'
  GENERATE opal_crs.7
  CC       base/crs_base_open.lo
  CC       base/crs_base_close.lo
  CC       base/crs_base_select.lo
  CC       base/crs_base_fns.lo
make[2]: Leaving directory
'/home/tt/petsc-3.16.0/optamd/externalpackages/openmpi-4.1.0/opal/mca/crs'
make[1]: Leaving directory
'/home/tt/petsc-3.16.0/optamd/externalpackages/openmpi-4.1.0/opal'/bin/sh:
line 7:  6327 Illegal instruction     (core dumped) ../../../config/
make_manpage.pl --package-name='Open MPI' --package-version='4.1.0'
--ompi-date='Dec 18, 2020' --opal-date='Dec 18, 2020' --orte-date='Dec 18,
2020' --input=opal_crs.7in --output=opal_crs.7
make[2]: *** [Makefile:2215: opal_crs.7] Error 132
make[2]: *** Waiting for unfinished jobs....
make[1]: *** [Makefile:2383: all-recursive] Error 1
make: *** [Makefile:1901: all-recursive] Error 1

I suggest compiling MPICH instead.

  Thanks,

     Matt


> Best Regards,
> Yujie
>
> Here is the detail of the error:
>
> =============================================================================================
>
>                       Configuring PETSc to compile on your system
>
> =============================================================================================
> =============================================================================================
>
> ***** WARNING: Using default optimization C flags -g -O3
> You might consider manually setting optimal optimization flags for your
> system with
> COPTFLAGS="optimization flags" see config/examples/arch-*-opt.py for
> examples
> =============================================================================================
>
> =============================================================================================
>
> ***** WARNING: Using default Cxx optimization flags -g -O3
>
> You might consider manually setting optimal optimization flags for your
> system with
> CXXOPTFLAGS="optimization flags" see config/examples/arch-*-opt.py for
> examples
> =============================================================================================
>
> =============================================================================================
>
> ***** WARNING: Using default FORTRAN optimization flags -O
>
> You might consider manually setting optimal optimization flags for your
> system with
> FOPTFLAGS="optimization flags" see config/examples/arch-*-opt.py for
> examples
> =============================================================================================
>
> =============================================================================================
>
> Trying to download
> https://download.open-mpi.org/release/open-mpi/v4.1/openmpi-4.1.0.tar.gz
> for
> =============================================================================================
>
> =============================================================================================
>
> Running configure on OPENMPI; this may take several minutes
>
> =============================================================================================
>
> =============================================================================================
>
> Running make on OPENMPI; this may take several minutes
>
> =============================================================================================
>
>
> *******************************************************************************
>          UNABLE to CONFIGURE with GIVEN OPTIONS    (see configure.log for
> details):
>
> -------------------------------------------------------------------------------
> Error running make; make install on OPENMPI
>
> *******************************************************************************
>
>

-- 
What most experimenters take for granted before they begin their
experiments is infinitely more interesting than any results to which their
experiments lead.
-- Norbert Wiener

https://www.cse.buffalo.edu/~knepley/ <http://www.cse.buffalo.edu/~knepley/>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20231018/a915d298/attachment-0001.html>


More information about the petsc-users mailing list