* [ruby-core:120313] [Ruby master Bug#20967] Oracle Developer Studio 12.5 on Solaris 10 miniruby symbol referencing error: Undefined symbol: atomic_signal_fence
@ 2024-12-19 5:00 ngoto (Naohisa Goto) via ruby-core
2024-12-19 5:09 ` [ruby-core:120314] " ngoto (Naohisa Goto) via ruby-core
0 siblings, 1 reply; 2+ messages in thread
From: ngoto (Naohisa Goto) via ruby-core @ 2024-12-19 5:00 UTC (permalink / raw)
To: ruby-core; +Cc: ngoto (Naohisa Goto)
Issue #20967 has been reported by ngoto (Naohisa Goto).
----------------------------------------
Bug #20967: Oracle Developer Studio 12.5 on Solaris 10 miniruby symbol referencing error: Undefined symbol: atomic_signal_fence
https://bugs.ruby-lang.org/issues/20967
* Author: ngoto (Naohisa Goto)
* Status: Open
* Assignee: ngoto (Naohisa Goto)
* ruby -v: ruby 3.3.5 (2024-11-05 revision 664bbbd0fd) [sparc64-solaris2.10]
* Backport: 3.1: UNKNOWN, 3.2: UNKNOWN, 3.3: UNKNOWN
----------------------------------------
When compiling Ruby 3.3 or head by using Oracle Developer Studio 12.5 on Solaris 10, failed to make miniruby with the following error messages:
```
Undefined first referenced
symbol in file
atomic_signal_fence vm.o
ld: fatal: symbol referencing errors. No output written to miniruby
make: *** [miniruby] Error 2
```
Ruby 3.3.4 or later may be affected.
This error occurred because of improper selection of atomic library in Oracle Developer Studio.
https://docs.oracle.com/cd/E77782_01/html/E77789/gqhbq.html
Adding `cflags` to `-xatomic=studio` or `-xatomic=gcc` when running `./configure` solved the problem.
For example,
```
./configure --prefix=/opt/ruby340 cflags="-xatomic=gcc"
```
--
https://bugs.ruby-lang.org/
______________________________________________
ruby-core mailing list -- ruby-core@ml.ruby-lang.org
To unsubscribe send an email to ruby-core-leave@ml.ruby-lang.org
ruby-core info -- https://ml.ruby-lang.org/mailman3/lists/ruby-core.ml.ruby-lang.org/
^ permalink raw reply [flat|nested] 2+ messages in thread
* [ruby-core:120314] [Ruby master Bug#20967] Oracle Developer Studio 12.5 on Solaris 10 miniruby symbol referencing error: Undefined symbol: atomic_signal_fence
2024-12-19 5:00 [ruby-core:120313] [Ruby master Bug#20967] Oracle Developer Studio 12.5 on Solaris 10 miniruby symbol referencing error: Undefined symbol: atomic_signal_fence ngoto (Naohisa Goto) via ruby-core
@ 2024-12-19 5:09 ` ngoto (Naohisa Goto) via ruby-core
0 siblings, 0 replies; 2+ messages in thread
From: ngoto (Naohisa Goto) via ruby-core @ 2024-12-19 5:09 UTC (permalink / raw)
To: ruby-core; +Cc: ngoto (Naohisa Goto)
Issue #20967 has been updated by ngoto (Naohisa Goto).
Status changed from Open to Closed
I think that it is difficult to add `-xatomic=studio` or `-xatomic=gcc` automatically to `cflags` or `CFLAGS` by `./configure` because it is difficult to determine which is appropriate or better option.
I think installing users should determine this.
Generally, I think `-xatomic=gcc` is preferred on system with GCC installed.
So, closing this issue.
----------------------------------------
Bug #20967: Oracle Developer Studio 12.5 on Solaris 10 miniruby symbol referencing error: Undefined symbol: atomic_signal_fence
https://bugs.ruby-lang.org/issues/20967#change-111079
* Author: ngoto (Naohisa Goto)
* Status: Closed
* Assignee: ngoto (Naohisa Goto)
* ruby -v: ruby 3.3.5 (2024-11-05 revision 664bbbd0fd) [sparc64-solaris2.10]
* Backport: 3.1: UNKNOWN, 3.2: UNKNOWN, 3.3: UNKNOWN
----------------------------------------
When compiling Ruby 3.3 or head by using Oracle Developer Studio 12.5 on Solaris 10, failed to make miniruby with the following error messages:
```
Undefined first referenced
symbol in file
atomic_signal_fence vm.o
ld: fatal: symbol referencing errors. No output written to miniruby
make: *** [miniruby] Error 2
```
Ruby 3.3.4 or later may be affected.
This error occurred because of improper selection of atomic library in Oracle Developer Studio.
https://docs.oracle.com/cd/E77782_01/html/E77789/gqhbq.html
Adding `cflags` to `-xatomic=studio` or `-xatomic=gcc` when running `./configure` solved the problem.
For example,
```
./configure --prefix=/opt/ruby340 cflags="-xatomic=gcc"
```
--
https://bugs.ruby-lang.org/
______________________________________________
ruby-core mailing list -- ruby-core@ml.ruby-lang.org
To unsubscribe send an email to ruby-core-leave@ml.ruby-lang.org
ruby-core info -- https://ml.ruby-lang.org/mailman3/lists/ruby-core.ml.ruby-lang.org/
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2024-12-19 5:09 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-12-19 5:00 [ruby-core:120313] [Ruby master Bug#20967] Oracle Developer Studio 12.5 on Solaris 10 miniruby symbol referencing error: Undefined symbol: atomic_signal_fence ngoto (Naohisa Goto) via ruby-core
2024-12-19 5:09 ` [ruby-core:120314] " ngoto (Naohisa Goto) via ruby-core
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).