[petsc-users] petsc configure problem

Satish Balay balay at mcs.anl.gov
Wed Jun 21 23:15:29 CDT 2023


>  --with-cc=mpicc --with-cxx=mpicxx --with-fc=mpi PETSC_ARCH=intel_2020

> Executing: mpicc --version
> stdout:
> gcc (GCC) 7.3.1 20180303 (Red Hat 7.3.1-5)

Did you intend to use Intel compilers?

>>>>>
/tmp/petsc-sMhvLh/config.setCompilers/conftest.c: In function ‘main’:
/tmp/petsc-sMhvLh/config.setCompilers/conftest.c:8:9: error: ‘FLT_ROUNDS’ undeclared (first use in this function)
     y = FLT_ROUNDS;
         ^~~~~~~~~~
<<<<<

Perhaps the intel compiler setup in env is causing gcc to misbehave?

i.e if you are attempting an install with intel compilers - use 'mpiicc, mpiicpc, mpiifort'

if you are attempting an install with gcc - avoid the intel compiler setup in env

Also currently supported release in petsc-3.19 - we suggest using it instead of 3.14

Satish



On Thu, 22 Jun 2023, Gael wrote:

> To whom it may concern,
> 
> 
> I'm trying to install PETSc on my HPC, and in the configure step something keeps going wrong with the following message:
> 
> 
> PETSc requires c99 compiler! Configure could not determine compatible compiler flag. Perhaps you can specify via CFLAGS
> 
> 
> We have googled it and try to add CFLAGS spefified in this post Re: [petsc-users] PETSc on GCC (mail-archive.com). But none could work and the error message changed as:
> 
> 
> C compiler you provided with -with-cc=mpicc cannot be found or does not work. Cannot compile C with mpicc.
> 
> 
> 
> My log file is attached. Could you please give some suggestions on this problem?
> 
> 
> Thank you,
> Jiahong CHEN


More information about the petsc-users mailing list