I am able to compile PETSc 3.11.3 with my pre-installed MUMPS.

On Mon, Aug 30, 2021 at 5:22 PM Sam Guo <sam.guo@cd-adapco.com> wrote:
My pre-installed MUMPS defines the dummy for blacs and scalapack.

On Mon, Aug 30, 2021 at 5:17 PM Sam Guo <sam.guo@cd-adapco.com> wrote:
I don't use scalapack.

On Mon, Aug 30, 2021 at 5:13 PM Lucas Banting <bantingl@myumanitoba.ca> wrote:
Dumb question but are you configuring with scalapack?

From: petsc-users <petsc-users-bounces@mcs.anl.gov> on behalf of Sam Guo <sam.guo@cd-adapco.com>
Sent: Monday, August 30, 2021 7:10:45 PM
To: petsc-users <petsc-users@mcs.anl.gov>
Subject: Re: [petsc-users] PETSc 3.15.3 compiling error
 
Attached please find the configure.log. I use my own CMake. I have defined -DPETSC_HAVE_MUMPS. Thanks.

On Mon, Aug 30, 2021 at 4:56 PM Sam Guo <sam.guo@cd-adapco.com> wrote:
I use pre-installed

On Mon, Aug 30, 2021 at 4:53 PM Satish Balay <balay@mcs.anl.gov> wrote:

Are you using --download-mumps or pre-installed mumps? If using pre-installed - try --download-mumps.

If you still have issues - send us configure.log and make.log from the failed build.

Satish

On Mon, 30 Aug 2021, Sam Guo wrote:

> Dear PETSc dev team,
>    I am compiling petsc 3.15.3 and got following compiling error
> petsc/src/mat/impls/aij/mpi/mumps/mumps.c:52:31: error: missing binary
> operator before token "("
>    52 | #if PETSC_PKG_MUMPS_VERSION_GE(5,3,0)
>    Any idea what I did wrong?
>
> Thanks,
> Sam
>