Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 526876 - dev-lang/ruby-2.0.0_p576 with no SSE2 - uncommon.mk:528: recipe for target '.rbconfig.time' failed // make: *** [.rbconfig.time] Illegal instruction
Summary: dev-lang/ruby-2.0.0_p576 with no SSE2 - uncommon.mk:528: recipe for target '....
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Ruby Team
URL: https://github.com/wayneeseguin/rvm/p...
Whiteboard:
Keywords:
: 529260 530252 (view as bug list)
Depends on:
Blocks:
 
Reported: 2014-10-26 03:56 UTC by Patrick McMunn
Modified: 2014-11-24 12:16 UTC (History)
5 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
patch adapted from ruby-2.1.1-no-forced-sse2.patch by Andrew Savchenko (remove-sse2-flag.patch,849 bytes, patch)
2014-11-06 02:46 UTC, Ted Marston
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Patrick McMunn 2014-10-26 03:56:20 UTC
Ruby's configure.in script automatically adds -msse2 to the CFLAGS it passes to the compiler, so compilation fails thusly:

uncommon.mk:528: recipe for target '.rbconfig.time' failed
make: *** [.rbconfig.time] Illegal instruction

The issue has been fixed upstream in Ruby 2.1 but has not yet been in Ruby 2.0.

Reproducible: Always
Comment 1 Jeroen Roovers (RETIRED) gentoo-dev 2014-10-26 07:46:21 UTC
1) Please post your `emerge --info' output in a comment.
2) Please attach the entire build log to this bug report.
Comment 2 Hans de Graaff gentoo-dev Security 2014-10-27 07:20:18 UTC
This looks like a variant of bug 503804 for ruby 2.0.0. The upstream bug indicates that this was fixed 4 months ago so these fixes should be in ruby 2.0.0_p576 which was released after that. We still carry a patch for 2.1.3 despite fixes so that should probably be backported as well.
Comment 3 David W Noon 2014-11-05 20:41:40 UTC
I still have this problem in =dev-lang/ruby-2.0.0_p594.
Comment 4 Ted Marston 2014-11-06 02:46:02 UTC
Created attachment 388650 [details, diff]
patch adapted from ruby-2.1.1-no-forced-sse2.patch by  Andrew Savchenko

Same problem here. An adaptation of Andrew Savchenko's patch for ruby-2.1.1 seems to fix it.
Comment 5 Dell'Aica Valentino 2014-11-08 14:52:00 UTC
I got the same problem. Here my emerge --info

Portage 2.2.8-r2 (default/linux/amd64/13.0, gcc-4.7.3, glibc-2.19-r1, 3.16.4-gentoo x86_64)
=================================================================
System uname: Linux-3.16.4-gentoo-x86_64-Intel-R-_Core-TM-_i7-4702MQ_CPU_@_2.20GHz-with-gentoo-2.2
KiB Mem:     8076248 total,   4466184 free
KiB Swap:    4194300 total,   4194300 free
Timestamp of tree: Thu, 06 Nov 2014 19:00:01 +0000
ld ld di GNU (Gentoo 2.24 p1.4) 2.24
app-shells/bash:          4.2_p53
dev-java/java-config:     2.2.0
dev-lang/perl:            5.18.2-r2
dev-lang/python:          2.7.7, 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.12.4
sys-apps/sandbox:         2.6-r1
sys-devel/autoconf:       2.13, 2.69
sys-devel/automake:       1.11.6, 1.13.4
sys-devel/binutils:       2.24-r3
sys-devel/gcc:            4.7.3-r1, 4.8.3
sys-devel/gcc-config:     1.7.3
sys-devel/libtool:        2.4.2-r1
sys-devel/make:           4.0-r1
sys-kernel/linux-headers: 3.13 (virtual/os-headers)
sys-libs/glibc:           2.19-r1
Repositories: gentoo
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=core-avx2 -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /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=core-avx2 -O2 -pipe"
DISTDIR="/home/portage/distfiles"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="it_IT.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j9"
PKGDIR="/home/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=""
USE="X aac acl acpi alsa amd64 avx avx2 bzip2 cairo cli cracklib crypt cups curl cxx dbus dri encode exif ffmpeg flac fontconfig fortran gif gimp gtk iconv icu jpeg lcms libnotify libsamplerate lzma minimal mmx mmxext modules mp3 mtp multilib ncurses nls nptl ogg opengl openmp pam pcre pdf png pulseaudio qt4 raw readline sdl session smp sqlite sse sse2 sse3 sse4_1 ssl ssse3 svg threads tiff truetype udev udisks unicode upower usb v4l vaapi vdpau vim-syntax vorbis wavpack webkit x264 xattr xml xmp xscreensaver 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" 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" GRUB_PLATFORMS="emu efi-32 efi-64 pc" INPUT_DEVICES="evdev keyboard mouse synaptics" 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" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_3" RUBY_TARGETS="ruby19 ruby20" USERLAND="GNU" VIDEO_CARDS="intel nvidia vesa" 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, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, SYNC, USE_PYTHON
Comment 6 Dell'Aica Valentino 2014-11-08 14:54:14 UTC
(In reply to Dell'Aica Valentino from comment #5)

Wrong machine, in this computer fail.

Portage 2.2.8-r2 (default/linux/x86/13.0/desktop, gcc-4.7.3, glibc-2.19-r1, 3.12.20-gentoo i686)
=================================================================
System uname: Linux-3.12.20-gentoo-i686-AMD_Athlon-tm-_XP_2000+-with-gentoo-2.2
KiB Mem:      511040 total,    176588 free
KiB Swap:    1052220 total,   1002820 free
Timestamp of tree: Thu, 06 Nov 2014 19:00:01 +0000
ld ld di GNU (Gentoo 2.24 p1.4) 2.24
app-shells/bash:          4.2_p53
dev-java/java-config:     2.2.0
dev-lang/perl:            5.18.2-r2
dev-lang/python:          2.7.7, 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.12.4
sys-apps/sandbox:         2.6-r1
sys-devel/autoconf:       2.13, 2.69
sys-devel/automake:       1.11.6, 1.12.6, 1.13.4
sys-devel/binutils:       2.24-r3
sys-devel/gcc:            4.7.3-r1, 4.8.3
sys-devel/gcc-config:     1.7.3
sys-devel/libtool:        2.4.2-r1
sys-devel/make:           4.0-r1
sys-kernel/linux-headers: 3.13 (virtual/os-headers)
sys-libs/glibc:           2.19-r1
Repositories: gentoo OSSDL maksbotan
ACCEPT_KEYWORDS="x86"
ACCEPT_LICENSE="* -@EULA @FSF-APPROVED dlj-1.1 sun-bcla-java-vm AdobeFlash-10.1 Oracle-BCLA-JavaSE"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -mtune=athlon-xp -march=athlon-xp -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/fonts/fonts.conf /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 /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-O2 -mtune=athlon-xp -march=athlon-xp -pipe"
DISTDIR="/home/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 preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync"
FFLAGS="-O2 -mtune=athlon-xp -march=athlon-xp -pipe"
GENTOO_MIRRORS="http://gentoo.in.th/ ftp://gentoo.mirrors.pair.com/ ftp://gentoo.in.th/ http://gentoo.inf.elte.hu/ "
LANG="it_IT.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j2"
PKGDIR="/home/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="/var/lib/layman/OSSDL /var/lib/layman/maksbotan"
SYNC="rsync://belphegor/gentoo-portage"
USE="3dnow 3dnowext X a52 aac acl acpi alsa bash-completion bluetooth branding bzip2 cairo cdda cdr cli cracklib crypt css cups cxx dbus dri dts dvd dvdr emboss encode exif fam fftw firefox flac fontconfig gdbm gif glamor gmp gpm gtk iconv jpeg kdeprefix lcms libnotify mad mmx mmxext modules mp3 mp4 mpeg mplayer ncurses nls nptl ogg opengl pam pango pch pcre pda pdf png policykit ppds readline session spell sse ssl startup-notification svg threads tiff truetype udev udisks unicode upower usb vim-syntax vorbis wxwidgets x264 x86 xcb xcomposite xml xscreensaver xv xvid 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="actions alias authz_host autoindex deflate dir env expires ext_filter filter headers include info mime mime_magic negotiation rewrite setenvif vhost_alias userdir status authn_file authz_user auth_digest proxy proxy_balancer proxy_http" APACHE2_MPMS="worker" 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="evdev" KERNEL="linux" LCD_DEVICES="ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="it en_GB en en_US" OFFICE_IMPLEMENTATION="libreoffice" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_3" RUBY_TARGETS="ruby19 ruby20" SANE_BACKENDS="hp" USERLAND="GNU" VIDEO_CARDS="radeon vesa" XFCE_PLUGINS="brightness trash menu" 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, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON
Comment 7 Dell'Aica Valentino 2014-11-08 14:55:57 UTC
As stated in this issue (https://github.com/wayneeseguin/rvm/pull/2850), and the previous commenter there is a default optimization that break the build.
Comment 8 Alexander 2014-11-09 14:51:35 UTC
Will the proposed patch be included in an ebuild?
Comment 9 Hans de Graaff gentoo-dev Security 2014-11-10 07:10:54 UTC
Hopefully later this week. We are considering whether to make it conditional on the sse USE flag.
Comment 10 David W Noon 2014-11-10 18:03:58 UTC
(In reply to Hans de Graaff from comment #9)
> Hopefully later this week. We are considering whether to make it conditional
> on the sse USE flag.

Please bear in mind that some machines have SSE but not SSE2.  For example: Pentium III; AMD Athlon (32-bit).

When I build for this Athlon MP box, I specify the sse use flag, but also specify -sse2 since it lacks SSE2 instructions.
Comment 11 Hans de Graaff gentoo-dev Security 2014-11-10 18:31:02 UTC
(In reply to Hans de Graaff from comment #9)
> Hopefully later this week. We are considering whether to make it conditional
> on the sse USE flag.

That should have been USE=sse2.

ruby-2.0.0_p594-r1 and ruby-2.1.4-r1 are now in the tree applying these patches conditionally on the USE flag.
Comment 12 Hans de Graaff gentoo-dev Security 2014-11-15 07:34:10 UTC
*** Bug 529260 has been marked as a duplicate of this bug. ***
Comment 13 Jeroen Roovers (RETIRED) gentoo-dev 2014-11-24 12:16:31 UTC
*** Bug 530252 has been marked as a duplicate of this bug. ***