Project

General

Profile

Actions

Bug #20967

closed

Oracle Developer Studio 12.5 on Solaris 10 miniruby symbol referencing error: Undefined symbol: atomic_signal_fence

Added by ngoto (Naohisa Goto) about 8 hours ago. Updated about 8 hours ago.

Status:
Closed
Target version:
-
ruby -v:
ruby 3.3.5 (2024-11-05 revision 664bbbd0fd) [sparc64-solaris2.10]
[ruby-core:120313]

Description

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"
Actions

Also available in: Atom PDF

Like0
Like0