[petsc-users] scotch compilation error on 14.2 with intel compiler
Matthew Knepley
knepley at gmail.com
Thu Dec 3 14:14:01 CST 2020
On Thu, Dec 3, 2020 at 3:10 PM Yann Jobic <yann.jobic at univ-amu.fr> wrote:
> Hi all,
>
> I'm running on a surprising compilation problem with petsc 14.1 and
> 14.2 on centos 7.9, with the intel compiler (17 and 18).
>
> I've got this error on the scotch lib :
>
> make[2]: Leaving directory
>
> `/home/yjobic/petsc/petsc-3.14.2/intel-mkl-sky/externalpackages/git.ptscotch/src/libscotch'
> make[1]: Leaving directory
> `/home/yjobic/petsc/petsc-3.14.2/intel-mkl-sky/externalpackages/git.ptscotch/src/libscotch'In
>
> file included from /usr/include/sys/wait.h(30),
> from common.h(130),
> from common_string.c(57):
> /usr/include/signal.h(156): error: identifier "siginfo_t" is undefined
> extern void psiginfo (const siginfo_t *__pinfo, const char *__s);
>
> I know it's not a petsc error, but it's mandatory for mumps, and as it's
> a well known lib that should be used a lot, maybe someone has
> encountered this error.
>
> I tried intel 17, and intel 18 on centos 7.9
> I don't have any problems with the gcc compiler, but i would like to
> compile petsc with the intel compiler.
>
> Just in case, i put the configure.log in attachment.
>
I found this related thing with Clang:
https://stackoverflow.com/questions/22912674/unknown-type-name-siginfo-t-with-clang-using-posix-c-source-2-why
Can you see if
--COPTFLAGS="-D_POSIX_C_SOURCE=199309L"
fixes this?
Thanks,
Matt
> Thanks,
>
> Regards,
>
> Yann
>
--
What most experimenters take for granted before they begin their
experiments is infinitely more interesting than any results to which their
experiments lead.
-- Norbert Wiener
https://www.cse.buffalo.edu/~knepley/ <http://www.cse.buffalo.edu/~knepley/>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20201203/a701ec4b/attachment.html>
More information about the petsc-users
mailing list