prepare phase of dev-ruby/racc-1.4.13 fails with error * Running prepare phase for ruby22 ... 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}/lib64 --with-make-prog --without-make-prog --srcdir=. --curdir --ruby=/usr/bin/$(RUBY_BASE_NAME)22 /usr/lib64/ruby/2.2.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/lib64/ruby/2.2.0/mkmf.rb:541:in `try_link0' from /usr/lib64/ruby/2.2.0/mkmf.rb:556:in `try_link' from /usr/lib64/ruby/2.2.0/mkmf.rb:735:in `try_func' from /usr/lib64/ruby/2.2.0/mkmf.rb:1020:in `block in have_func' from /usr/lib64/ruby/2.2.0/mkmf.rb:911:in `block in checking_for' from /usr/lib64/ruby/2.2.0/mkmf.rb:351:in `block (2 levels) in postpone' from /usr/lib64/ruby/2.2.0/mkmf.rb:321:in `open' from /usr/lib64/ruby/2.2.0/mkmf.rb:351:in `block in postpone' from /usr/lib64/ruby/2.2.0/mkmf.rb:321:in `open' from /usr/lib64/ruby/2.2.0/mkmf.rb:347:in `postpone' from /usr/lib64/ruby/2.2.0/mkmf.rb:910:in `checking_for' from /usr/lib64/ruby/2.2.0/mkmf.rb:1019:in `have_func' from extconf.rb:5:in `<main>' There is a workaround which implies modifying ruby mkmf.rb; found here https://forums.gentoo.org/viewtopic-p-7833314.html?sid=136d11643365380d6c5d9a186e4cfa06 (the patch is here: https://github.com/chef/omnibus-software/blob/master/config/patches/ruby/ruby-2_1_3-no-mkmf.patch ) ... but I'm not sure it is wise to modify permanently mkmf.rb . Reproducible: Always emerge --info Portage 2.2.23 (python 2.7.10-final-0, default/linux/amd64/13.0, gcc-5.2.0, glibc-2.22-r1, 4.3.0 x86_64) ================================================================= System uname: Linux-4.3.0-x86_64-AMD_A8-3870_APU_with_Radeon-tm-_HD_Graphics-with-gentoo-2.2 KiB Mem: 15889148 total, 13197640 free KiB Swap: 0 total, 0 free Timestamp of repository gentoo: Tue, 03 Nov 2015 07:15:01 +0000 sh bash 4.3_p42 ld ld di GNU (Gentoo 2.25.1 p1.1) 2.25.1 app-shells/bash: 4.3_p42::gentoo dev-java/java-config: 2.2.0::gentoo dev-lang/perl: 5.22.0::gentoo dev-lang/python: 2.7.10::gentoo, 3.4.3::gentoo, 3.5.0-r1::gentoo dev-util/cmake: 3.3.2-r1::gentoo dev-util/pkgconfig: 0.29::gentoo sys-apps/baselayout: 2.2::gentoo sys-apps/openrc: 0.18.3::gentoo sys-apps/sandbox: 2.9::gentoo sys-devel/autoconf: 2.13::gentoo, 2.69-r1::gentoo sys-devel/automake: 1.11.6-r1::gentoo, 1.13.4::gentoo, 1.14.1::gentoo, 1.15::gentoo sys-devel/binutils: 2.25.1-r1::gentoo sys-devel/gcc: 5.2.0::gentoo sys-devel/gcc-config: 1.8::gentoo sys-devel/libtool: 2.4.6-r1::gentoo sys-devel/make: 4.1-r1::gentoo sys-kernel/linux-headers: 4.2::gentoo (virtual/os-headers) sys-libs/glibc: 2.22-r1::gentoo Repositories: gentoo location: /usr/portage sync-type: rsync sync-uri: rsync://rsync.europe.gentoo.org/gentoo-portage priority: -1000 kernelpanic location: /usr/local/portage masters: gentoo libressl location: /var/lib/layman/libressl sync-type: laymansync sync-uri: https://github.com/gentoo/libressl.git masters: gentoo priority: 50 science location: /var/lib/layman/science sync-type: laymansync sync-uri: git://anongit.gentoo.org/proj/sci.git masters: gentoo priority: 50 tox-overlay location: /var/lib/layman/tox-overlay sync-type: laymansync sync-uri: git://github.com/urras/gentoo-overlay-tox.git masters: gentoo priority: 50 ACCEPT_KEYWORDS="amd64 ~amd64" ACCEPT_LICENSE="* -@EULA @EULA" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-march=native -mtune=native -O2 -pipe" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/lib64/libreoffice/program/sofficerc /usr/share/config /usr/share/gnupg/qualified.txt" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c" CXXFLAGS="-march=native -mtune=native -O2 -pipe" DISTDIR="/var/portage/distfiles" FCFLAGS="-march=native -mtune=native -O2 -pipe" FEATURES="assume-digests binpkg-logs clean-logs compress-build-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch parallel-install preserve-libs protect-owned sandbox sfperms split-elog split-log strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync" FFLAGS="-march=native -mtune=native -O2 -pipe" GENTOO_MIRRORS="http://distfiles.gentoo.org" INSTALL_MASK="/etc/systemd /usr/lib/systemd /usr/lib64/systemd" LANG="it_IT.UTF-8" LDFLAGS="-Wl,-O1 -Wl,--as-needed" MAKEOPTS="-j5" PKGDIR="/usr/portage/packages" PORTAGE_CONFIGROOT="/" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages" PORTAGE_TMPDIR="/var/tmp" USE="X a52 aac aalib acl alisp alsa amd64 amr ao apng bluetooth bs2b bzip2 cairo cblas-external cdio chm clang cli colord contrast cracklib crypt cups curl cvs cxx dbus dhcp djbfft djvu dri dri3 dv dvb dvd ebook egl emf encode excel exif faac fdk ffmpeg fftw firmware flac fontconfig fontforge fortran fpx ftp gbm gcj gdbm gif gimp gmp gpg gpm gsm gstreamer gudev harfbuzz hdri hwdb iconv icu id3tag inotify int64 ipv6 ipython ithreads jbig jemalloc jpeg jpeg2k lame lapack latex lcms lensfun libass libcaca libkms libnotify libressl libsamplerate lqr lzma lzo mad matplotlib mercurial metric mmap mmx mmxext mng modplug modules mp3 mp3rtp mpeg mpi multilib multitarget natspec ncurses netlink network nlopt nls nptl numpy ogg opencl openexr opengl openmp opus osmesa pam pango passwdqc pcre pdf png pnm postproc postscript python q16 q32 q64 q8 qt3support quicktime rar raw readline romio rtmp schroedinger seccomp secure-delete session smp sndfile sound speex sse sse2 ssl startup-notification svg system-cairo system-icu system-jpeg system-jsoncpp system-libvpx system-sqlite t1lib tftp tga theora threads tiff timezone truetype twolame udev umfpack unicode usb vaapi vcd vdpau vf-dlopen video vim-syntax vorbis vpx wavpack webp wmf wxwidgets x264 x265 xa xdg xml xmp xpm xscreensaver xv xvfb xvid xvmc yuv4mpeg zlib" ABI_X86="64" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="3dnow 3dnowext mmx mmxext popcnt sse sse2 sse3 sse4a" CURL_SSL="libressl" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="it en" OFFICE_IMPLEMENTATION="libreoffice" OPENMPI_FABRICS="knem" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_5" QEMU_SOFTMMU_TARGETS="aarch64 arm i386 x86_64" QEMU_USER_TARGETS="aarch64 arm i386 x86_64 armeb" RUBY_TARGETS="ruby22" SANE_BACKENDS="xerox_mfp" USERLAND="GNU" VIDEO_CARDS="radeon r600" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account" Unset: CC, CPPFLAGS, CTARGET, CXX, EMERGE_DEFAULT_OPTS, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON
This is a dupe of bug #564272
*** This bug has been marked as a duplicate of bug 564272 ***