[petsc-users] [Ext] Re: 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 19:02:28 CDT 2020
Thank you, Satish.
Ernesto.
Schlumberger-Private
-----Original Message-----
From: Satish Balay [mailto:balay at mcs.anl.gov]
Sent: Monday, July 6, 2020 5:18 PM
To: Ernesto Prudencio <EPrudencio at slb.com>
Cc: PETSc users list <petsc-users at mcs.anl.gov>
Subject: [Ext] Re: [petsc-users] Basic error " gcc: error: unrecognized command line option 'wd1572' " during the configuration step of SLEPc installation
Likely the [MPI] compiler env is different between PETSc and SLEPc builds.
PETSc was build with mpicc using icc. Now during SLEPc build - mpicc is attempting to use gcc.
petsc configure.log would have more info on which mpicc was used to install PETSc.
Satish
On Mon, 6 Jul 2020, Ernesto Prudencio via petsc-users wrote:
> 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_1
> > 0_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
>
More information about the petsc-users
mailing list