[petsc-users] petsc configure problem
Gael
gael.chenjiahong at foxmail.com
Thu Jun 22 02:29:32 CDT 2023
Thanks for your help! Using 'mpiicc, mpiicpc, mpiifort' works well! And yes, intel compiler is used intentionally for my installation.
Jiahong CHEN
------------------ Original ------------------
From: "petsc-users" <balay at mcs.anl.gov>;
Date: Thu, Jun 22, 2023 12:15 PM
To: "Gael"<gael.chenjiahong at foxmail.com>;
Cc: "petsc-users"<petsc-users at mcs.anl.gov>;
Subject: Re: [petsc-users] petsc configure problem
> --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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20230622/2018d94d/attachment.html>
More information about the petsc-users
mailing list