[petsc-users] PETSc on GCC

Simon Zhang SimonZhang at lbl.gov
Thu Aug 4 15:46:16 CDT 2022


I do have mpicc installed and have CFLAGS=-std=c99 but I'm still unable to
configure.

On Thu, Aug 4, 2022 at 12:21 PM Satish Balay <balay at mcs.anl.gov> wrote:

> > gcc (Ubuntu 4.8.4-2ubuntu1~14.04.4) 4.8.4
>
> Do you have a newer gcc version available for use on this machine?
>
> >>>>>>
> /tmp/petsc-7thm2vwz/config.setCompilers/conftest.c: At top level:
> cc1: warning: unrecognized command line option "-Wno-lto-type-mismatch"
> [enabled by default]
>
>             Rejecting compiler flag -std=c99 due to
> <<<<<<
>
> Hm - looks configure logic here is failing.
>
> -Wno-lto-type-mismatch checked went through earlier [so this flag was
> accepted] - but then when a test is retried with "-Wno-lto-type-mismatch
> -std=c99" its failing
>
> Perhaps one way to work around is to use configure option: CFLAGS=-std=c99
>
> But its better to use a more recent gcc than 4.8.4
>
> Satish
>
> On Thu, 4 Aug 2022, Simon Zhang wrote:
>
> > On Thu, Aug 4, 2022 at 10:05 AM Satish Balay <balay at mcs.anl.gov> wrote:
> >
> > > please send the corresponding configure.log
> > >
> > > Satish
> > >
> > > On Thu, 4 Aug 2022, Simon Zhang wrote:
> > >
> > > > To whom it may concern,
> > > >
> > > > I'm trying to install PETSc on my computer and PETSc is compliant
> with
> > > GCC
> > > > but something keeps going wrong at the compilation step. It's
> returning
> > > the
> > > > following message.
> > > >
> > > > PETSc requires c99 compiler! Configure could not determine compatible
> > > > compiler flag.
> > > >
> > > > How can I fix this problem?
> > > >
> > > > Thank you,
> > > > Simon Zhang
> > > >
> > >
> > >
> >
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20220804/844cc71a/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: configure.log
Type: text/x-log
Size: 640285 bytes
Desc: not available
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20220804/844cc71a/attachment-0001.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Screenshot from 2022-08-04 13-41-19.png
Type: image/png
Size: 341469 bytes
Desc: not available
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20220804/844cc71a/attachment-0001.png>


More information about the petsc-users mailing list