Emerge of dev-lang/ruby-2.1.6 fial: Failed Patch: 012_no_forced_sse2.patch ! Reproducible: Always Steps to Reproduce: 1. emerge =dev-lang/ruby-2.1.6 2. 3. Actual Results: * Failed Patch: 012_no_forced_sse2.patch ! * ( /var/tmp/portage/dev-lang/ruby-2.1.6/work/patches/012_no_forced_sse2.patch ) Expected Results: updated ruby Bug 535804 seems related
gentoo-vm-cli ~ # uname -a Linux gentoo-vm-cli 3.18.11-gentoo #1 SMP Mon Apr 6 20:13:57 CEST 2015 i686 Intel(R) Core(TM) i7-3770 CPU @ 3.40GHz GenuineIntel GNU/Linux gentoo-vm-cli ~ # emerge --info Portage 2.2.14 (python 2.7.9-final-0, default/linux/x86/13.0, gcc-4.8.3, glibc-2.19-r1, 3.18.11-gentoo i686) ================================================================= System uname: Linux-3.18.11-gentoo-i686-Intel-R-_Core-TM-_i7-3770_CPU_@_3.40GHz-with-gentoo-2.2 KiB Mem: 1033900 total, 139952 free KiB Swap: 257004 total, 256404 free Timestamp of tree: Tue, 14 Apr 2015 16:45:01 +0000 ld GNU ld (Gentoo 2.24 p1.4) 2.24 app-shells/bash: 4.2_p53 dev-lang/perl: 5.20.2 dev-lang/python: 2.7.9-r1, 3.3.5-r1, 3.4.1 dev-util/cmake: 2.8.12.2-r1 dev-util/pkgconfig: 0.28-r1 sys-apps/baselayout: 2.2 sys-apps/openrc: 0.13.11 sys-apps/sandbox: 2.6-r1 sys-devel/autoconf: 2.69 sys-devel/automake: 1.13.4 sys-devel/binutils: 2.24-r3 sys-devel/gcc: 4.8.3 sys-devel/gcc-config: 1.7.3 sys-devel/libtool: 2.4.6 sys-devel/make: 4.1-r1 sys-kernel/linux-headers: 3.18 (virtual/os-headers) sys-libs/glibc: 2.19-r1 Repositories: gentoo ACCEPT_KEYWORDS="x86" ACCEPT_LICENSE="* -@EULA" CBUILD="i686-pc-linux-gnu" CFLAGS="-march=core2 -O2 -fomit-frame-pointer -pipe" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.5/ext-active/ /etc/php/cgi-php5.5/ext-active/ /etc/php/cli-php5.5/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo" CXXFLAGS="-march=core2 -O2 -fomit-frame-pointer -pipe" DISTDIR="/var/portage/distfiles" FCFLAGS="-O2 -march=i686 -pipe" FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync" FFLAGS="-O2 -march=i686 -pipe" GENTOO_MIRRORS="http://gentoo.modulix.net/gentoo/ http://ftp-stud.hs-esslingen.de/pub/Mirrors/gentoo/ http://gentoo.mneisen.org/" LANG="fr_FR.UTF-8" LC_ALL="fr_FR.UTF-8" LDFLAGS="-Wl,-O1 -Wl,--as-needed" MAKEOPTS="-j3" PKGDIR="/var/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" PORTDIR="/usr/portage" PORTDIR_OVERLAY="" SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage" USE="apache2 berkdb bzip2 cli cracklib crypt cxx dri fortran gdbm iconv ldap libav logrotate modules mysql ncurses nls nptl nptlonly oci8-instant-client openmp pam pcre perl python readline session sse2 ssl tcpd unicode vhosts x86 zlib" ABI_X86="32" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" APACHE2_MODULES="cgi actions alias auth_basic auth_digest authn_anon authn_dbd authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock dbd deflate dir disk_cache env expires ext_filter file_cache filter headers ident imagemap include info log_config logio mem_cache mime mime_magic negotiation proxy proxy_ajp proxy_balancer proxy_connect proxy_http rewrite setenvif so 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" 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="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="fr" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_3" RUBY_TARGETS="ruby19 ruby22" USERLAND="GNU" VIDEO_CARDS="fbdev glint intel mach64 mga nouveau nv r128 radeon savage sis tdfx trident vesa via vmware dummy v4l" 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: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON
gentoo-vm-cli ~ # cat /var/tmp/portage/dev-lang/ruby-2.1.6/temp/012_no_forced_sse2.patch.out ***** 012_no_forced_sse2.patch ***** PWD: /var/tmp/portage/dev-lang/ruby-2.1.6/work/ruby-2.1.6 PATCH TOOL: patch -> /usr/bin/patch VERSION INFO: GNU patch 2.7.3 Copyright (C) 2003, 2009-2012 Free Software Foundation, Inc. Copyright (C) 1988 Larry Wall License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>. This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Written by Larry Wall and Paul Eggert ==================================== PATCH COMMAND: patch -p0 -g0 -E --no-backup-if-mismatch < '/var/tmp/portage/dev-lang/ruby-2.1.6/work/patches/012_no_forced_sse2.patch' ==================================== checking file configure.in Hunk #1 FAILED at 856. 1 out of 1 hunk FAILED patch program exited with status 1 ==================================== PATCH COMMAND: patch -p1 -g0 -E --no-backup-if-mismatch < '/var/tmp/portage/dev-lang/ruby-2.1.6/work/patches/012_no_forced_sse2.patch' ==================================== can't find file to patch at input line 6 Perhaps you used the wrong -p or --strip option? The text leading up to this was: -------------------------- |https://bugs.gentoo.org/show_bug.cgi?id=503804 |https://bugs.ruby-lang.org/issues/8358 | |--- configure.in.orig 2014-04-14 00:46:14.000000000 +0400 |+++ configure.in 2014-04-14 01:38:54.597889225 +0400 -------------------------- No file to patch. Skipping patch. 1 out of 1 hunk ignored patch program exited with status 1 ==================================== PATCH COMMAND: patch -p2 -g0 -E --no-backup-if-mismatch < '/var/tmp/portage/dev-lang/ruby-2.1.6/work/patches/012_no_forced_sse2.patch' ==================================== can't find file to patch at input line 6 Perhaps you used the wrong -p or --strip option? The text leading up to this was: -------------------------- |https://bugs.gentoo.org/show_bug.cgi?id=503804 |https://bugs.ruby-lang.org/issues/8358 | |--- configure.in.orig 2014-04-14 00:46:14.000000000 +0400 |+++ configure.in 2014-04-14 01:38:54.597889225 +0400 -------------------------- No file to patch. Skipping patch. 1 out of 1 hunk ignored patch program exited with status 1 ==================================== PATCH COMMAND: patch -p3 -g0 -E --no-backup-if-mismatch < '/var/tmp/portage/dev-lang/ruby-2.1.6/work/patches/012_no_forced_sse2.patch' ==================================== can't find file to patch at input line 6 Perhaps you used the wrong -p or --strip option? The text leading up to this was: -------------------------- |https://bugs.gentoo.org/show_bug.cgi?id=503804 |https://bugs.ruby-lang.org/issues/8358 | |--- configure.in.orig 2014-04-14 00:46:14.000000000 +0400 |+++ configure.in 2014-04-14 01:38:54.597889225 +0400 -------------------------- No file to patch. Skipping patch. 1 out of 1 hunk ignored patch program exited with status 1 ==================================== PATCH COMMAND: patch -p4 -g0 -E --no-backup-if-mismatch < '/var/tmp/portage/dev-lang/ruby-2.1.6/work/patches/012_no_forced_sse2.patch' ==================================== can't find file to patch at input line 6 Perhaps you used the wrong -p or --strip option? The text leading up to this was: -------------------------- |https://bugs.gentoo.org/show_bug.cgi?id=503804 |https://bugs.ruby-lang.org/issues/8358 | |--- configure.in.orig 2014-04-14 00:46:14.000000000 +0400 |+++ configure.in 2014-04-14 01:38:54.597889225 +0400 -------------------------- No file to patch. Skipping patch. 1 out of 1 hunk ignored patch program exited with status 1
Found it! for reference it's caused by the lack of CPU_FLAGS_X86 in make.conf to add a correct one you can cat /proc/cpuinfo and add manually the corrects keys. or you can emerge -avt cpuinfo2cpuflags, run cpuinfo2cpuflags-x86, copy the displayed string to your make.conf rerun the failed emerge et voila ! Hope this can help another gentoo user see https://forums.gentoo.org/viewtopic-p-7692334.html for more informations about CPU_FLAGS_X86