ocl-icd has build error in a system without Ruby previously installed. Ocl-icd ebuild file has `DEPEND="dev-lang/ruby` line but the packages are installed in following sequence: Calculating dependencies... done! [ebuild N ] dev-libs/libyaml-0.1.6 USE="-doc -examples -static-libs {-test}" [ebuild N ] app-eselect/eselect-ruby-20131227 [ebuild N ] app-eselect/eselect-opencl-1.1.0-r1 [ebuild N ] dev-util/ragel-6.7-r1 USE="-vim-syntax" [ebuild N ] dev-lang/ruby-2.1.7 USE="berkdb gdbm ipv6 ncurses rdoc readline ssl -debug -doc -examples -rubytests -socks5 -xemacs" [ebuild N ~] dev-libs/ocl-icd-2.2.8 [ebuild N ] dev-lang/ruby-2.0.0_p647-r1 USE="berkdb gdbm ipv6 ncurses rdoc readline ssl -debug -doc -examples -rubytests -socks5 -xemacs" CPU_FLAGS_X86="sse2" [ebuild N ] dev-ruby/rubygems-2.2.5-r1 USE="-server {-test}" RUBY_TARGETS="ruby20 ruby21 (-ruby19)" [ebuild N ] virtual/rubygems-10 RUBY_TARGETS="ruby20 ruby21 (-ruby19)" [ebuild N ] dev-ruby/rake-0.9.6-r1 USE="-doc {-test}" RUBY_TARGETS="ruby20 ruby21 (-ruby19)" [ebuild N ] dev-ruby/json-1.8.2-r1 USE="-doc {-test}" RUBY_TARGETS="ruby20 ruby21 (-ruby19)" [ebuild N ] dev-ruby/racc-1.4.11 USE="-doc {-test}" RUBY_TARGETS="ruby20 ruby21 (-ruby19)" [ebuild N ] dev-ruby/rdoc-4.2.0 USE="-doc {-test}" RUBY_TARGETS="ruby20 ruby21 (-ruby22)" which is similar to dev-lang/ruby installation. We see that ocl-icd is installed just after dev-lang/ruby but dev-ruby/rubygems is installed later. So, ocl-icd has a build error. This can easily be fixed by: DEPEND="dev-lang/ruby dev-ruby/rubygems" After this ocl-icd is successfully installed. For systems with ruby package installed earlier separately this problem doesn't occur because rubygems is installed earlier. Now, the sequence of installation changes to: Calculating dependencies... done! [ebuild N ] dev-libs/libyaml-0.1.6 USE="-doc -examples -static-libs {-test}" [ebuild N ] app-eselect/eselect-ruby-20131227 [ebuild N ] app-eselect/eselect-opencl-1.1.0-r1 [ebuild N ] dev-util/ragel-6.7-r1 USE="-vim-syntax" [ebuild N ] dev-lang/ruby-2.1.7 USE="berkdb gdbm ipv6 ncurses rdoc readline ssl -debug -doc -examples -rubytests -socks5 -xemacs" [ebuild N ] dev-lang/ruby-2.0.0_p647-r1 USE="berkdb gdbm ipv6 ncurses rdoc readline ssl -debug -doc -examples -rubytests -socks5 -xemacs" CPU_FLAGS_X86="sse2" [ebuild N ] dev-ruby/rubygems-2.2.5-r1 USE="-server {-test}" RUBY_TARGETS="ruby20 ruby21 (-ruby19)" [ebuild N ] virtual/rubygems-10 RUBY_TARGETS="ruby20 ruby21 (-ruby19)" [ebuild N ] dev-ruby/rake-0.9.6-r1 USE="-doc {-test}" RUBY_TARGETS="ruby20 ruby21 (-ruby19)" [ebuild N ] dev-ruby/json-1.8.2-r1 USE="-doc {-test}" RUBY_TARGETS="ruby20 ruby21 (-ruby19)" [ebuild N ] dev-ruby/racc-1.4.11 USE="-doc {-test}" RUBY_TARGETS="ruby20 ruby21 (-ruby19)" [ebuild N ] dev-ruby/rdoc-4.2.0 USE="-doc {-test}" RUBY_TARGETS="ruby20 ruby21 (-ruby22)" [ebuild N ~] dev-libs/ocl-icd-2.2.8
I have made a tiny PR #1038 for fixing this. I think any other info about this bug is not required.
(In reply to AbheeK Ghosh from comment #1) > I have made a tiny PR #1038 for fixing this. I think any other info about > this bug is not required. Nevertheless, $ emerge --info emerge --info Portage 2.2.26 (python 3.4.3-final-0, default/linux/amd64/13.0, gcc-4.9.3, glibc-2.21-r2, 3.13.0-79-generic x86_64) ================================================================= System Settings ================================================================= System uname: Linux-3.13.0-79-generic-x86_64-Intel-R-_Core-TM-_i5-4210U_CPU_@_1.70GHz-with-gentoo-2.2 KiB Mem: 3950132 total, 141132 free KiB Swap: 7812092 total, 7695608 free Timestamp of repository gentoo: Sun, 06 Mar 2016 00:45:01 +0000 sh bash 4.3_p42-r1 ld GNU ld (Gentoo 2.25.1 p1.1) 2.25.1 app-shells/bash: 4.3_p42-r1::gentoo dev-lang/perl: 5.20.2::gentoo dev-lang/python: 2.7.10-r1::gentoo, 3.4.3-r1::gentoo dev-util/cmake: 3.3.1-r1::gentoo dev-util/pkgconfig: 0.28-r2::gentoo sys-apps/baselayout: 2.2::gentoo sys-apps/openrc: 0.19.1::gentoo sys-apps/sandbox: 2.10-r1::gentoo sys-devel/autoconf: 2.69::gentoo sys-devel/automake: 1.14.1::gentoo, 1.15::gentoo sys-devel/binutils: 2.25.1-r1::gentoo sys-devel/gcc: 4.9.3::gentoo sys-devel/gcc-config: 1.7.3::gentoo sys-devel/libtool: 2.4.6::gentoo sys-devel/make: 4.1-r1::gentoo sys-kernel/linux-headers: 4.3::gentoo (virtual/os-headers) sys-libs/glibc: 2.21-r2::gentoo Repositories: gentoo location: /usr/portage sync-type: rsync sync-uri: rsync://rsync.gentoo.org/gentoo-portage priority: -1000 ACCEPT_KEYWORDS="amd64" ACCEPT_LICENSE="* -@EULA" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-march=native -O2 -pipe" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo" CXXFLAGS="-march=native -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://www.mirrorservice.org/sites/distfiles.gentoo.org/ rsync://rsync.mirrorservice.org/distfiles.gentoo.org/" LANG="en_US.utf8" LDFLAGS="-Wl,-O1 -Wl,--as-needed" MAKEOPTS="-j2" 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" USE="acl amd64 berkdb bindist bzip2 cli cracklib crypt cxx dri fortran gdbm iconv ipv6 mmx mmxext modules multilib ncurses nls nptl openmp pam pcre readline seccomp session sse sse2 ssl tcpd unicode xattr 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" CPU_FLAGS_X86="mmx mmxext sse sse2" 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="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_4" RUBY_TARGETS="ruby20 ruby21" USERLAND="GNU" VIDEO_CARDS="fbdev glint intel mach64 mga nouveau nv r128 radeon savage sis tdfx trident vesa via vmware dummy v4l" 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 build log: * Package: dev-libs/ocl-icd-2.2.8 * Repository: gentoo * Maintainer: patrick@gentoo.org * USE: abi_x86_64 amd64 elibc_glibc kernel_linux userland_GNU * FEATURES: preserve-libs sandbox userpriv usersandbox >>> Unpacking source... >>> Unpacking ocl-icd-2.2.8.tar.gz to /var/tmp/portage/dev-libs/ocl-icd-2.2.8/work >>> Source unpacked in /var/tmp/portage/dev-libs/ocl-icd-2.2.8/work >>> Preparing source in /var/tmp/portage/dev-libs/ocl-icd-2.2.8/work/ocl-icd-2.2.8 ... >>> Source prepared. >>> Configuring source in /var/tmp/portage/dev-libs/ocl-icd-2.2.8/work/ocl-icd-2.2.8 ... * econf: updating ocl-icd-2.2.8/config.sub with /usr/share/gnuconfig/config.sub * econf: updating ocl-icd-2.2.8/build-aux/config.sub with /usr/share/gnuconfig/config.sub * econf: updating ocl-icd-2.2.8/build-aux/config.guess with /usr/share/gnuconfig/config.guess * econf: updating ocl-icd-2.2.8/config.guess with /usr/share/gnuconfig/config.guess ./configure --prefix=/usr --build=x86_64-pc-linux-gnu --host=x86_64-pc-linux-gnu --mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc --localstatedir=/var/lib --disable-dependency-tracking --disable-silent-rules --libdir=/usr/lib64 checking for a BSD-compatible install... /usr/lib/portage/python3.4/ebuild-helpers/xattr/install -c checking whether build environment is sane... yes checking for a thread-safe mkdir -p... /bin/mkdir -p checking for gawk... gawk checking whether make sets $(MAKE)... yes checking whether make supports nested variables... yes checking how to create a pax tar archive... gnutar checking whether make supports nested variables... (cached) yes checking for style of include used by make... GNU checking for x86_64-pc-linux-gnu-gcc... x86_64-pc-linux-gnu-gcc checking whether the C compiler works... yes checking for C compiler default output file name... a.out checking for suffix of executables... checking whether we are cross compiling... no checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether x86_64-pc-linux-gnu-gcc accepts -g... yes checking for x86_64-pc-linux-gnu-gcc option to accept ISO C89... none needed checking whether x86_64-pc-linux-gnu-gcc understands -c and -o together... yes checking dependency style of x86_64-pc-linux-gnu-gcc... none checking for x86_64-pc-linux-gnu-ar... x86_64-pc-linux-gnu-ar checking the archiver (x86_64-pc-linux-gnu-ar) interface... ar checking build system type... x86_64-pc-linux-gnu checking host system type... x86_64-pc-linux-gnu checking how to print strings... printf checking for a sed that does not truncate output... /bin/sed checking for grep that handles long lines and -e... /bin/grep checking for egrep... /bin/grep -E checking for fgrep... /bin/grep -F checking for ld used by x86_64-pc-linux-gnu-gcc... /usr/x86_64-pc-linux-gnu/bin/ld checking if the linker (/usr/x86_64-pc-linux-gnu/bin/ld) is GNU ld... yes checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B checking the name lister (/usr/bin/nm -B) interface... BSD nm checking whether ln -s works... yes checking the maximum length of command line arguments... 1572864 checking whether the shell understands some XSI constructs... yes checking whether the shell understands "+="... yes checking how to convert x86_64-pc-linux-gnu file names to x86_64-pc-linux-gnu format... func_convert_file_noop checking how to convert x86_64-pc-linux-gnu file names to toolchain format... func_convert_file_noop checking for /usr/x86_64-pc-linux-gnu/bin/ld option to reload object files... -r checking for x86_64-pc-linux-gnu-objdump... x86_64-pc-linux-gnu-objdump checking how to recognize dependent libraries... pass_all checking for x86_64-pc-linux-gnu-dlltool... no checking for dlltool... no checking how to associate runtime and link libraries... printf %s\n checking for x86_64-pc-linux-gnu-ar... (cached) x86_64-pc-linux-gnu-ar checking for archiver @FILE support... @ checking for x86_64-pc-linux-gnu-strip... x86_64-pc-linux-gnu-strip checking for x86_64-pc-linux-gnu-ranlib... x86_64-pc-linux-gnu-ranlib checking command to parse /usr/bin/nm -B output from x86_64-pc-linux-gnu-gcc object... ok checking for sysroot... no checking for x86_64-pc-linux-gnu-mt... no checking for mt... no checking if : is a manifest tool... no checking how to run the C preprocessor... x86_64-pc-linux-gnu-gcc -E checking for ANSI C header files... yes checking for sys/types.h... yes checking for sys/stat.h... yes checking for stdlib.h... yes checking for string.h... yes checking for memory.h... yes checking for strings.h... yes checking for inttypes.h... yes checking for stdint.h... yes checking for unistd.h... yes checking for dlfcn.h... yes checking for objdir... .libs checking if x86_64-pc-linux-gnu-gcc supports -fno-rtti -fno-exceptions... no checking for x86_64-pc-linux-gnu-gcc option to produce PIC... -fPIC -DPIC checking if x86_64-pc-linux-gnu-gcc PIC flag -fPIC -DPIC works... yes checking if x86_64-pc-linux-gnu-gcc static flag -static works... yes checking if x86_64-pc-linux-gnu-gcc supports -c -o file.o... yes checking if x86_64-pc-linux-gnu-gcc supports -c -o file.o... (cached) yes checking whether the x86_64-pc-linux-gnu-gcc linker (/usr/x86_64-pc-linux-gnu/bin/ld -m elf_x86_64) supports shared libraries... yes checking whether -lc should be explicitly linked in... no checking dynamic linker characteristics... GNU/Linux ld.so checking how to hardcode library paths into programs... immediate checking whether stripping libraries is possible... yes checking if libtool supports shared libraries... yes checking whether to build shared libraries... yes checking whether to build static libraries... no checking for x86_64-pc-linux-gnu-gcc option to accept ISO C89... (cached) none needed checking whether ln -s works... yes checking for asciidoc... no checking for a2x... no checking for xmlto... no checking for dlopen in -ldl... yes checking for stdlib.h... (cached) yes checking for string.h... (cached) yes checking CL/opencl.h usability... yes checking CL/opencl.h presence... yes checking for CL/opencl.h... yes checking whether OpenCL headers 2.1 are available... no checking for inline... inline checking for size_t... yes checking for an ANSI C-conforming const... yes checking whether C compiler accepts -Wno-deprecated-declarations... yes checking for stdlib.h... (cached) yes checking for GNU libc compatible malloc... yes checking for stdlib.h... (cached) yes checking for GNU libc compatible realloc... yes checking for strstr... yes configure: using internal copy of OpenCL headers checking that generated files are newer than configure... done configure: creating ./config.status config.status: creating Makefile config.status: creating doc/Makefile config.status: creating tests/Makefile config.status: creating OpenCL.pc config.status: creating ocl-icd.pc config.status: creating tests/atlocal config.status: creating config.h config.status: executing depfiles commands config.status: executing libtool commands config.status: executing tests/atconfig commands >>> Source configured. >>> Compiling source in /var/tmp/portage/dev-libs/ocl-icd-2.2.8/work/ocl-icd-2.2.8 ... make -j2 ruby icd_generator.rb --mode database --database ./ocl_interface.yaml \ ruby icd_generator.rb --mode generate --database ./ocl_interface.yaml /usr/lib64/ruby/2.1.0/rubygems.rb:15:in `require': cannot load such file -- rubygems/compatibility (LoadError) from /usr/lib64/ruby/2.1.0/rubygems.rb:15:in `<top (required)>' from <internal:gem_prelude>:1:in `require' from <internal:gem_prelude>:1:in `<compiled>' /usr/lib64/ruby/2.1.0/rubygems.rb:15:in `require': cannot load such file -- rubygems/compatibility (LoadError) from /usr/lib64/ruby/2.1.0/rubygems.rb:15:in `<top (required)>' from <internal:gem_prelude>:1:in `require' from <internal:gem_prelude>:1:in `<compiled>' Makefile:1464: recipe for target 'stamp-generator-dummy' failed make: *** [stamp-generator-dummy] Error 1 make: *** Waiting for unfinished jobs.... Makefile:1442: recipe for target 'stamp-generator' failed make: *** [stamp-generator] Error 1 * ERROR: dev-libs/ocl-icd-2.2.8::gentoo failed (compile phase): * emake failed * * If you need support, post the output of `emerge --info '=dev-libs/ocl-icd-2.2.8::gentoo'`, * the complete build log and the output of `emerge -pqv '=dev-libs/ocl-icd-2.2.8::gentoo'`. * The complete build log is located at '/var/tmp/portage/dev-libs/ocl-icd-2.2.8/temp/build.log'. * The ebuild environment file is located at '/var/tmp/portage/dev-libs/ocl-icd-2.2.8/temp/environment'. * Working directory: '/var/tmp/portage/dev-libs/ocl-icd-2.2.8/work/ocl-icd-2.2.8' * S: '/var/tmp/portage/dev-libs/ocl-icd-2.2.8/work/ocl-icd-2.2.8'
Calculating dependencies... done! [ebuild N ] dev-libs/libyaml-0.1.6::gentoo USE="-doc -examples -static-libs {-test}" 0 KiB [ebuild N ] app-eselect/eselect-ruby-20151229::gentoo 0 KiB [ebuild N ] dev-util/ragel-6.9::gentoo USE="-vim-syntax" 0 KiB [ebuild N ] dev-lang/ruby-2.2.4:2.2::gentoo USE="berkdb gdbm ipv6 ncurses rdoc readline ssl -debug -doc -examples -jemalloc -libressl -rubytests -socks5 -xemacs" 0 KiB [ebuild N ] dev-ruby/rubygems-2.6.1::gentoo USE="-server {-test}" RUBY_TARGETS="ruby22 -ruby20 -ruby21 -ruby23" 467 KiB [ebuild N ] virtual/rubygems-11::gentoo RUBY_TARGETS="ruby22 (-rbx) (-ruby19) -ruby20 -ruby21 -ruby23" 0 KiB [ebuild N ] dev-ruby/rake-11.1.0::gentoo USE="-doc {-test}" RUBY_TARGETS="ruby22 -ruby20 -ruby21 -ruby23" 126 KiB [ebuild N ] dev-ruby/json-1.8.3::gentoo USE="-doc {-test}" RUBY_TARGETS="ruby22 -ruby20 -ruby21 -ruby23" 0 KiB [ebuild N ] dev-ruby/power_assert-0.2.7::gentoo USE="-doc {-test}" RUBY_TARGETS="ruby22 -ruby20 -ruby21 -ruby23" 0 KiB [ebuild N ] dev-ruby/test-unit-3.1.7:2::gentoo USE="-doc {-test}" RUBY_TARGETS="ruby22 -ruby20 -ruby21 -ruby23" 0 KiB [ebuild N ] dev-ruby/minitest-5.8.4:5::gentoo USE="-doc {-test}" RUBY_TARGETS="ruby22 -ruby20 -ruby21 -ruby23" 0 KiB [ebuild N ] dev-ruby/racc-1.4.14::gentoo USE="-doc {-test}" RUBY_TARGETS="ruby22 -ruby20 -ruby21 -ruby23" 0 KiB [ebuild N ] dev-ruby/rdoc-4.2.2::gentoo USE="-doc {-test}" RUBY_TARGETS="ruby22 -ruby20 -ruby21 -ruby23" 0 KiB [ebuild N ] dev-libs/ocl-icd-2.2.8::gentoo 0 KiB Order looks ok to me. A 'fake' dep on rubygems sounds very werid ...
commit 0ee693b32651ff3d1f161a9994d1702fb5c847e2 (HEAD -> master) Author: Abheek Ghosh <abheekghosh.ag@gmail.com> AuthorDate: Sun Mar 13 09:06:03 2016 +0000 Commit: Patrice Clement <monsieurp@gentoo.org> CommitDate: Mon Mar 21 21:50:34 2016 +0000 dev-libs/ocl-icd: fix dev-lang/ruby dependency ocl-icd requires dev-ruby/rubygems to build. version 2.2.3 and 2.2.8 fixed. Gentoo-Bug: https://bugs.gentoo.org/577266 Closes: https://github.com/gentoo/gentoo/pull/1038 dev-libs/ocl-icd/ocl-icd-2.2.3.ebuild | 3 ++- dev-libs/ocl-icd/ocl-icd-2.2.8.ebuild | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-)
Created attachment 535418 [details] build.log for failed emerge It seems I have the same error with dev-libs/ocl-icd-2.2.11. build.log attached.
I had ruby22 selected: # eselect ruby list Available Ruby profiles: [1] ruby22 * [2] ruby23 (with Rubygems) When I selected ruby23 (with Rubygems), problem was solved.