Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 504886 - net-libs/webkit-gtk-2.2.5 - .../temp/environment: line 4581: RUBY=/usr/bin/ruby20: No such file or directory
Summary: net-libs/webkit-gtk-2.2.5 - .../temp/environment: line 4581: RUBY=/usr/bin/ru...
Status: RESOLVED DUPLICATE of bug 513888
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] GNOME (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Gentoo Ruby Team
URL:
Whiteboard:
Keywords:
: 536980 (view as bug list)
Depends on:
Blocks:
 
Reported: 2014-03-17 12:13 UTC by headcrabextra
Modified: 2015-07-13 20:33 UTC (History)
7 users (show)

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


Attachments
build log (build.log,71.71 KB, text/plain)
2014-03-17 12:13 UTC, headcrabextra
Details

Note You need to log in before you can comment on or make changes to this bug.
Description headcrabextra 2014-03-17 12:13:51 UTC
Created attachment 372856 [details]
build log

Creating hashtable for Source/JavaScriptCore/runtime/RegExpPrototype.cpp
Creating hashtable for Source/JavaScriptCore/runtime/StringConstructor.cpp
/usr/bin/ruby: no such file to load -- auto_gem (LoadError)
make: *** [DerivedSources/JavaScriptCore/LLIntDesiredOffsets.h] Error 1
make: *** Waiting for unfinished jobs....
 [31;01m*[0m ERROR: net-libs/webkit-gtk-2.2.5::gentoo failed (compile phase):
 [31;01m*[0m   emake failed
 [31;01m*[0m 
 [31;01m*[0m If you need support, post the output of `emerge --info '=net-libs/webkit-gtk-2.2.5::gentoo'`,
 [31;01m*[0m the complete build log and the output of `emerge -pqv '=net-libs/webkit-gtk-2.2.5::gentoo'`.
 [31;01m*[0m The complete build log is located at '/var/tmp/portage/net-libs/webkit-gtk-2.2.5/temp/build.log'.
 [31;01m*[0m The ebuild environment file is located at '/var/tmp/portage/net-libs/webkit-gtk-2.2.5/temp/environment'.
 [31;01m*[0m Working directory: '/var/tmp/portage/net-libs/webkit-gtk-2.2.5/work/webkitgtk-2.2.5'
 [31;01m*[0m S: '/var/tmp/portage/net-libs/webkit-gtk-2.2.5/work/webkitgtk-2.2.5'

The complete build log is attached

$ emerge -pqv '=net-libs/webkit-gtk-2.2.5::gentoo'
[ebuild     U ] net-libs/webkit-gtk-2.2.5 [2.0.4] USE="egl%* geoloc gstreamer introspection jit opengl%* spell webgl (-aqua) -coverage -debug -gles2% -libsecret {-test}" 


$ emerge --info '=net-libs/webkit-gtk-2.2.5::gentoo'
Portage 2.2.8-r1 (default/linux/amd64/13.0/desktop/kde, gcc-4.7.3, glibc-2.17, 3.10.32-gentoocrdstp8 x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-3.10.32-gentoocrdstp8-x86_64-Intel-R-_Core-TM-_i5-3570K_CPU_@_3.40GHz-with-gentoo-2.2
KiB Mem:     8131128 total,   5212776 free
KiB Swap:    8601596 total,   8601596 free
Timestamp of tree: Mon, 17 Mar 2014 09:45:01 +0000
ld GNU ld (GNU Binutils) 2.23.2
app-shells/bash:          4.2_p45
dev-java/java-config:     2.2.0
dev-lang/python:          2.7.5-r3, 3.3.3
dev-util/cmake:           2.8.11.2
dev-util/pkgconfig:       0.28
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.10.3, 1.11.6, 1.12.6, 1.13.4
sys-devel/binutils:       2.23.2
sys-devel/gcc:            4.7.3-r1
sys-devel/gcc-config:     1.7.3
sys-devel/libtool:        2.4.2
sys-devel/make:           3.82-r4
sys-kernel/linux-headers: 3.9 (virtual/os-headers)
sys-libs/glibc:           2.17
Repositories: gentoo steam-overlay
Installed sets: @steam
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="@FREE"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt /usr/share/themes/oxygen-gtk/gtk-2.0"
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=native -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--ask-enter-invalid"
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 splitdebug strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://ftp.vectranet.pl/gentoo/ http://gentoo.bloodhost.ru/ http://mirror2.corbina.ru/gentoo-distfiles/ http://mirror.yandex.ru/gentoo-distfiles/ http://tux.rainside.sk/gentoo/ http://ftp.df.lth.se/pub/gentoo"
LANG="en_US.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"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/var/lib/layman/steam"
SYNC="rsync://rsync.ru.gentoo.org/gentoo-portage"
USE="X a52 aac acl acpi alsa amd64 berkdb bindist bluetooth branding bzip2 cairo cdda cdr cli cmake consolekit cracklib crypt cryptsetup cups cxx dbus declarative djvu dri dts dvd dvdr emacs emboss encode exif fam ffmpeg firefox flac fortran gdbm gif git gpm gtk iconv ipv6 jpeg kde kipi lcms ldap libnotify mad matroska mmx mng modules mp3 mp4 mpeg multilib ncurses nls nptl ogg opengl openmp pam pango pcre pdf phonon plasma png policykit ppds pulseaudio qt3support qt4 readline sdl semantic-desktop session spell sse sse2 ssl startup-notification steamruntime svg tcpd tiff truetype udev udisks unicode upower usb valgrind vim-syntax vorbis wxwidgets x264 xcb xcomposite xinerama xml xscreensaver xv xvid 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" INPUT_DEVICES="evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="en ru" 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="nvidia" 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, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON
Comment 1 Róbert Čerňanský 2014-03-18 18:57:38 UTC
In my case the problem disappeared after "eselect ruby set ruby20".  Previously I had ruby18 selected.

The problem happened during update world.  It could have something to do with Ruby 1.8 retirement.
Comment 2 Pacho Ramos gentoo-dev 2014-03-18 21:26:00 UTC
@ruby team, is there anything wrong in the way we are handling ruby depend? (it's only needed at buildtime)
Comment 3 Manuel Rüger (RETIRED) gentoo-dev 2014-03-18 23:33:08 UTC
"/usr/bin/ruby: no such file to load -- auto_gem (LoadError)"

What is the output of
emerge -pv dev-ruby/rubygems ?

Please reinstall dev-ruby/rubygems and see if that fixes the error.

@ Pacho: No you it looks good. Please remove virtual/rubygems[ruby_targets_ruby18] when we remove it from p.mask. :-)
Comment 4 Róbert Čerňanský 2014-03-19 07:18:19 UTC
# emerge -pv rubygems

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

Calculating dependencies... done!
[ebuild   R    ] dev-ruby/rubygems-2.0.3  USE="server {-test}" RUBY_TARGETS="ruby19 ruby20 -jruby (-ruby18)" 0 kB

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


So this shows that rubygems were not installed for ruby18, right?  I think I know what has happened:

From my saved emerge world output I can see that rubygems-2.0.3 were re-emerged because of (-ruby18*) use flag change.  This is where current ruby-1.8 lost its gems.  Later, webkit-gtk is going to be updated but fails because of that.
Comment 5 Kristian Fiskerstrand (RETIRED) gentoo-dev 2014-03-21 13:50:04 UTC
I can confirm that I encountered this same error during update world of my laptop. Swithcing to ruby 20 with gems from ruby 18 makes the build successful.
Comment 6 Pacho Ramos gentoo-dev 2014-03-23 08:20:36 UTC
Did you read the news item that asks you to run eselect for setting newer ruby instead of 1.8?
Comment 7 headcrabextra 2014-03-23 09:06:44 UTC
(In reply to Pacho Ramos from comment #6)
> Did you read the news item that asks you to run eselect for setting newer
> ruby instead of 1.8?

I read it and I didn't change anything because either I didn't have newer version of ruby installed or I already had newer version of ruby selected. (I don't remember which case it was)
Comment 8 Róbert Čerňanský 2014-03-24 09:13:54 UTC
I've read the news item too.  It recommends to eselect newer ruby.  I did not do it before "emerge world" run as it was only recommendation, not a requirement (I planned to take care of it after the emerge world finishes).

Based on the information I provided here it seems that in reality WebKit-gtk depends on Ruby _with_ RubyGems.  If that is true the emerge process should obey that dependency and use some "Ruby with gems" installation (regardless of eselect status) or pull one if none is installed.
Comment 9 Hans de Graaff gentoo-dev Security 2014-03-24 18:57:55 UTC
I think that the problem is that during the same merge rubygems is updated (dropping its ruby18 code) and webkit-gtk is emerged (with the eselected ruby still ruby18). This fails because now ruby18 can't find auto_gem.rb which is installed by rubygems and required via the RUBYOPT environment variable.

Things will be fixed after unmerging ruby:1.8 or eselecting a newer ruby implementation.

I'm not sure there is anything we can do in terms of dependencies here since we can't use information about the currently eselected version in dependencies.

Perhaps we can improve on this by changing the wording in the news item to indicated that this should be eselected before updating.
Comment 10 Jon Gerdes 2014-04-01 21:39:58 UTC
(In reply to Hans de Graaff from comment #9)
> I think that the problem is that during the same merge rubygems is updated
> (dropping its ruby18 code) and webkit-gtk is emerged (with the eselected
> ruby still ruby18). This fails because now ruby18 can't find auto_gem.rb
> which is installed by rubygems and required via the RUBYOPT environment
> variable.
> 
> Things will be fixed after unmerging ruby:1.8 or eselecting a newer ruby
> implementation.
> 
> I'm not sure there is anything we can do in terms of dependencies here since
> we can't use information about the currently eselected version in
> dependencies.
> 
> Perhaps we can improve on this by changing the wording in the news item to
> indicated that this should be eselected before updating.

This is from a one month old laptop and I have not deliberately installed ruby:

jglaptop ~ # eselect ruby show
Current Ruby version:
  ruby18
Current Rubygems version:
  gem??

I wasn't even aware it was installed and only noticed the snag because webkit-gtk was at the end of a large update and I recognised "auto_gem" related problems from another machine when I was testing out Logstash.

I got this:

Creating hashtable for Source/JavaScriptCore/runtime/StringConstructor.cpp
/usr/bin/ruby ./Source/JavaScriptCore/offlineasm/generate_offset_extractor.rb ./Source/JavaScriptCore/llint/LowLevelInterpreter.asm DerivedSources/JavaScriptCore/LLIntDesiredOffsets.h
/usr/bin/ruby: no such file to load -- auto_gem (LoadError)
GNUmakefile:78524: recipe for target 'DerivedSources/JavaScriptCore/LLIntDesiredOffsets.h' failed

As before I disabled the /etc/env.d/10-rubygems entry, env-update and re start my console session and this ebuild worked OK.

So I think a little more detail on what to do in the event of only having ruby18 listed in eselect would help in the news item.  I read it and assumed it didn't apply yet.

Me: I'm off to fiddle with emerge again 8)
Comment 11 Jon Gerdes 2014-04-01 22:14:06 UTC
(In reply to Jon Gerdes from comment #10)
> So I think a little more detail on what to do in the event of only having
> ruby18 listed in eselect would help in the news item.  I read it and assumed
> it didn't apply yet.
> 
> Me: I'm off to fiddle with emerge again 8)

... Simply:

#emerge -va1 ruby
#eselect ruby select 2 (ie 19)

and then this works - nothing else needs doing.  I undid my change to the env.d file first.

#emerge -va1 webkit-gtk

So an addition to the news item detailing this would be handy if you only have ruby18 listed by eselect.
Comment 12 PusTIP 2014-04-11 18:37:57 UTC
eselect ruby show
Current Ruby version:
ruby20
Current Rubygems version:
gem20

When i try to compile webkit-gtk, i have this error:
/var/tmp/portage/net-libs/webkit-gtk-2.2.5/temp/environment: line 4720: RUBY=/usr/bin/ruby20: No such file or directory
And then, at the end: 
<command-line>:0:0: warning: "_FORTIFY_SOURCE" redefined [enabled by default]
Source/WebCore/platform/graphics/MediaPlayer.cpp:1:0: note: this is the location of the previous definition
and many more, like this. What's wrong? GCC 4.8. Version of webkit-gtk doesn't change anything. Thank you for attention
Comment 13 Pacho Ramos gentoo-dev 2015-01-13 15:54:37 UTC
I think we cannot do more from a "gnome team" point of view... ruby team will know much better how to document the ruby update (if still needed) :|
Comment 14 Pacho Ramos gentoo-dev 2015-01-19 10:14:20 UTC
*** Bug 536980 has been marked as a duplicate of this bug. ***
Comment 15 Hans de Graaff gentoo-dev Security 2015-07-11 08:15:50 UTC
Isn't this the same issue as bug 513888 ? In that case the new ruby-single.eclass might help.
Comment 16 Pacho Ramos gentoo-dev 2015-07-13 20:33:04 UTC

*** This bug has been marked as a duplicate of bug 513888 ***