Project

General

Profile

Actions

Bug #10629

closed

Compile error in signal.c: ‘received_signal’ undeclared

Added by duerst (Martin Dürst) over 9 years ago. Updated over 9 years ago.

Status:
Closed
Target version:
-
ruby -v:
ruby 2.2.0dev (2014-12-18 trunk 48886) [x86_64-cygwin]
[ruby-core:67032]

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

Updated by nobu (Nobuyoshi Nakada) over 9 years ago

  • Status changed from Open to Closed
  • % Done changed from 0 to 100

Applied in changeset r48920.


signal.c: fix received_signal

Actions

Also available in: Atom PDF

Like0
Like0