Project

General

Profile

Bug #9705

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

Added by ahibal (Ahilleas Balaktsis) over 5 years ago. Updated 5 months ago.

Status:
Closed
Priority:
Normal
Assignee:
cruby-linux
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

Related to Ruby master - Bug #10120: TestSprintf#test_float still an issueClosed08/09/2014Actions

History

Updated by athlon_user (C. A.) over 5 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) over 5 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.) over 5 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.

Regards,
C. A.

Updated by nagachika (Tomoyuki Chikanaga) over 5 years ago

  • 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 5 years ago

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) over 5 years ago

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

Updated by hsbt (Hiroshi SHIBATA) about 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?

#8

Updated by jeremyevans0 (Jeremy Evans) 5 months ago

  • Status changed from Feedback to Closed

Also available in: Atom PDF