+ case "${usergroup_phase}" in
+ local run_cmd
+ run_cmd=run_su
+ shift
+ run_su /usr/pkg/bin/bmake all BATCH=1 DEPENDS_TARGET=/nonexistent RUBY_VERSION_REQD=31 WRKLOG=/tmp/bulklog/ruby31-base-3.1.3/work.log
+ su pbulk -c '"$@"' make /usr/pkg/bin/bmake all BATCH=1 DEPENDS_TARGET=/nonexistent RUBY_VERSION_REQD=31 WRKLOG=/tmp/bulklog/ruby31-base-3.1.3/work.log
=> Bootstrap dependency digest>=20211023: found digest-20220214
===> Building for ruby31-base-3.1.3
	BASERUBY = echo executable host ruby is required.  use --with-baseruby option.; false
	CC = cc -std=gnu11
	LD = ld
	LDSHARED = cc -std=gnu11 -shared
	CFLAGS = -pipe -O2 -D_FORTIFY_SOURCE=2 -pthread -I/usr/pkg/include/db4 -I/usr/include -I/usr/pkg/include -fPIC 
	XCFLAGS = -D_FORTIFY_SOURCE=2 -fno-strict-overflow -fvisibility=hidden -fexcess-precision=standard -DRUBY_EXPORT -I. -I.ext/include/x86_64-linux -I./include -I. -I./enc/unicode/13.0.0
	CPPFLAGS = -I/usr/pkg/include/db4 -I/usr/include -I/usr/pkg/include   
	DLDFLAGS = -Wl,-zrelro -L/usr/pkg/lib -Wl,-R/usr/pkg/lib -pthread -L/usr/lib64 -Wl,-R/usr/lib64 -Wl,--compress-debug-sections=zlib -Wl,-soname,libruby31.so.3.1   
	SOLIBS = -lz -lpthread -lrt -lrt -ldl -lcrypt -lm -lpthread -lrt
	LANG = C
	LC_ALL = C
	LC_CTYPE = C
	MFLAGS =  
gcc (GCC) 4.8.5 20150623 (Red Hat 4.8.5-44)
Copyright (C) 2015 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

making dummy probes.h
compiling vm.c
In file included from vm_core.h:83:0,
                 from eval_intern.h:5,
                 from vm.c:13:
thread_pthread.h:108:43: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'struct'
     RUBY_EXTERN RB_THREAD_LOCAL_SPECIFIER struct rb_execution_context_struct *ruby_current_ec;
                                           ^
In file included from eval_intern.h:5:0,
                 from vm.c:13:
vm_core.h: In function 'rb_current_execution_context':
vm_core.h:1870:34: error: 'ruby_current_ec' undeclared (first use in this function)
     rb_execution_context_t *ec = ruby_current_ec;
                                  ^
vm_core.h:1870:34: note: each undeclared identifier is reported only once for each function it appears in
In file included from vm.c:39:0:
ractor_core.h: In function 'rb_ractor_set_current_ec':
ractor_core.h:267:5: error: 'ruby_current_ec' undeclared (first use in this function)
     ruby_current_ec = ec;
     ^
In file included from vm_core.h:83:0,
                 from eval_intern.h:5,
                 from vm.c:13:
vm.c: At top level:
thread_pthread.h:74:37: error: unknown type name '_Thread_local'
   #define RB_THREAD_LOCAL_SPECIFIER _Thread_local
                                     ^
vm.c:408:1: note: in expansion of macro 'RB_THREAD_LOCAL_SPECIFIER'
 RB_THREAD_LOCAL_SPECIFIER rb_execution_context_t *ruby_current_ec;
 ^
vm.c:408:50: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token
 RB_THREAD_LOCAL_SPECIFIER rb_execution_context_t *ruby_current_ec;
                                                  ^
*** Error code 1

Stop.
bmake: stopped in /home/pbulk/build/lang/ruby31-base/work/ruby-3.1.3
*** Error code 1

Stop.
bmake[1]: stopped in /data/jenkins/workspace/pkgsrc-el7-trunk-x86_64/lang/ruby31-base
*** Error code 1

Stop.
bmake: stopped in /data/jenkins/workspace/pkgsrc-el7-trunk-x86_64/lang/ruby31-base