Bug #9705
closed
Installing ruby 2.1.1 fails while compiling (after: rvm install 2.1.1)
Added by ahibal (Ahilleas Balaktsis) over 10 years ago.
Updated over 5 years ago.
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
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?
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.
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.
- 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.
- Related to Bug #10120: TestSprintf#test_float still an issue added
- Status changed from Open to Feedback
Ruby 2.1 was EOL status. Can you try to build with Ruby 2.3 or 2.4?
- Status changed from Feedback to Closed
Also available in: Atom
PDF
Like0
Like0Like0Like0Like0Like0Like0Like0Like0