Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 617086 - dev-ruby/json-1.8.3 fails to build against ruby21
Summary: dev-ruby/json-1.8.3 fails to build against ruby21
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Gentoo Ruby Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-04-30 08:38 UTC by Giuseppe Foti
Modified: 2017-04-30 20:00 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Giuseppe Foti 2017-04-30 08:38:40 UTC
peppebook screencap # emerge -av =dev-ruby/json-1.8.3

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild  NS    ] dev-ruby/json-1.8.3:0::gentoo [2.0.4:2::gentoo] USE="-doc {-test}" RUBY_TARGETS="ruby21 ruby22 (-ruby20) (-ruby23)" 0 KiB

Total: 1 package (1 in new slot), Size of downloads: 0 KiB

!!! The following installed packages are masked:
- dev-java/jaxme-0.5.2-r2::gentoo (masked by: package.mask)
/usr/portage/profiles/package.mask:
# Patrice Clement <monsieurp@gentoo.org> (07 Apr 2017)
# Part of the JDK since Java 6. Removal in 30 days.

For more information, see the MASKED PACKAGES section in the emerge
man page or refer to the Gentoo Handbook.


Would you like to merge these packages? [Yes/No] y

>>> Verifying ebuild manifests

>>> Emerging (1 of 1) dev-ruby/json-1.8.3::gentoo
 * json-1.8.3.gem SHA256 SHA512 WHIRLPOOL size ;-) ...                                                                                                                                                      [ ok ]
>>> Unpacking source...
 * Running unpack phase for all ...
 * Unpacking .gem file... ...                                                                                                                                                                               [ ok ]
 * Uncompressing metadata ...                                                                                                                                                                               [ ok ]
 * Unpacking data.tar.gz ...                                                                                                                                                                                [ ok ]
>>> Source unpacked in /var/tmp/portage/dev-ruby/json-1.8.3/work
>>> Preparing source in /var/tmp/portage/dev-ruby/json-1.8.3/work ...
 * Running prepare phase for all ...
 * Running source copy phase for ruby21 ...
 * Running source copy phase for ruby22 ...
>>> Source prepared.
>>> Configuring source in /var/tmp/portage/dev-ruby/json-1.8.3/work ...
>>> Source configured.
>>> Compiling source in /var/tmp/portage/dev-ruby/json-1.8.3/work ...
 * Running compile phase for ruby21 ...
/usr/local/bin/rake:23:in `load': cannot load such file -- /usr/lib64/ruby/gems/2.1.0/gems/rake-12.0.0/bin/rake (LoadError)
	from /usr/local/bin/rake:23:in `<main>'
 * ERROR: dev-ruby/json-1.8.3::gentoo failed (compile phase):
 *   extension compile failed
 * 
 * Call stack:
 *     ebuild.sh, line  115:  Called src_compile
 *   environment, line 4462:  Called ruby-ng_src_compile
 *   environment, line 4154:  Called _ruby_each_implementation 'each_ruby_compile'
 *   environment, line  525:  Called _ruby_invoke_environment 'ruby21' 'each_ruby_compile'
 *   environment, line  631:  Called each_ruby_compile
 *   environment, line  934:  Called die
 * The specific snippet of code:
 *           ${RUBY} -S rake compile || die "extension compile failed";
 * 
 * If you need support, post the output of `emerge --info '=dev-ruby/json-1.8.3::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=dev-ruby/json-1.8.3::gentoo'`.
!!! When you file a bug report, please include the following information:
GENTOO_VM=  CLASSPATH="" JAVA_HOME="/home/giuseppe/.gentoo/java-config-2/current-user-vm"
JAVACFLAGS="" COMPILER=""
and of course, the output of emerge --info =json-1.8.3
 * The complete build log is located at '/var/tmp/portage/dev-ruby/json-1.8.3/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/dev-ruby/json-1.8.3/temp/environment'.
 * Working directory: '/var/tmp/portage/dev-ruby/json-1.8.3/work/ruby21/json-1.8.3'
 * S: '/var/tmp/portage/dev-ruby/json-1.8.3/work/ruby21/json-1.8.3'

>>> Failed to emerge dev-ruby/json-1.8.3, Log file:

>>>  '/var/tmp/portage/dev-ruby/json-1.8.3/temp/build.log'

 * Messages for package dev-ruby/json-1.8.3:

 * ERROR: dev-ruby/json-1.8.3::gentoo failed (compile phase):
 *   extension compile failed
 * 
 * Call stack:
 *     ebuild.sh, line  115:  Called src_compile
 *   environment, line 4462:  Called ruby-ng_src_compile
 *   environment, line 4154:  Called _ruby_each_implementation 'each_ruby_compile'
 *   environment, line  525:  Called _ruby_invoke_environment 'ruby21' 'each_ruby_compile'
 *   environment, line  631:  Called each_ruby_compile
 *   environment, line  934:  Called die
 * The specific snippet of code:
 *           ${RUBY} -S rake compile || die "extension compile failed";
 * 
 * If you need support, post the output of `emerge --info '=dev-ruby/json-1.8.3::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=dev-ruby/json-1.8.3::gentoo'`.
 * The complete build log is located at '/var/tmp/portage/dev-ruby/json-1.8.3/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/dev-ruby/json-1.8.3/temp/environment'.
 * Working directory: '/var/tmp/portage/dev-ruby/json-1.8.3/work/ruby21/json-1.8.3'
 * S: '/var/tmp/portage/dev-ruby/json-1.8.3/work/ruby21/json-1.8.3'


Reproducible: Always
Comment 1 Hans de Graaff gentoo-dev Security 2017-04-30 08:45:02 UTC
Could you please add emerge --info output?

It looks like dev-ruby/rake is not installed for ruby21. What are its USE flags?
Comment 2 Giuseppe Foti 2017-04-30 09:48:03 UTC
(In reply to Hans de Graaff from comment #1)
> Could you please add emerge --info output?
> 
> It looks like dev-ruby/rake is not installed for ruby21. What are its USE
> flags?

~ # emerge --info
Portage 2.3.3 (python 3.4.5-final-0, default/linux/amd64/13.0/desktop/gnome/systemd, gcc-4.9.4, glibc-2.23-r3, 4.9.6-gentoo-r1 x86_64)
=================================================================
System uname: Linux-4.9.6-gentoo-r1-x86_64-Intel-R-_Core-TM-_i7-4700HQ_CPU_@_2.40GHz-with-gentoo-2.3
KiB Mem:    15842192 total,  12686528 free
KiB Swap:   33554428 total,  33554428 free
Timestamp of repository gentoo: Sat, 29 Apr 2017 20:00:01 +0000
sh bash 4.3_p48-r1
ld GNU ld (Gentoo 2.26.1 p1.0) 2.26.1
app-shells/bash:          4.3_p48-r1::gentoo
dev-java/java-config:     2.2.0-r3::gentoo
dev-lang/perl:            5.24.1-r1::gentoo
dev-lang/python:          2.7.12::gentoo, 3.4.5::gentoo
dev-util/cmake:           3.7.2::gentoo
dev-util/pkgconfig:       0.28-r2::gentoo
sys-apps/baselayout:      2.3::gentoo
sys-apps/openrc:          0.23.2::gentoo
sys-apps/sandbox:         2.10-r3::gentoo
sys-devel/autoconf:       2.13::gentoo, 2.69::gentoo
sys-devel/automake:       1.11.6-r1::gentoo, 1.14.1::gentoo, 1.15-r2::gentoo
sys-devel/binutils:       2.26.1::gentoo
sys-devel/gcc:            4.9.4::gentoo, 5.4.0-r3::gentoo
sys-devel/gcc-config:     1.7.3::gentoo
sys-devel/libtool:        2.4.6-r3::gentoo
sys-devel/make:           4.2.1::gentoo
sys-kernel/linux-headers: 4.4::gentoo (virtual/os-headers)
sys-libs/glibc:           2.23-r3::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: rsync
    sync-uri: rsync://rsync.gentoo.org/gentoo-portage
    priority: -1000

Overlay-Personale
    location: /usr/local/portage
    sync-type: git
    sync-uri: git://me.org/me
    masters: gentoo

x-portage
    location: /usr/local/portage
    masters: gentoo
    priority: 0

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/lib64/libreoffice/program/sofficerc /usr/share/gnupg/qualified.txt /var/lib/hsqldb"
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"
CXXFLAGS="-march=core-avx2 -O2 -pipe"
DISTDIR="/usr/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://gentoo.modulix.net/gentoo/ ftp://gentoo.imj.fr/pub/gentoo/ ftp://mirror.netcologne.de/gentoo/ http://mirror.qubenet.net/mirror/gentoo/ ftp://tux.rainside.sk/gentoo/"
LANG="it_IT.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j9"
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 --exclude=/.git"
PORTAGE_TMPDIR="/var/tmp"
USE="X a52 aac aalib acl acpi afs alsa amd64 berkdb bluetooth branding bzip2 cairo cdb cdda cddb cdparanoia cdr cli colord cracklib crypt css cups cvs cxx dbi dbm dbus dga directfb djvu dri dts dv dvb dvd dvdr eds emboss encode evo exif fam ffmpeg firefox flac fontconfig foomaticdb fortran ftp gdbm gif glamor gnome gnome-keyring gnome-online-accounts gphoto2 gpm gsm gstreamer gtk gzip hddtemp iconv ieee1394 imagemagick introspection ipv6 jack java javascript jpeg jpeg2k kerberos lcms ldap libcaca libnotify libsecret libwww lzma lzo mad mhash mime mmap mms mmx mng modules mp3 mp4 mpeg mplayer multilib nas nautilus ncurses nls nptl offensive ogg openexr opengl openmp pam pango pcmcia pcre pda pdf png policykit ppds pulseaudio qt3support qt4 radius rdesktop readline samba scanner sdl seccomp session smp snmp spell sse sse2 sse3 ssl startup-notification svg systemd tcpd theora tidy tiff tracker truecrypt truetype udev udisks unicode upnp upnp-av upower usb v4l vcd vnc vorbis webkit wifi wxwidgets x264 xattr xcb xcomposite xine xml xscreensaver xv xvid zeroconf zlib zsh-completion" ABI_X86="64 32" 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" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="aes avx avx2 fma3 mmx mmxext popcnt sse sse2 sse3 sse4_1 sse4_2 ssse3" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="synaptics evdev keyboard mouse joystick" KERNEL="linux" L10N="it" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="it" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-6" PYTHON_SINGLE_TARGET="python3_4" PYTHON_TARGETS="python2_7 python3_4" RUBY_TARGETS="ruby21 ruby22" USERLAND="GNU" VIDEO_CARDS="nvidia intel nouveau nv" 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, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON

--
dev-ruby/rake-12.0.0 is built for ruby21 and ruby22
--
peppebook ~ # emerge -av dev-ruby/rake

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild   R   ~] dev-ruby/rake-12.0.0::gentoo  USE="-doc {-test}" RUBY_TARGETS="ruby21 ruby22 (-ruby20) -ruby23 -ruby24" 0 KiB

Total: 1 package (1 reinstall), Size of downloads: 0 KiB

peppebook ~ # eselect ruby list
Available Ruby profiles:
  [1]   ruby21 (with Rubygems) *
  [2]   ruby22 (with Rubygems)
peppebook ~ # gem env
RubyGems Environment:
  - RUBYGEMS VERSION: 2.5.2
  - RUBY VERSION: 2.1.9 (2016-03-30 patchlevel 490) [x86_64-linux]
  - INSTALLATION DIRECTORY: /usr/local/lib64/ruby/gems/2.1.0
  - USER INSTALLATION DIRECTORY: /root/.gem/ruby/2.1.0
  - RUBY EXECUTABLE: /usr/bin/ruby21
  - EXECUTABLE DIRECTORY: /usr/local/bin
  - SPEC CACHE DIRECTORY: /root/.gem/specs
  - SYSTEM CONFIGURATION DIRECTORY: /etc
  - RUBYGEMS PLATFORMS:
    - ruby
    - x86_64-linux
  - GEM PATHS:
     - /usr/local/lib64/ruby/gems/2.1.0
     - /root/.gem/ruby/2.1.0
     - /usr/lib64/ruby/gems/2.1.0
  - GEM CONFIGURATION:
     - :update_sources => true
     - :verbose => true
     - :backtrace => false
     - :bulk_threshold => 1000
  - REMOTE SOURCES:
     - https://rubygems.org/
  - SHELL PATH:
     - /sbin
     - /bin
     - /usr/sbin
     - /usr/bin
peppebook ~ # 

Thanks for your comment
Comment 3 Hans de Graaff gentoo-dev Security 2017-04-30 19:08:33 UTC
(In reply to Giuseppe Foti from comment #0)

> /usr/local/bin/rake:23:in `load': cannot load such file --
> /usr/lib64/ruby/gems/2.1.0/gems/rake-12.0.0/bin/rake (LoadError)
> 	from /usr/local/bin/rake:23:in `<main>'

/usr/local/bin/rake is something that is installed outside of portage, so we cannot support that. Perhaps you did "gem install" at some point?
Comment 4 Giuseppe Foti 2017-04-30 20:00:01 UTC
Thanks to Hans, I resolved.
I had some gems installed manually and /usr/local/bin/rake not installed from portage.
I removed all gems (both installed via portage and installed manually):
emerge -aC dev-ruby/*
gem uninstall -aIx
(http://stackoverflow.com/questions/8095209/uninstall-all-installed-gems-in-osx)
and removed /usr/local/bin/rake.

Then json-1.8.3 built correctly.