Bug #9705

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

Added by ahibal (Ahilleas Balaktsis) almost 6 years ago. Updated 9 months ago.

Target version:
ruby -v:


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


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.


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

Related to Ruby master - Bug #10120: TestSprintf#test_float still an issueClosed08/09/2014nobu (Nobuyoshi Nakada)Actions

Updated by athlon_user (C. A.) almost 6 years ago

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) almost 6 years ago

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.) almost 6 years ago

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.

C. A.

Updated by nagachika (Tomoyuki Chikanaga) almost 6 years ago

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


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

Updated by athlon_user (C. A.) almost 6 years ago

I tried it via rvm, but it still does not work, see this thread on github:


Updated by hsbt (Hiroshi SHIBATA) over 5 years ago

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

Updated by hsbt (Hiroshi SHIBATA) over 2 years ago

  • 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) 9 months ago

  • Status changed from Feedback to Closed

Also available in: Atom PDF