Bug #12511
closedcan't build 2.4.0-preview1 on Centos 5
Description
Building Ruby 2.4.0-preview1 fails on Centos 5 with the error below. I know that this is an ancient version, but...
Graham
% gcc -v
Using built-in specs.
Target: i386-redhat-linux
Configured with: ../configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --enable-shared --enable-threads=posix --enable-checking=release --with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions --enable-libgcj-multifile --enable-languages=c,c++,objc,obj-c++,java,fortran,ada --enable-java-awt=gtk --disable-dssi --disable-plugin --with-java-home=/usr/lib/jvm/java-1.4.2-gcj-1.4.2.0/jre --with-cpu=generic --host=i386-redhat-linux
Thread model: posix
gcc version 4.1.2 20080704 (Red Hat 4.1.2-55)
% make
...
vm_exec.c: In function 'vm_exec_core':
vm_exec.c:127: error: unable to find a register to spill in class 'SIREG'
vm_exec.c:127: error: this is the insn:
(insn:HI 9292 9290 9293 1119 vm.c:790 (parallel [
(set (reg:SI 2 cx [2872])
(const_int 0 [0x0]))
(set (reg/f:SI 2869 [ proc ])
(plus:SI (ashift:SI (reg:SI 2 cx [2871])
(const_int 2 [0x2]))
(reg/v/f:SI 5 di [orig:1244 proc ] [1244])))
(set (reg/f:SI 2870 [ block ])
(plus:SI (ashift:SI (reg:SI 2 cx [2871])
(const_int 2 [0x2]))
(reg/v/f:SI 1253 [ blockptr ])))
(set (mem/s:BLK (reg/v/f:SI 5 di [orig:1244 proc ] [1244]) [16 .block+0 S16 A32])
(mem/s:BLK (reg/v/f:SI 1253 [ blockptr ]) [16 S16 A32]))
(use (reg:SI 2 cx [2871]))
(use (reg:SI 19 dirflag))
]) 528 {*rep_movsi} (insn_list:REG_DEP_TRUE 9285 (insn_list:REG_DEP_TRUE 9289 (insn_list:REG_DEP_TRUE 9290 (nil))))
(expr_list:REG_UNUSED (reg/f:SI 2870 [ block ])
(expr_list:REG_UNUSED (reg/f:SI 2869 [ proc ])
(expr_list:REG_UNUSED (reg:SI 2 cx [2872])
(expr_list:REG_DEAD (reg:SI 19 dirflag)
(expr_list:REG_DEAD (reg/v/f:SI 1253 [ blockptr ])
(expr_list:REG_DEAD (reg:SI 2 cx [2871])
(expr_list:REG_UNUSED (reg/f:SI 2870 [ block ])
(expr_list:REG_UNUSED (reg/f:SI 2869 [ proc ])
(expr_list:REG_UNUSED (reg:SI 2 cx [2872])
(nil)))))))))))
vm_exec.c:127: confused by earlier errors, bailing out
make: *** [vm.o] Error 1