* Running prepare phase for ruby21 ... checking for rb_ary_subseq()... *** extconf.rb failed *** Could not create Makefile due to some reason, probably lack of necessary libraries and/or headers. Check the mkmf.log file for more details. You may need configuration options. Provided configuration options: --with-opt-dir --without-opt-dir --with-opt-include --without-opt-include=${opt-dir}/include --with-opt-lib --without-opt-lib=${opt-dir}/lib --with-make-prog --without-make-prog --srcdir=. --curdir --ruby=/usr/bin/ruby21 /usr/lib/ruby/2.1.0/mkmf.rb:456:in `try_do': The compiler failed to generate an executable file. (RuntimeError) You have to install development tools first. from /usr/lib/ruby/2.1.0/mkmf.rb:541:in `try_link0' from /usr/lib/ruby/2.1.0/mkmf.rb:556:in `try_link' from /usr/lib/ruby/2.1.0/mkmf.rb:736:in `try_func' from /usr/lib/ruby/2.1.0/mkmf.rb:1021:in `block in have_func' from /usr/lib/ruby/2.1.0/mkmf.rb:912:in `block in checking_for' from /usr/lib/ruby/2.1.0/mkmf.rb:351:in `block (2 levels) in postpone' from /usr/lib/ruby/2.1.0/mkmf.rb:321:in `open' from /usr/lib/ruby/2.1.0/mkmf.rb:351:in `block in postpone' from /usr/lib/ruby/2.1.0/mkmf.rb:321:in `open' from /usr/lib/ruby/2.1.0/mkmf.rb:347:in `postpone' from /usr/lib/ruby/2.1.0/mkmf.rb:911:in `checking_for' from /usr/lib/ruby/2.1.0/mkmf.rb:1020:in `have_func' from extconf.rb:5:in `<main>' * ERROR: dev-ruby/racc-1.4.14::gentoo failed (prepare phase): * (no error message) * * Call stack: * ebuild.sh, line 133: Called src_prepare * environment, line 4347: Called ruby-ng_src_prepare * environment, line 4049: Called _ruby_each_implementation 'each_ruby_prepare' * environment, line 437: Called _ruby_invoke_environment 'ruby21' 'each_ruby_prepare' * environment, line 532: Called each_ruby_prepare * environment, line 830: Called die * The specific snippet of code: * ${RUBY} -Cext/racc extconf.rb || die eeepc ~ # eselect ruby list Available Ruby profiles: [1] ruby21 (with Rubygems) * [2] ruby22 (with Rubygems) eeepc ~ # grep -i ruby /etc/portage/make.conf RUBY_TARGETS="ruby21 ruby22"
mkmf.log: "i686-pc-linux-gnu-gcc -o conftest -I/usr/include/ruby-2.1.0/i686-linux -I/usr/include/ruby-2.1.0/ruby/backward -I/usr/include/ruby-2.1.0 -I. -D_FILE_OFFSET_BITS=64 -O2 -march=native -pipe -fno-strict-aliasing -fPIC conftest.c -L. -L/usr/lib -L. -Wl,-O1 -Wl,--as-needed -fstack-protector -rdynamic -Wl,-export-dynamic -Wl,--no-undefined -lruby21 -lpthread -lgmp -ldl -lcrypt -lm -lc" i686-pc-linux-gnu-gcc: internal compiler error: Segmentation fault (program as) Please submit a full bug report, with preprocessed source if appropriate. See <https://bugs.gentoo.org/> for instructions. checked program was: /* begin */ 1: #include "ruby.h" 2: 3: int main(int argc, char **argv) 4: { 5: return 0; 6: } /* end */ eeepc ~ # gcc-config -l [1] i686-pc-linux-gnu-4.8.3 [2] i686-pc-linux-gnu-4.9.3 *
*** This bug has been marked as a duplicate of bug 564272 ***