error: ‘SA_RESETHAND’ undeclared

125 views
Skip to first unread message

Pierre Trontin

unread,
May 26, 2023, 8:31:39 PM5/26/23
to basilisk-fr
Hello,

After updating to the new release, I have a problem compiling the portable (ISO C99) source code (_mycase.c) on my supercomputer :

mpicc -Wall -std=c99 -O2 -D_MPI=1 _mycase.c -o mycase.exe -lm

I have the following error :

src/grid/fpe.h:50:18: error: ‘SA_RESETHAND’ undeclared (first use in this function)

I didn't observe this problem with an older version of Basilisk.

My GCC and MPICC versions : 9.4.0

No problem to generate the portable source code _mycase.c

Has anyone ever encountered this difficulty ?

Thank you.

Pierre

Stephane Popinet

unread,
May 27, 2023, 5:02:17 AM5/27/23
to basil...@googlegroups.com
Hi Pierre,

Did you try:

mpicc -Wall -std=c99 -D_XOPEN_SOURCE=700 -O2 -D_MPI=1 _mycase.c -o
mycase.exe -lm

Stephane

PS: see also

% man sigaction

and read the "Notes" section on POSIX standards.

Pierre Trontin

unread,
May 27, 2023, 9:42:05 AM5/27/23
to basilisk-fr
Hello Stephane,

It now works fine with option -D_XOPEN_SOURCE=700

Thanks a lot !

Pierre
Reply all
Reply to author
Forward
0 new messages