Bug #9705
closedInstalling ruby 2.1.1 fails while compiling (after: rvm install 2.1.1)
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
Updated by athlon_user (C. A.) over 10 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 10 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 10 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 10 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 10 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 10 years ago
- Related to Bug #10120: TestSprintf#test_float still an issue added
Updated by hsbt (Hiroshi SHIBATA) about 7 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) over 5 years ago
- Status changed from Feedback to Closed