| "make update-download DEFS=\"-DRGENGC_CHECK_MODE=2\"" exit with 0. |
| "make update-src DEFS=\"-DRGENGC_CHECK_MODE=2\"" exit with 0. |
| "make after-update DEFS=\"-DRGENGC_CHECK_MODE=2\"" exit with 0. |
| "make miniruby DEFS=\"-DRGENGC_CHECK_MODE=2\"" exit with 512. |
| /tmp/ruby/src/trunk-gc-asserts/gc_impl.c: In function ‘newobj_init’: |
| /tmp/ruby/src/trunk-gc-asserts/gc_impl.c:2355:5: error: ‘p’ undeclared (first use in this function) |
| 2355 | p->as.values.v1 = p->as.values.v2 = p->as.values.v3 = 0; |
| | ^ |
| /tmp/ruby/src/trunk-gc-asserts/gc_impl.c:2355:5: note: each undeclared identifier is reported only once for each function it appears in |
| In file included from /tmp/ruby/src/trunk-gc-asserts/include/ruby/defines.h:72, |
| from /tmp/ruby/src/trunk-gc-asserts/include/ruby/ruby.h:25, |
| from /tmp/ruby/src/trunk-gc-asserts/gc_impl.c:15: |
| /tmp/ruby/src/trunk-gc-asserts/gc_impl.c: In function ‘ractor_cache_allocate_slot’: |
| /tmp/ruby/src/trunk-gc-asserts/gc_impl.c:2454:19: warning: implicit declaration of function ‘rb_gc_obj_slot_size’; did you mean ‘rb_gc_impl_obj_slot_size’? [-Wimplicit-function-declaration] |
| 2454 | GC_ASSERT(rb_gc_obj_slot_size(obj) == stride); |
| | ^~~~~~~~~~~~~~~~~~~ |
| /tmp/ruby/src/trunk-gc-asserts/include/ruby/backward/2/assume.h:43:46: note: in definition of macro ‘RB_LIKELY’ |
| 43 | # define RB_LIKELY(x) (__builtin_expect(!!(x), 1)) |
| | ^ |
| /tmp/ruby/src/trunk-gc-asserts/include/ruby/assert.h:263:15: note: in expansion of macro ‘RUBY_ASSERT_MESG’ |
| 263 | ((cond) ? RUBY_ASSERT_MESG((expr), __VA_ARGS__) : RBIMPL_ASSERT_NOTHING) |
| | ^~~~~~~~~~~~~~~~ |
| /tmp/ruby/src/trunk-gc-asserts/gc_impl.c:284:25: note: in expansion of macro ‘RUBY_ASSERT_MESG_WHEN’ |
| 284 | #define GC_ASSERT(expr) RUBY_ASSERT_MESG_WHEN(RGENGC_CHECK_MODE > 0, expr, #expr) |
| | ^~~~~~~~~~~~~~~~~~~~~ |
| /tmp/ruby/src/trunk-gc-asserts/gc_impl.c:2454:9: note: in expansion of macro ‘GC_ASSERT’ |
| 2454 | GC_ASSERT(rb_gc_obj_slot_size(obj) == stride); |
| | ^~~~~~~~~ |
| /tmp/ruby/src/trunk-gc-asserts/gc_impl.c:2454:44: warning: comparison of integer expressions of different signedness: ‘int’ and ‘size_t’ {aka ‘long unsigned int’} [-Wsign-compare] |
| 2454 | GC_ASSERT(rb_gc_obj_slot_size(obj) == stride); |
| | ^~ |
| /tmp/ruby/src/trunk-gc-asserts/include/ruby/backward/2/assume.h:43:46: note: in definition of macro ‘RB_LIKELY’ |
| 43 | # define RB_LIKELY(x) (__builtin_expect(!!(x), 1)) |
| | ^ |
| /tmp/ruby/src/trunk-gc-asserts/include/ruby/assert.h:263:15: note: in expansion of macro ‘RUBY_ASSERT_MESG’ |
| 263 | ((cond) ? RUBY_ASSERT_MESG((expr), __VA_ARGS__) : RBIMPL_ASSERT_NOTHING) |
| | ^~~~~~~~~~~~~~~~ |
| /tmp/ruby/src/trunk-gc-asserts/gc_impl.c:284:25: note: in expansion of macro ‘RUBY_ASSERT_MESG_WHEN’ |
| 284 | #define GC_ASSERT(expr) RUBY_ASSERT_MESG_WHEN(RGENGC_CHECK_MODE > 0, expr, #expr) |
| | ^~~~~~~~~~~~~~~~~~~~~ |
| /tmp/ruby/src/trunk-gc-asserts/gc_impl.c:2454:9: note: in expansion of macro ‘GC_ASSERT’ |
| 2454 | GC_ASSERT(rb_gc_obj_slot_size(obj) == stride); |
| | ^~~~~~~~~ |
| /tmp/ruby/src/trunk-gc-asserts/gc_impl.c: In function ‘gc_sweep_plane’: |
| /tmp/ruby/src/trunk-gc-asserts/gc_impl.c:3697:38: warning: passing argument 1 of ‘RVALUE_OLD_P’ makes pointer from integer without a cast [-Wint-conversion] |
| 3697 | if (RVALUE_OLD_P(vp)) rb_bug("page_sweep: %p - old while minor GC.", (void *)p); |
| | ^~ |
| | | |
| | VALUE {aka long unsigned int} |
| /tmp/ruby/src/trunk-gc-asserts/gc_impl.c:1452:29: note: expected ‘rb_objspace_t *’ {aka ‘struct rb_objspace *’} but argument is of type ‘VALUE’ {aka ‘long unsigned int’} |
| 1452 | RVALUE_OLD_P(rb_objspace_t *objspace, VALUE obj) |
| | ~~~~~~~~~~~~~~~^~~~~~~~ |
| /tmp/ruby/src/trunk-gc-asserts/gc_impl.c:3697:25: error: too few arguments to function ‘RVALUE_OLD_P’ |
| 3697 | if (RVALUE_OLD_P(vp)) rb_bug("page_sweep: %p - old while minor GC.", (void *)p); |
| | ^~~~~~~~~~~~ |
| /tmp/ruby/src/trunk-gc-asserts/gc_impl.c:1452:1: note: declared here |
| 1452 | RVALUE_OLD_P(rb_objspace_t *objspace, VALUE obj) |
| | ^~~~~~~~~~~~ |
| /tmp/ruby/src/trunk-gc-asserts/gc_impl.c:3698:43: warning: passing argument 1 of ‘RVALUE_REMEMBERED’ makes pointer from integer without a cast [-Wint-conversion] |
| 3698 | if (RVALUE_REMEMBERED(vp)) rb_bug("page_sweep: %p - remembered.", (void *)p); |
| | ^~ |
| | | |
| | VALUE {aka long unsigned int} |
| /tmp/ruby/src/trunk-gc-asserts/gc_impl.c:1289:34: note: expected ‘rb_objspace_t *’ {aka ‘struct rb_objspace *’} but argument is of type ‘VALUE’ {aka ‘long unsigned int’} |
| 1289 | RVALUE_REMEMBERED(rb_objspace_t *objspace, VALUE obj) |
| | ~~~~~~~~~~~~~~~^~~~~~~~ |
| /tmp/ruby/src/trunk-gc-asserts/gc_impl.c:3698:25: error: too few arguments to function ‘RVALUE_REMEMBERED’ |
| 3698 | if (RVALUE_REMEMBERED(vp)) rb_bug("page_sweep: %p - remembered.", (void *)p); |
| | ^~~~~~~~~~~~~~~~~ |
| /tmp/ruby/src/trunk-gc-asserts/gc_impl.c:1289:1: note: declared here |
| 1289 | RVALUE_REMEMBERED(rb_objspace_t *objspace, VALUE obj) |
| | ^~~~~~~~~~~~~~~~~ |
| /tmp/ruby/src/trunk-gc-asserts/gc_impl.c:3705:24: error: ‘obj’ undeclared (first use in this function) |
| 3705 | #define CHECK(x) if (x(obj) != FALSE) rb_bug("obj_free: " #x "(%s) != FALSE", rb_obj_info(obj)) |
| | ^~~ |
| /tmp/ruby/src/trunk-gc-asserts/gc_impl.c:3706:17: note: in expansion of macro ‘CHECK’ |
| 3706 | CHECK(RVALUE_WB_UNPROTECTED); |
| | ^~~~~ |
| /tmp/ruby/src/trunk-gc-asserts/gc_impl.c:3706:23: error: too few arguments to function ‘RVALUE_WB_UNPROTECTED’ |
| 3706 | CHECK(RVALUE_WB_UNPROTECTED); |
| | ^~~~~~~~~~~~~~~~~~~~~ |
| /tmp/ruby/src/trunk-gc-asserts/gc_impl.c:3705:22: note: in definition of macro ‘CHECK’ |
| 3705 | #define CHECK(x) if (x(obj) != FALSE) rb_bug("obj_free: " #x "(%s) != FALSE", rb_obj_info(obj)) |
| | ^ |
| /tmp/ruby/src/trunk-gc-asserts/gc_impl.c:1275:1: note: declared here |
| 1275 | RVALUE_WB_UNPROTECTED(rb_objspace_t *objspace, VALUE obj) |
| | ^~~~~~~~~~~~~~~~~~~~~ |
| /tmp/ruby/src/trunk-gc-asserts/gc_impl.c:3707:23: error: too few arguments to function ‘RVALUE_MARKED’ |
| 3707 | CHECK(RVALUE_MARKED); |
| | ^~~~~~~~~~~~~ |
| /tmp/ruby/src/trunk-gc-asserts/gc_impl.c:3705:22: note: in definition of macro ‘CHECK’ |
| 3705 | #define CHECK(x) if (x(obj) != FALSE) rb_bug("obj_free: " #x "(%s) != FALSE", rb_obj_info(obj)) |
| | ^ |
| /tmp/ruby/src/trunk-gc-asserts/gc_impl.c:1261:1: note: declared here |
| 1261 | RVALUE_MARKED(rb_objspace_t *objspace, VALUE obj) |
| | ^~~~~~~~~~~~~ |
| /tmp/ruby/src/trunk-gc-asserts/gc_impl.c:3708:23: error: too few arguments to function ‘RVALUE_MARKING’ |
| 3708 | CHECK(RVALUE_MARKING); |
| | ^~~~~~~~~~~~~~ |
| /tmp/ruby/src/trunk-gc-asserts/gc_impl.c:3705:22: note: in definition of macro ‘CHECK’ |
| 3705 | #define CHECK(x) if (x(obj) != FALSE) rb_bug("obj_free: " #x "(%s) != FALSE", rb_obj_info(obj)) |
| | ^ |
| /tmp/ruby/src/trunk-gc-asserts/gc_impl.c:1282:1: note: declared here |
| 1282 | RVALUE_MARKING(rb_objspace_t *objspace, VALUE obj) |
| | ^~~~~~~~~~~~~~ |
| /tmp/ruby/src/trunk-gc-asserts/gc_impl.c:3709:23: error: too few arguments to function ‘RVALUE_UNCOLLECTIBLE’ |
| 3709 | CHECK(RVALUE_UNCOLLECTIBLE); |
| | ^~~~~~~~~~~~~~~~~~~~ |
| /tmp/ruby/src/trunk-gc-asserts/gc_impl.c:3705:22: note: in definition of macro ‘CHECK’ |
| 3705 | #define CHECK(x) if (x(obj) != FALSE) rb_bug("obj_free: " #x "(%s) != FALSE", rb_obj_info(obj)) |
| | ^ |
| /tmp/ruby/src/trunk-gc-asserts/gc_impl.c:1296:1: note: declared here |
| 1296 | RVALUE_UNCOLLECTIBLE(rb_objspace_t *objspace, VALUE obj) |
| | ^~~~~~~~~~~~~~~~~~~~ |
| /tmp/ruby/src/trunk-gc-asserts/gc_impl.c: In function ‘gc_grey’: |
| /tmp/ruby/src/trunk-gc-asserts/gc_impl.c:4606:23: warning: passing argument 1 of ‘RVALUE_MARKED’ makes pointer from integer without a cast [-Wint-conversion] |
| 4606 | if (RVALUE_MARKED(obj) == FALSE) rb_bug("gc_grey: %s is not marked.", rb_obj_info(obj)); |
| | ^~~ |
| | | |
| | VALUE {aka long unsigned int} |
| /tmp/ruby/src/trunk-gc-asserts/gc_impl.c:1261:30: note: expected ‘rb_objspace_t *’ {aka ‘struct rb_objspace *’} but argument is of type ‘VALUE’ {aka ‘long unsigned int’} |
| 1261 | RVALUE_MARKED(rb_objspace_t *objspace, VALUE obj) |
| | ~~~~~~~~~~~~~~~^~~~~~~~ |
| /tmp/ruby/src/trunk-gc-asserts/gc_impl.c:4606:9: error: too few arguments to function ‘RVALUE_MARKED’ |
| 4606 | if (RVALUE_MARKED(obj) == FALSE) rb_bug("gc_grey: %s is not marked.", rb_obj_info(obj)); |
| | ^~~~~~~~~~~~~ |
| /tmp/ruby/src/trunk-gc-asserts/gc_impl.c:1261:1: note: declared here |
| 1261 | RVALUE_MARKED(rb_objspace_t *objspace, VALUE obj) |
| | ^~~~~~~~~~~~~ |
| /tmp/ruby/src/trunk-gc-asserts/gc_impl.c:4607:24: warning: passing argument 1 of ‘RVALUE_MARKING’ makes pointer from integer without a cast [-Wint-conversion] |
| 4607 | if (RVALUE_MARKING(obj) == TRUE) rb_bug("gc_grey: %s is marking/remembered.", rb_obj_info(obj)); |
| | ^~~ |
| | | |
| | VALUE {aka long unsigned int} |
| /tmp/ruby/src/trunk-gc-asserts/gc_impl.c:1282:31: note: expected ‘rb_objspace_t *’ {aka ‘struct rb_objspace *’} but argument is of type ‘VALUE’ {aka ‘long unsigned int’} |
| 1282 | RVALUE_MARKING(rb_objspace_t *objspace, VALUE obj) |
| | ~~~~~~~~~~~~~~~^~~~~~~~ |
| /tmp/ruby/src/trunk-gc-asserts/gc_impl.c:4607:9: error: too few arguments to function ‘RVALUE_MARKING’ |
| 4607 | if (RVALUE_MARKING(obj) == TRUE) rb_bug("gc_grey: %s is marking/remembered.", rb_obj_info(obj)); |
| | ^~~~~~~~~~~~~~ |
| /tmp/ruby/src/trunk-gc-asserts/gc_impl.c:1282:1: note: declared here |
| 1282 | RVALUE_MARKING(rb_objspace_t *objspace, VALUE obj) |
| | ^~~~~~~~~~~~~~ |
| /tmp/ruby/src/trunk-gc-asserts/gc_impl.c: In function ‘gc_set_auto_compact’: |
| /tmp/ruby/src/trunk-gc-asserts/gc_impl.c:9306:18: error: ‘val’ undeclared (first use in this function) |
| 9306 | if (SYMBOL_P(val)) { |
| | ^~~ |
| At top level: |
| cc1: note: unrecognized command-line option ‘-Wno-self-assign’ may have been intended to silence earlier diagnostics |
| cc1: note: unrecognized command-line option ‘-Wno-parentheses-equality’ may have been intended to silence earlier diagnostics |
| cc1: note: unrecognized command-line option ‘-Wno-constant-logical-operand’ may have been intended to silence earlier diagnostics |
| make: *** [Makefile:448: gc_impl.o] Error 1 |