[ruby-core:67032] [ruby-trunk - Bug #10629] [Open] Compile error in signal.c: ‘received_signal’ undeclared

From: duerst@...
Date: 2014-12-22 04:50:54 UTC
List: ruby-core #67032
Issue #10629 has been reported by Martin D=C3=BCrst.

----------------------------------------
Bug #10629: Compile error in signal.c: =E2=80=98received_signal=E2=80=99 un=
declared
https://bugs.ruby-lang.org/issues/10629

* Author: Martin D=C3=BCrst
* Status: Open
* Priority: Normal
* Assignee: Nobuyoshi Nakada
* Category: core
* Target version:=20
* ruby -v: ruby 2.2.0dev (2014-12-18 trunk 48886) [x86_64-cygwin]
* Backport: 2.0.0: UNKNOWN, 2.1: UNKNOWN
----------------------------------------
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 intr=
oduced (changed?) in r48910, so I have tentatively assigned this issue to N=
obu.

compiling signal.c
In file included from vm_core.h:25:0,
                 from signal.c:15:
signal.c: In function =E2=80=98check_reserved_signal_=E2=80=99:
signal.c:892:44: error: =E2=80=98received_signal=E2=80=99 undeclared (first=
 use in this function)
     const char *prev =3D ATOMIC_PTR_EXCHANGE(received_signal, name);
                                            ^
ruby_atomic.h:20:62: note: in definition of macro =E2=80=98ATOMIC_PTR_EXCHA=
NGE=E2=80=99
 # 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 =3D ATOMIC_PTR_EXCHANGE(received_signal, name);
                                            ^
ruby_atomic.h:20:62: note: in definition of macro =E2=80=98ATOMIC_PTR_EXCHA=
NGE=E2=80=99
 # 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 =E2=80=98__atomi=
c_exchange_n=E2=80=99
     const char *prev =3D ATOMIC_PTR_EXCHANGE(received_signal, name);
     ^
Makefile:349: recipe for target 'signal.o' failed
make: *** [signal.o] Error 1




--=20
https://bugs.ruby-lang.org/

In This Thread

Prev Next