From: "ivoanjo (Ivo Anjo) via ruby-dev" <ruby-dev@ml.ruby-lang.org>
To: ruby-dev@ml.ruby-lang.org
Cc: "ivoanjo (Ivo Anjo)" <noreply@ruby-lang.org>
Subject: [ruby-dev:52097] [Ruby master Bug#20633] compile error at vm_insnhelper.c when HAVE_DECL_ATOMIC_SIGNAL_FENCE is 0
Date: Mon, 15 Jul 2024 08:19:23 +0000 (UTC) [thread overview]
Message-ID: <redmine.journal-109129.20240715081923.205@ruby-lang.org> (raw)
In-Reply-To: <redmine.issue-20633.20240713104359.205@ruby-lang.org>
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/
_______________________________________________
ruby-dev mailing list -- ruby-dev@ml.ruby-lang.org
To unsubscribe send an email to ruby-dev-leave@ml.ruby-lang.org
next prev parent reply other threads:[~2024-07-15 8:19 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-07-13 10:43 [ruby-dev:52096] " kimuraw (Wataru Kimura) via ruby-dev
2024-07-15 8:19 ` ivoanjo (Ivo Anjo) via ruby-dev [this message]
2024-07-15 11:45 ` [ruby-dev:52098] " nagachika (Tomoyuki Chikanaga) via ruby-dev
2024-09-02 8:42 ` [ruby-dev:52108] " k0kubun (Takashi Kokubun) via ruby-dev
2024-09-02 8:55 ` [ruby-dev:52109] " ivoanjo (Ivo Anjo) via ruby-dev
2024-09-02 9:31 ` [ruby-dev:52110] " k0kubun (Takashi Kokubun) via ruby-dev
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=redmine.journal-109129.20240715081923.205@ruby-lang.org \
--to=ruby-dev@ml.ruby-lang.org \
--cc=noreply@ruby-lang.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).