Project

General

Profile

Actions

Bug #9705

closed

Installing ruby 2.1.1 fails while compiling (after: rvm install 2.1.1)

Bug #9705: Installing ruby 2.1.1 fails while compiling (after: rvm install 2.1.1)

Added by ahibal (Ahilleas Balaktsis) over 11 years ago. Updated about 6 years ago.

Status:
Closed
Assignee:
Target version:
-
ruby -v:
2.1.1
[ruby-core:61865]

Description

Possible relevance with cpu recognition (CPU is amd athlon 1200 32bit)

[[https://gist.github.com/ahibal/f41ee307085f35709704#file-make-log]]

last lines of make.log:

.
.
.
compiling addr2line.c
compiling dmyext.c
linking miniruby
make: *** [.rbconfig.time] Illegal instruction
++ return 2
There has been an error while running make. Halting the installation.

Files

make.log (4.97 KB) make.log ahibal (Ahilleas Balaktsis), 04/04/2014 08:53 PM
environment variables (3.71 KB) environment variables ahibal (Ahilleas Balaktsis), 04/04/2014 08:57 PM
output (1.66 KB) output ahibal (Ahilleas Balaktsis), 04/04/2014 08:57 PM

Related issues 1 (0 open1 closed)

Related to Ruby - Bug #10120: TestSprintf#test_float still an issueClosednobu (Nobuyoshi Nakada)Actions

Updated by athlon_user (C. A.) over 11 years ago Actions #1 [ruby-core:62581]

I have exactly the same issue with my Athlon XP 2600+.
The compilation process stops every time at the same point as mentioned by Ahilleas Balaktsis, no matter if I compile with rvm or use the Ruby sources directly. Trying to compile with CFLAGS="-march=athlon" or CFLAGS='-m32' CXXFLAGS='-m32' LDFLAGS='-m32' does not help either.

The same problem occurs when trying to compile Ruby 2.1.2.
Compiling the mentioned Ruby versions with an old Pentium M works flawlessly. Might be because Athlon XP CPUs do not support SSE2?

Updated by phasis68 (Heesob Park) over 11 years ago Actions #2 [ruby-core:62582]

Athlon XP processor does not have SSE2 support.
SSE2 support was added with the Athlon 64 processor.
But the generated Makefile has XCFLAGS includes -msse2 -mfpmath=sse

It seems that the configure script failed to check whether -msse2 -mfpmath=sse is accepted on the linux build on Athlon XP.

Updated by athlon_user (C. A.) over 11 years ago Actions #3 [ruby-core:62585]

Great tip, thanks a lot Heesob Park!
In line 67 in Ruby 2.1.2 Makefile, one simply has to change -msse2 to -msse, and compilation will complete successfully on Athlon XP processor.
I hope this will get fixed in future releases.

Regards,
C. A.

Updated by nagachika (Tomoyuki Chikanaga) over 11 years ago Actions #4 [ruby-core:62896]

  • Backport changed from 2.0.0: UNKNOWN, 2.1: UNKNOWN to 2.0.0: UNKNOWN, 2.1: REQUIRED

Hello,

Could you try with trunk? I wonder if this is already fixed on trunk.

Updated by athlon_user (C. A.) over 11 years ago Actions #5 [ruby-core:62961]

I tried it via rvm, but it still does not work, see this thread on github:
https://github.com/wayneeseguin/rvm/issues/2850#issuecomment-45339676

Regards,
Carsten

Updated by hsbt (Hiroshi SHIBATA) about 11 years ago Actions #6 [ruby-core:64324]

  • Related to Bug #10120: TestSprintf#test_float still an issue added

Updated by hsbt (Hiroshi SHIBATA) almost 8 years ago Actions #7 [ruby-core:84122]

  • Status changed from Open to Feedback

Ruby 2.1 was EOL status. Can you try to build with Ruby 2.3 or 2.4?

Updated by jeremyevans0 (Jeremy Evans) about 6 years ago Actions #8

  • Status changed from Feedback to Closed
Actions

Also available in: PDF Atom