Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 544124 - [science overlay] dev-util/amdapp-2.9.1 and x11-drivers/ati-drivers-14.12-r3 file collision /usr/lib64/OpenCL/vendors/amd/libOpenCL.so*
Summary: [science overlay] dev-util/amdapp-2.9.1 and x11-drivers/ati-drivers-14.12-r3 ...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Library (show other bugs)
Hardware: All Linux
: Normal normal with 1 vote (vote)
Assignee: Marius Brehler
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-03-22 17:42 UTC by Jeremy MacCabe
Modified: 2015-12-07 08:13 UTC (History)
2 users (show)

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 Jeremy MacCabe 2015-03-22 17:42:46 UTC
There are file collisions when you try to emerge amdapp from the science overlay with ati-drivers installed.

 * Detected file collision(s):
 * 
 * 	/usr/lib64/OpenCL/vendors/amd/libOpenCL.so.1
 * 	/usr/lib64/OpenCL/vendors/amd/libOpenCL.so


Reproducible: Always

Steps to Reproduce:
1. emerge ati-drivers
2. emerge amdapp

Actual Results:  
amdapp is not installed due to file collisions.

Expected Results:  
amdapp to be installed.

emerge --info

Portage 2.2.14 (python 3.3.5-final-0, default/linux/amd64/13.0, gcc-4.8.3, glibc-2.19-r1, 3.10.17-gentoo x86_64)
=================================================================
System uname: Linux-3.10.17-gentoo-x86_64-AMD_FX-tm-8350_Eight-Core_Processor-with-gentoo-2.2
KiB Mem:    32908600 total,   2290008 free
KiB Swap:   67108860 total,  67108860 free
Timestamp of tree: Sun, 08 Mar 2015 19:00:01 +0000
ld GNU ld (Gentoo 2.24 p1.4) 2.24
distcc 3.1 x86_64-pc-linux-gnu [disabled]
app-shells/bash:          4.2_p53
dev-java/java-config:     2.2.0
dev-lang/perl:            5.18.2-r2
dev-lang/python:          2.7.9-r1, 3.3.5-r1, 3.4.1
dev-util/cmake:           2.8.12.2-r1
dev-util/pkgconfig:       0.28-r1
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-r1, 1.11.6-r1, 1.13.4
sys-devel/binutils:       2.24-r3
sys-devel/gcc:            4.8.3
sys-devel/gcc-config:     1.7.3
sys-devel/libtool:        2.4.4
sys-devel/make:           4.0-r1
sys-kernel/linux-headers: 3.16 (virtual/os-headers)
sys-libs/glibc:           2.19-r1
Repositories: gentoo x-portage roslin sunrise gamerlay steam-overlay science
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=athlon64 -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt /usr/share/themes/oxygen-gtk/gtk-2.0"
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/splash /etc/terminfo"
CXXFLAGS="-march=athlon64 -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="-j4"
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"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="en_US.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j5"
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="/usr/local/portage /var/lib/layman/roslin /var/lib/layman/sunrise /var/lib/layman/gamerlay /var/lib/layman/steam /var/lib/layman/science"
USE="3dnow 3dnowext X acl alsa amd64 berkdb bzip2 cli consolekit cracklib crypt cxx dbus dri dvd dvdr flac fortran gdbm gtk iconv ipv6 jpeg libav mmx modules multilib ncurses nls nptl offensive opencl opengl openmp pam pcre png policykit readline samba session sse sse2 ssl svg systemd tcpd tiff udev unicode xinerama 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 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" LINGUAS="en de fr 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="fglrx" 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, SYNC, USE_PYTHON
Comment 1 Marius Brehler 2015-03-22 21:16:22 UTC
I can confirm that amdapp-2.9.1 provides libOpenCl.so*

marbre@thornydevil /var/tmp/portage/dev-util/amdapp-2.9.1/work/lib/x86_64 $ ls -la
[..]
lrwxrwxrwx 1 marbre marbre       14 Aug 22  2014 libOpenCL.so -> libOpenCL.so.1
-rw-r--r-- 1 marbre marbre    27352 Aug 19  2014 libOpenCL.so.1

This also applies for amdapp-2.9.
Comment 2 Justin Lecher (RETIRED) gentoo-dev 2015-03-23 07:07:15 UTC
(In reply to Marius Brehler from comment #1)
> I can confirm that amdapp-2.9.1 provides libOpenCl.so*
> 
> marbre@thornydevil /var/tmp/portage/dev-util/amdapp-2.9.1/work/lib/x86_64 $
> ls -la
> [..]
> lrwxrwxrwx 1 marbre marbre       14 Aug 22  2014 libOpenCL.so ->
> libOpenCL.so.1
> -rw-r--r-- 1 marbre marbre    27352 Aug 19  2014 libOpenCL.so.1
> 
> This also applies for amdapp-2.9.

So is this the same lib as ati-drivers provide? Which package is the better provider?
Comment 3 Marius Brehler 2015-03-23 08:03:36 UTC
As discussed in the #gentoo-science IRC the libOpenCL.so is just a ICD wrapper with no implementation. The library /usr/lib64/OpenCL/vendors/amd/libamdocl64.so provides the implementation. As libOpenCL.so might not be different between both packages, the libamdocl64 differs in file size:

/var/tmp/portage/x11-drivers/ati-drivers-14.12-r3/work/arch/x86_64/usr/lib64 $ ls -la libamdocl64.so -h
[..] 60M Nov 28 21:02 libamdocl64.so


/var/tmp/portage/dev-util/amdapp-2.9.1/work/lib/x86_64 $ ls -la libamdocl64.so -h
[..] 38M Aug 19  2014 libamdocl64.so
Comment 4 Marius Brehler 2015-03-23 13:15:52 UTC
Okay, I finally digged into a little deeper...

The amdapp ebuild installs the libOpenCL.so* to /opt/AMDAPP/lib/{x86,x86_64}. The files at /usr/lib64/OpenCL/vendors/amd/ are only symlinks which we could skip.
Looks like these are the only file collisions.

Regarding my previous comment, these libs are same size and version now in the amdapp 3.0 beta package.
Comment 5 Marius Brehler 2015-12-07 07:23:01 UTC
To solve bug #567240, I checked the install script 'install.sh' shipped with amdapp-3.0. They provide a function 'handleCatalyst()', which removes libOpenCL.so* prior to the installation if catalyst is installed. Thus catalyst is the preferred provider.
Comment 6 Marius Brehler 2015-12-07 08:13:31 UTC
https://github.com/gentoo-science/sci/commit/1afb3f2d15e00209fbd4488b31b3e234e4399081

dev-util/amdapp: Add dependency on x11-drivers/ati-drivers

Let catalyst provide libOpenCL.so* and /etc/OpenCL/vendors files.

Gentoo-Bug: https://bugs.gentoo.org/show_bug.cgi?id=544124
Gentoo-Bug: https://bugs.gentoo.org/show_bug.cgi?id=567240