
Issue #20633 has been updated by ivoanjo (Ivo Anjo). Thanks @kimuraw for fixing my mistake ð I've also opened the PRs to backport your fix to the Ruby 3.3 and 3.2 branches: * https://github.com/ruby/ruby/pull/11167 * https://github.com/ruby/ruby/pull/11166 ---------------------------------------- Bug #20633: compile error at vm_insnhelper.c when HAVE_DECL_ATOMIC_SIGNAL_FENCE is 0 https://bugs.ruby-lang.org/issues/20633#change-109129 * Author: kimuraw (Wataru Kimura) * Status: Closed * Backport: 3.1: UNKNOWN, 3.2: UNKNOWN, 3.3: UNKNOWN ---------------------------------------- æšæãšãããŸãã æè¿å°å ¥ããããvm_insnhelper.c äžã§ã® atomic_signal_fence()ã®åŒã³åºã[1]ã config.hã§ â#define HAVE_DECL_ATOMIC_SIGNAL_FENCE 0â ã®ãšãã³ã³ãã€ã«ãšã©ãŒã«ãªããŸãã ããããã³ãŒãã®æå³ãšç°ãªããšæãã®ã§ãããéããŸãã ``` compiling array.c compiling vm.c In file included from vm.c:514: ./vm_insnhelper.c:400:5: warning: implicit declaration of function 'atomic_signal_fence' is invalid in C99 [-Wimplicit-function-declaration] atomic_signal_fence(memory_order_seq_cst); ^ ./vm_insnhelper.c:400:25: error: use of undeclared identifier 'memory_order_seq_cst' atomic_signal_fence(memory_order_seq_cst); ^ 1 warning and 1 error generated. ``` [1] Add explicit compiler fence when pushing frames to ensure safe profiling https://github.com/ruby/ruby/commit/64fef3b870a8ed8147654531aef4c065d8a730c6 ---Files-------------------------------- patch-vm_insnhelper.c.diff (535 Bytes) -- https://bugs.ruby-lang.org/