[petsc-users] Basic error " gcc: error: unrecognized command line option 'wd1572' " during the configuration step of SLEPc installation

Ernesto Prudencio EPrudencio at slb.com
Mon Jul 6 17:09:20 CDT 2020


Hello.

Until some days ago I was using packages MPICH and PETSc which were both downloaded and installed by me, locally in my Linux environment. I could then download and install SLEPc without issues.

Recently I had to change to another environment where MPI and PETSc were already pre-installed. I have access to them through a mounted disk. I then tried to install a SLEPc in my local disk using such mounted packages, and I am getting the following error right away:

> cd $SLEPC_DIR
> ./configure --prefix=/home/EPrudencio/projs/changed/extraInstallations/slepc_3_10_2
Checking environment... done
Checking PETSc installation...
ERROR: Unable to link with PETSc
ERROR: See "installed-arch-linux2-c-opt/lib/slepc/conf/configure.log" file for details
>

When I open the configure.log file, the contents are as follows:

+---BEGIN----------------------------------------------------------------------

================================================================================
Starting Configure Run at Mon Jul  6 21:54:40 2020
Configure Options: --prefix=/home/...
...
...
================================================================================
Checking PETSc installation...
#include "petscsnes.h"
int main() {
Vec v; Mat m; KSP k;
PetscInitializeNoArguments();
VecCreate(PETSC_COMM_WORLD,&v);
MatCreate(PETSC_COMM_WORLD,&m);
KSPCreate(PETSC_COMM_WORLD,&k);
return 0;
}
mpicc -o checklink.o -c -fPIC  -wd1572 -Ofast -xHost   -I/mnt/disks/intel-2018-3-222-blade-runtime-env-2018-1-07-08-2018-132838/petsc_3.10.4_openmpi.4.0.3_intel2019.3_64index/include    `pwd`/checklink.c
gcc: error: unrecognized command line option 'wd1572'
gmake: *** [checklink.o] Error 1

ERROR: Unable to link with PETSc

+---END----------------------------------------------------------------------

When I run mpicc -version, I get "gcc (GCC) 4.9.2"

The PETSc version is 3.10.4, and It seems it was installed with openmpi and intel compiler (I might be wrong here).

The SLEPc version is 3.10.2.

Any suggestions? Should I set variables CC and CXX in the configuration command line for SLEPc?

Thank you in advance,

Ernesto.


Schlumberger-Private
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20200706/e98f0a03/attachment.html>


More information about the petsc-users mailing list