Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 705346 - dev-ruby/rubygems-3.1.2: cannot load such file -- rubygems/compatibility (LoadError)
Summary: dev-ruby/rubygems-3.1.2: cannot load such file -- rubygems/compatibility (Loa...
Status: UNCONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Ruby Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-01-13 11:14 UTC by Stoian Ivanov
Modified: 2020-01-14 07:31 UTC (History)
0 users

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


Attachments
gubygems build log .. ends in success (rubygems-3.1.2_build.log,29.89 KB, text/plain)
2020-01-14 07:26 UTC, Stoian Ivanov
Details
dev-ruby/minitest build log with failure post rubygems reinstall (minitest-5.14.0_build.log,3.69 KB, text/plain)
2020-01-14 07:27 UTC, Stoian Ivanov
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Stoian Ivanov 2020-01-13 11:14:55 UTC
make[1]: Entering directory '/slow/tmp_portage/dev-lang/ruby-2.6.5/work/ruby-2.6.5'
*** Following extensions are not compiled:
win32ole:
        Could not be configured. It will not be installed.
        Check ext/win32ole/mkmf.log for more details.
win32:
        Could not be configured. It will not be installed.
        Check ext/win32/mkmf.log for more details.
win32/resolv:
        Skipped because its parent was not configured.
*** Fix the problems, then remove these directories and try again if you want.
make[1]: Leaving directory '/slow/tmp_portage/dev-lang/ruby-2.6.5/work/ruby-2.6.5



===================== also ================

>>> Install dev-ruby/rubygems-3.1.2 into /var/tmp/portage/dev-ruby/rubygems-3.1.2/image
 * Running install phase for ruby26 ...
Traceback (most recent call last):
        11: from <internal:gem_prelude>:4:in `<internal:gem_prelude>'
        10: from /slow/tmp_portage/dev-ruby/rubygems-3.1.2/work/ruby26/rubygems-3.1.2/lib/rubygems/core_ext/kernel_gem.rb:62:in `gem'
         9: from /slow/tmp_portage/dev-ruby/rubygems-3.1.2/work/ruby26/rubygems-3.1.2/lib/rubygems/dependency.rb:323:in `to_spec'
         8: from /slow/tmp_portage/dev-ruby/rubygems-3.1.2/work/ruby26/rubygems-3.1.2/lib/rubygems/dependency.rb:303:in `to_specs'
         7: from /slow/tmp_portage/dev-ruby/rubygems-3.1.2/work/ruby26/rubygems-3.1.2/lib/rubygems/dependency.rb:280:in `matching_specs'
         6: from /slow/tmp_portage/dev-ruby/rubygems-3.1.2/work/ruby26/rubygems-3.1.2/lib/rubygems/specification.rb:847:in `stubs_for'
         5: from /slow/tmp_portage/dev-ruby/rubygems-3.1.2/work/ruby26/rubygems-3.1.2/lib/rubygems/specification.rb:932:in `dirs'
         4: from /slow/tmp_portage/dev-ruby/rubygems-3.1.2/work/ruby26/rubygems-3.1.2/lib/rubygems.rb:420:in `path'
         3: from /slow/tmp_portage/dev-ruby/rubygems-3.1.2/work/ruby26/rubygems-3.1.2/lib/rubygems.rb:374:in `paths'
         2: from /slow/tmp_portage/dev-ruby/rubygems-3.1.2/work/ruby26/rubygems-3.1.2/lib/rubygems/core_ext/kernel_require.rb:72:in `require'
         1: from /slow/tmp_portage/dev-ruby/rubygems-3.1.2/work/ruby26/rubygems-3.1.2/lib/rubygems/core_ext/kernel_require.rb:72:in `require'
/var/tmp/portage/dev-ruby/rubygems-3.1.2/work/ruby26/rubygems-3.1.2/lib/rubygems/path_support.rb:7:in `<top (required)>': uninitialized constant Gem::PathSupport (NameError)
Traceback (most recent call last):
        11: from <internal:gem_prelude>:4:in `<internal:gem_prelude>'
        10: from /slow/tmp_portage/dev-ruby/rubygems-3.1.2/work/ruby26/rubygems-3.1.2/lib/rubygems/core_ext/kernel_gem.rb:62:in `gem'
         9: from /slow/tmp_portage/dev-ruby/rubygems-3.1.2/work/ruby26/rubygems-3.1.2/lib/rubygems/dependency.rb:323:in `to_spec'
         8: from /slow/tmp_portage/dev-ruby/rubygems-3.1.2/work/ruby26/rubygems-3.1.2/lib/rubygems/dependency.rb:303:in `to_specs'
         7: from /slow/tmp_portage/dev-ruby/rubygems-3.1.2/work/ruby26/rubygems-3.1.2/lib/rubygems/dependency.rb:280:in `matching_specs'
         6: from /slow/tmp_portage/dev-ruby/rubygems-3.1.2/work/ruby26/rubygems-3.1.2/lib/rubygems/specification.rb:847:in `stubs_for'
         5: from /slow/tmp_portage/dev-ruby/rubygems-3.1.2/work/ruby26/rubygems-3.1.2/lib/rubygems/specification.rb:932:in `dirs'
         4: from /slow/tmp_portage/dev-ruby/rubygems-3.1.2/work/ruby26/rubygems-3.1.2/lib/rubygems.rb:420:in `path'
         3: from /slow/tmp_portage/dev-ruby/rubygems-3.1.2/work/ruby26/rubygems-3.1.2/lib/rubygems.rb:374:in `paths'
         2: from /slow/tmp_portage/dev-ruby/rubygems-3.1.2/work/ruby26/rubygems-3.1.2/lib/rubygems/core_ext/kernel_require.rb:72:in `require'
         1: from /slow/tmp_portage/dev-ruby/rubygems-3.1.2/work/ruby26/rubygems-3.1.2/lib/rubygems/core_ext/kernel_require.rb:72:in `require'
/var/tmp/portage/dev-ruby/rubygems-3.1.2/work/ruby26/rubygems-3.1.2/lib/rubygems/path_support.rb:7:in `<top (required)>': uninitialized constant Gem::PathSupport (NameError)
 * Running install phase for all ...
 * Running check install phase for ruby26 ...
Traceback (most recent call last):
        11: from <internal:gem_prelude>:4:in `<internal:gem_prelude>'
        10: from /slow/tmp_portage/dev-ruby/rubygems-3.1.2/work/ruby26/rubygems-3.1.2/lib/rubygems/core_ext/kernel_gem.rb:62:in `gem'
         9: from /slow/tmp_portage/dev-ruby/rubygems-3.1.2/work/ruby26/rubygems-3.1.2/lib/rubygems/dependency.rb:323:in `to_spec'
         8: from /slow/tmp_portage/dev-ruby/rubygems-3.1.2/work/ruby26/rubygems-3.1.2/lib/rubygems/dependency.rb:303:in `to_specs'
         7: from /slow/tmp_portage/dev-ruby/rubygems-3.1.2/work/ruby26/rubygems-3.1.2/lib/rubygems/dependency.rb:280:in `matching_specs'
         6: from /slow/tmp_portage/dev-ruby/rubygems-3.1.2/work/ruby26/rubygems-3.1.2/lib/rubygems/specification.rb:847:in `stubs_for'
         5: from /slow/tmp_portage/dev-ruby/rubygems-3.1.2/work/ruby26/rubygems-3.1.2/lib/rubygems/specification.rb:932:in `dirs'
         4: from /slow/tmp_portage/dev-ruby/rubygems-3.1.2/work/ruby26/rubygems-3.1.2/lib/rubygems.rb:420:in `path'
         3: from /slow/tmp_portage/dev-ruby/rubygems-3.1.2/work/ruby26/rubygems-3.1.2/lib/rubygems.rb:374:in `paths'
         2: from /slow/tmp_portage/dev-ruby/rubygems-3.1.2/work/ruby26/rubygems-3.1.2/lib/rubygems/core_ext/kernel_require.rb:72:in `require'
         1: from /slow/tmp_portage/dev-ruby/rubygems-3.1.2/work/ruby26/rubygems-3.1.2/lib/rubygems/core_ext/kernel_require.rb:72:in `require'
/var/tmp/portage/dev-ruby/rubygems-3.1.2/work/ruby26/rubygems-3.1.2/lib/rubygems/path_support.rb:7:in `<top (required)>': uninitialized constant Gem::PathSupport (NameError)
Traceback (most recent call last):
        11: from <internal:gem_prelude>:4:in `<internal:gem_prelude>'
        10: from /slow/tmp_portage/dev-ruby/rubygems-3.1.2/work/ruby26/rubygems-3.1.2/lib/rubygems/core_ext/kernel_gem.rb:62:in `gem'
         9: from /slow/tmp_portage/dev-ruby/rubygems-3.1.2/work/ruby26/rubygems-3.1.2/lib/rubygems/dependency.rb:323:in `to_spec'
         8: from /slow/tmp_portage/dev-ruby/rubygems-3.1.2/work/ruby26/rubygems-3.1.2/lib/rubygems/dependency.rb:303:in `to_specs'
         7: from /slow/tmp_portage/dev-ruby/rubygems-3.1.2/work/ruby26/rubygems-3.1.2/lib/rubygems/dependency.rb:280:in `matching_specs'
         6: from /slow/tmp_portage/dev-ruby/rubygems-3.1.2/work/ruby26/rubygems-3.1.2/lib/rubygems/specification.rb:847:in `stubs_for'
         5: from /slow/tmp_portage/dev-ruby/rubygems-3.1.2/work/ruby26/rubygems-3.1.2/lib/rubygems/specification.rb:932:in `dirs'
         4: from /slow/tmp_portage/dev-ruby/rubygems-3.1.2/work/ruby26/rubygems-3.1.2/lib/rubygems.rb:420:in `path'
         3: from /slow/tmp_portage/dev-ruby/rubygems-3.1.2/work/ruby26/rubygems-3.1.2/lib/rubygems.rb:374:in `paths'
         2: from /slow/tmp_portage/dev-ruby/rubygems-3.1.2/work/ruby26/rubygems-3.1.2/lib/rubygems/core_ext/kernel_require.rb:72:in `require'
         1: from /slow/tmp_portage/dev-ruby/rubygems-3.1.2/work/ruby26/rubygems-3.1.2/lib/rubygems/core_ext/kernel_require.rb:72:in `require'
/var/tmp/portage/dev-ruby/rubygems-3.1.2/work/ruby26/rubygems-3.1.2/lib/rubygems/path_support.rb:7:in `<top (required)>': uninitialized constant Gem::PathSupport (NameError)
Traceback (most recent call last):
        11: from <internal:gem_prelude>:4:in `<internal:gem_prelude>'
        10: from /slow/tmp_portage/dev-ruby/rubygems-3.1.2/work/ruby26/rubygems-3.1.2/lib/rubygems/core_ext/kernel_gem.rb:62:in `gem'
         9: from /slow/tmp_portage/dev-ruby/rubygems-3.1.2/work/ruby26/rubygems-3.1.2/lib/rubygems/dependency.rb:323:in `to_spec'
         8: from /slow/tmp_portage/dev-ruby/rubygems-3.1.2/work/ruby26/rubygems-3.1.2/lib/rubygems/dependency.rb:303:in `to_specs'
         7: from /slow/tmp_portage/dev-ruby/rubygems-3.1.2/work/ruby26/rubygems-3.1.2/lib/rubygems/dependency.rb:280:in `matching_specs'
         6: from /slow/tmp_portage/dev-ruby/rubygems-3.1.2/work/ruby26/rubygems-3.1.2/lib/rubygems/specification.rb:847:in `stubs_for'
         5: from /slow/tmp_portage/dev-ruby/rubygems-3.1.2/work/ruby26/rubygems-3.1.2/lib/rubygems/specification.rb:932:in `dirs'
         4: from /slow/tmp_portage/dev-ruby/rubygems-3.1.2/work/ruby26/rubygems-3.1.2/lib/rubygems.rb:420:in `path'
         3: from /slow/tmp_portage/dev-ruby/rubygems-3.1.2/work/ruby26/rubygems-3.1.2/lib/rubygems.rb:374:in `paths'
         2: from /slow/tmp_portage/dev-ruby/rubygems-3.1.2/work/ruby26/rubygems-3.1.2/lib/rubygems/core_ext/kernel_require.rb:72:in `require'
         1: from /slow/tmp_portage/dev-ruby/rubygems-3.1.2/work/ruby26/rubygems-3.1.2/lib/rubygems/core_ext/kernel_require.rb:72:in `require'
/var/tmp/portage/dev-ruby/rubygems-3.1.2/work/ruby26/rubygems-3.1.2/lib/rubygems/path_support.rb:7:in `<top (required)>': uninitialized constant Gem::PathSupport (NameError)
>>> Completed installing dev-ruby/rubygems-3.1.2 into /var/tmp/portage/dev-ruby/rubygems-3.1.2/image


============= and as final result ============


>>> Install dev-ruby/did_you_mean-1.4.0 into /var/tmp/portage/dev-ruby/did_you_mean-1.4.0/image
 * Running install phase for ruby26 ...
Traceback (most recent call last):
        3: from <internal:gem_prelude>:2:in `<internal:gem_prelude>'
        2: from <internal:gem_prelude>:2:in `require'
        1: from /usr/lib64/ruby/2.6.0/rubygems.rb:16:in `<top (required)>'
/usr/lib64/ruby/2.6.0/rubygems.rb:16:in `require': cannot load such file -- rubygems/compatibility (LoadError)
 * ERROR: dev-ruby/did_you_mean-1.4.0::gentoo failed (install phase):
 *   Unable to generate gemspec file.
 * 
 * Call stack:
 *     ebuild.sh, line  125:  Called src_install
 *   environment, line 2032:  Called ruby-ng_src_install
 *   environment, line 1676:  Called _ruby_each_implementation 'each_ruby_install'
 *   environment, line  506:  Called _ruby_invoke_environment 'ruby26' 'each_ruby_install'
 *   environment, line  627:  Called each_ruby_install
 *   environment, line  810:  Called each_fakegem_install
 *   environment, line  780:  Called ruby_fakegem_install_gemspec
 *   environment, line 1928:  Called die
 * The specific snippet of code:
 *       fi ) || die "Unable to generate gemspec file.";
 *
 * If you need support, post the output of `emerge --info '=dev-ruby/did_you_mean-1.4.0::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=dev-ruby/did_you_mean-1.4.0::gentoo'`.
 * The complete build log is located at '/var/tmp/portage/dev-ruby/did_you_mean-1.4.0/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/dev-ruby/did_you_mean-1.4.0/temp/environment'.
 * Working directory: '/var/tmp/portage/dev-ruby/did_you_mean-1.4.0/work/ruby26/did_you_mean-1.4.0'
 * S: '/var/tmp/portage/dev-ruby/did_you_mean-1.4.0/work/ruby26/did_you_mean-1.4.0'



Reproducible: Always
Comment 1 Hans de Graaff gentoo-dev 2020-01-13 18:59:47 UTC
(In reply to Stoian Ivanov from comment #0)
> make[1]: Entering directory
> '/slow/tmp_portage/dev-lang/ruby-2.6.5/work/ruby-2.6.5'
> *** Following extensions are not compiled:
> win32ole:
>         Could not be configured. It will not be installed.
>         Check ext/win32ole/mkmf.log for more details.
> win32:
>         Could not be configured. It will not be installed.
>         Check ext/win32/mkmf.log for more details.
> win32/resolv:
>         Skipped because its parent was not configured.

These are warnings and can be ignored. We are not building on win32.


> >>> Install dev-ruby/did_you_mean-1.4.0 into /var/tmp/portage/dev-ruby/did_you_mean-1.4.0/image
>  * Running install phase for ruby26 ...
> Traceback (most recent call last):
>         3: from <internal:gem_prelude>:2:in `<internal:gem_prelude>'
>         2: from <internal:gem_prelude>:2:in `require'
>         1: from /usr/lib64/ruby/2.6.0/rubygems.rb:16:in `<top (required)>'
> /usr/lib64/ruby/2.6.0/rubygems.rb:16:in `require': cannot load such file --
> rubygems/compatibility (LoadError)

It looks like rubygems-3.1.2 did not properly install. Please try re-installing, and if that does not fix the issue please include the complete build.log.
Comment 2 Stoian Ivanov 2020-01-14 07:26:19 UTC
Created attachment 603250 [details]
gubygems build log .. ends in success
Comment 3 Stoian Ivanov 2020-01-14 07:27:46 UTC
Created attachment 603252 [details]
dev-ruby/minitest build log with failure post rubygems reinstall
Comment 4 Stoian Ivanov 2020-01-14 07:31:30 UTC
OMG!

noah /var/tmp/portage # equery files rubygems
 * Searching for rubygems ...
 * Contents of dev-ruby/rubygems-3.1.2:
/auto_gem.rb
/rubygems
/rubygems.rb
/rubygems/available_set.rb
/rubygems/basic_specification.rb
/rubygems/bundler_version_finder.rb
/rubygems/command.rb
/rubygems/command_manager.rb
/rubygems/commands
/rubygems/commands/build_command.rb
/rubygems/commands/cert_command.rb
/rubygems/commands/check_command.rb
/rubygems/commands/cleanup_command.rb
/rubygems/commands/contents_command.rb
/rubygems/commands/dependency_command.rb
/rubygems/commands/environment_command.rb
/rubygems/commands/fetch_command.rb
/rubygems/commands/generate_index_command.rb
/rubygems/commands/help_command.rb
/rubygems/commands/info_command.rb
/rubygems/commands/install_command.rb
/rubygems/commands/list_command.rb
/rubygems/commands/lock_command.rb
/rubygems/commands/mirror_command.rb
/rubygems/commands/open_command.rb
/rubygems/commands/outdated_command.rb
/rubygems/commands/owner_command.rb
/rubygems/commands/pristine_command.rb
/rubygems/commands/push_command.rb
/rubygems/commands/query_command.rb



=========================

noah /var/tmp/portage # ll -d /r*
drwx------ 32 root root 4.0K 14 яну 08:37 /root
drwxr-xr-x 14 root root 4.0K 14 яну 09:13 /rubygems
-rw-r--r--  1 root root  37K 14 яну 09:13 /rubygems.rb
drwxr-xr-x 23 root root  820 13 яну 10:13 /run
noah /var/tmp/portage #