Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 715356 - dev-ruby/ffi-1.11.3 can't find gem rake (>= 0.a) with executable rake (Gem::GemNotFoundException)
Summary: dev-ruby/ffi-1.11.3 can't find gem rake (>= 0.a) with executable rake (Gem::G...
Status: RESOLVED INVALID
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-03-29 21:00 UTC by aleck
Modified: 2020-04-14 10:14 UTC (History)
1 user (show)

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


Attachments
emerge --info (emerge-info.txt,6.04 KB, text/plain)
2020-03-29 21:00 UTC, aleck
Details
emerge-info-ffi.txt (emerge-info-ffi.txt,6.14 KB, text/plain)
2020-03-30 00:21 UTC, aleck
Details
build.log (build.log,11.42 KB, text/x-log)
2020-03-30 00:22 UTC, aleck
Details

Note You need to log in before you can comment on or make changes to this bug.
Description aleck 2020-03-29 21:00:31 UTC
Created attachment 627024 [details]
emerge --info

I got the same error on version 1.12.2, too.:

rm -f ffi_c.so
x86_64-pc-linux-gnu-gcc -shared -o ffi_c.so AbstractMemory.o ArrayType.o Buffer.o Call.o ClosurePool.o DynamicLibrary.o Function.o FunctionInfo.o LastError.o LongDouble.o MappedType.o MemoryPointer.o MethodHandle.o Platform.o Pointer.o Struct.o StructByValue.o StructLayout.o Thread.o Type.o Types.o Variadic.o ffi.o -L. -L/usr/lib64 -L. -Wl,-O1 -Wl,--as-needed -fstack-protector -rdynamic -Wl,-export-dynamic -Wl,--no-undefined  -Wl,-O1 -Wl,--as-needed -Wl,--compress-debug-sections=zlib    -lruby24 -lffi  -lffi -lpthread -lgmp -ldl -lcrypt -lm   -lc
make: Leaving directory '/var/tmp/portage/dev-ruby/ffi-1.11.3/work/ruby24/ffi-1.11.3/ext/ffi_c'
/usr/lib64/ruby/site_ruby/2.4.0/rubygems.rb:284:in `find_spec_for_exe': can't find gem rake (>= 0.a) with executable rake (Gem::GemNotFoundException)
        from /usr/lib64/ruby/site_ruby/2.4.0/rubygems.rb:303:in `activate_bin_path'
        from /usr/local/bin/rake:23:in `<main>'
 * ERROR: dev-ruby/ffi-1.11.3::gentoo failed (compile phase):
 *   types.conf generation failed
 *
 * Call stack:
 *     ebuild.sh, line  125:  Called src_compile
 *   environment, line 2049:  Called ruby-ng_src_compile
 *   environment, line 1687:  Called _ruby_each_implementation 'each_ruby_compile'
 *   environment, line  511:  Called _ruby_invoke_environment 'ruby24' 'each_ruby_compile'
 *   environment, line  632:  Called each_ruby_compile
 *   environment, line  821:  Called die
 * The specific snippet of code:
 *       ${RUBY} -S rake -f gen/Rakefile || die "types.conf generation failed"
 *
 * If you need support, post the output of `emerge --info '=dev-ruby/ffi-1.11.3::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=dev-ruby/ffi-1.11.3::gentoo'`.
 * The complete build log is located at '/var/tmp/portage/dev-ruby/ffi-1.11.3/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/dev-ruby/ffi-1.11.3/temp/environment'.
 * Working directory: '/var/tmp/portage/dev-ruby/ffi-1.11.3/work/ruby24/ffi-1.11.3'
 * S: '/var/tmp/portage/dev-ruby/ffi-1.11.3/work/ruby24/ffi-1.11.3'
Comment 1 Jonas Stein gentoo-dev 2020-03-29 23:35:23 UTC
Thank you for the report. We need to have all information at hand before ticket assignment. That is why I ask you to 
* attach the logs and 
* paste the emerge info 
as described on 
https://wiki.gentoo.org/wiki/Attach_the_logs_to_the_bug_ticket
Please reopen this ticket (Status:UNCONFIRMED) afterwards.
Comment 2 aleck 2020-03-30 00:21:09 UTC
Created attachment 627048 [details]
emerge-info-ffi.txt
Comment 3 aleck 2020-03-30 00:22:50 UTC
Created attachment 627050 [details]
build.log
Comment 4 Hans de Graaff gentoo-dev Security 2020-04-12 11:55:12 UTC
dev-ruby/rake is a dependency for dev-ruby/ffi, so it should have been pulled in. Can you check if dev-ruby/rake is installed?
Comment 5 aleck 2020-04-12 12:18:32 UTC
dev-ruby/rake is and was installed with version 12.3.3, but doesn't seem to be found by ffi.
Comment 6 Hans de Graaff gentoo-dev Security 2020-04-12 13:05:58 UTC
Which version of ruby is eselected?
What does `which rake` say?
Comment 7 aleck 2020-04-12 14:57:52 UTC
Hello Hans,

thanks for your support:

# which rake
/usr/bin/rake


# equery y ruby
Keywords for dev-lang/ruby:
          |                             |   u     |
          | a a   a     p         s r   |   n     |
          | l m   r i   p   h m s p i m | e u s   | r
          | p d a m a p c x p 6 3 a s i | a s l   | e
          | h 6 r 6 6 p 6 8 p 8 9 r c p | p e o   | p
          | a 4 m 4 4 c 4 6 a k 0 c v s | i d t   | o
----------+-----------------------------+---------+-------
    2.4.9 | ~ + + + ~ + + + + o + + o ~ | 7 o 2.4 | gentoo
[I]2.4.10 | ~ + + + ~ ~ ~ + + o + + o ~ | 7 o     | gentoo
----------+-----------------------------+---------+-------
    2.5.7 | ~ + + + ~ ~ ~ + + o + + o ~ | 7 # 2.5 | gentoo
 [I]2.5.8 | ~ + + + ~ + + + + o + + o ~ | 7 o     | gentoo
...

is it a problem that I have two versions of ruby? I need to check which packages pull the 2.4 in.
Comment 8 aleck 2020-04-12 15:38:15 UTC
Looks like  dev-lang/ruby-2.4.10:2.4 is pulled from 
dev-ruby/did_you_mean-1.1.2:2.4 
which looks like for me that is pulled from
dev-lang/ruby-2.5.8.

That looks strange for me, is this right?
Comment 9 aleck 2020-04-14 10:14:29 UTC
stupid me, I had an other version of rake installed on /usr/local/bin that messed up everything. 

Sorry for that noise, I close the bug.

cheers