[petsc-users] Error when installing PETSc

Satish Balay balay at mcs.anl.gov
Wed Oct 18 09:33:33 CDT 2023


> Working directory: /home/tt/petsc-3.16.0

use latest petsc release - 3.20

> --with-fc=flang

I don't think this ever worked. Use --with-fc=gfortran instead

/opt/ohpc/pub/spack/opt/spack/linux-centos7-skylake_avx512/gcc-8.3.0/m4-1.4.19-lwqcw3hzoxoia5q6nzolylxaf5zevluk/bin/m4: internal error detected; please report this bug to <bug-m4 at gnu.org>: Illegal instruction

You might need to report this to your admin who installed this spack package.

They might need to rebuild spack for 'x86_64' instead of 'skylake_avx512'

Or use a different m4 - say from /usr/bin - if you have it there.

Satish

On Wed, 18 Oct 2023, Matthew Knepley wrote:

> 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
> >
> > *******************************************************************************
> >
> >
> 
> 


More information about the petsc-users mailing list