[petsc-users] scotch compilation error on 14.2 with intel compiler
Yann Jobic
yann.jobic at univ-amu.fr
Thu Dec 3 16:02:14 CST 2020
Le 12/3/2020 à 9:14 PM, Matthew Knepley a écrit :
> On Thu, Dec 3, 2020 at 3:10 PM Yann Jobic <yann.jobic at univ-amu.fr
> <mailto: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
> <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?
Yes it did !
For intel 17 and 18.
Thanks a lot,
Yann
>
> 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/>
More information about the petsc-users
mailing list