Issue #15227 has been reported by Kulikjak (Jakub Kulik).

----------------------------------------
Bug #15227: Wrong version of ruby is used during tests
https://bugs.ruby-lang.org/issues/15227

* Author: Kulikjak (Jakub Kulik)
* Status: Open
* Priority: Normal
* Assignee: 
* Target version: 
* ruby -v: ruby 2.5.1p57 (2018-03-29 revision 63029) [sparcv9-solaris2.11]
* Backport: 2.3: UNKNOWN, 2.4: UNKNOWN, 2.5: UNKNOWN
----------------------------------------
When I installed ruby 2.5 and run its internal tests, I noticed relocation error:

*ld.so.1: ruby: fatal: relocation error: file /usr/ruby/2.1/bin/ruby: symbol rb_cFixnum: referenced symbol not found*

Problem isn't the error itself but the fact that tests are using ruby 2.1 (which is also installed on the machine and is the default version) instead of the one it should be testing. When I install ruby 2.5 and set it as main version (ruby link points to -> ruby2.5), the error message goes away. I wasn't able to locate it but i believe that somewhere tests are using just ruby and not absolute path to version 2.5.

Maybe I don't have something set correctly, but even the ruby -v command right above the error line tells me that it is using ruby 2.5.1.

Whole test output is attached.

---Files--------------------------------
ruby_sparc_test_output.txt (25.1 KB)


-- 
https://bugs.ruby-lang.org/

Unsubscribe: <mailto:ruby-core-request / ruby-lang.org?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-core>