Bug #10629
closedCompile error in signal.c: ‘received_signal’ undeclared
Description
I got the following error when making "make up; make install-nodoc", in the compilation of signal.c, on cygwin.
Most of the lines in signal.c that mention "received_signal" have been introduced (changed?) in r48910, so I have tentatively assigned this issue to Nobu.
compiling signal.c
In file included from vm_core.h:25:0,
from signal.c:15:
signal.c: In function ‘check_reserved_signal_’:
signal.c:892:44: error: ‘received_signal’ undeclared (first use in this function)
const char *prev = ATOMIC_PTR_EXCHANGE(received_signal, name);
^
ruby_atomic.h:20:62: note: in definition of macro ‘ATOMIC_PTR_EXCHANGE’
define ATOMIC_PTR_EXCHANGE(var, val) __atomic_exchange_n(&(var), (val), __ATOMIC_SEQ_CST)¶
^
signal.c:892:44: note: each undeclared identifier is reported only once for each function it appears in
const char *prev = ATOMIC_PTR_EXCHANGE(received_signal, name);
^
ruby_atomic.h:20:62: note: in definition of macro ‘ATOMIC_PTR_EXCHANGE’
define ATOMIC_PTR_EXCHANGE(var, val) __atomic_exchange_n(&(var), (val), __ATOMIC_SEQ_CST)¶
^
signal.c:892:5: error: incompatible type for argument 1 of ‘__atomic_exchange_n’
const char *prev = ATOMIC_PTR_EXCHANGE(received_signal, name);
^
Makefile:349: recipe for target 'signal.o' failed
make: *** [signal.o] Error 1