Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 600070 - media-libs/vulkan-loader fails to install - dosym: two arguments needed
Summary: media-libs/vulkan-loader fails to install - dosym: two arguments needed
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Matt Turner
URL:
Whiteboard:
Keywords:
: 607140 (view as bug list)
Depends on:
Blocks: 611056
  Show dependency tree
 
Reported: 2016-11-17 07:36 UTC by Amit Prakash Ambasta
Modified: 2017-03-03 22:52 UTC (History)
1 user (show)

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


Attachments
vulkan-loader-1.0.33.0.ebuild (vulkan-loader-1.0.33.0.ebuild,1.30 KB, text/plain)
2017-01-20 09:13 UTC, Amit Prakash Ambasta
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Amit Prakash Ambasta 2016-11-17 07:36:33 UTC
On emerging vulkan-loader, the emerge fails during install phase with the following message:

>>> Install vulkan-loader-1.0.30.0 into /home/portage/portage/media-libs/vulkan-loader-1.0.30.0/image/ category media-libs
 * abi_x86_64.amd64: running multilib-minimal_abi_src_install
 * ERROR: media-libs/vulkan-loader-1.0.30.0::gentoo failed (install phase):
 *   dosym: two arguments needed


emerge info below
---------------------------------------------------------------------------
Portage 2.3.2 (python 3.5.2-final-0, default/linux/amd64/13.0/no-multilib, gcc-5.4.0, glibc-2.23-r3, 4.8.7-gentoo x86_64)
=================================================================
System uname: Linux-4.8.7-gentoo-x86_64-Intel-R-_Core-TM-_i5-4210U_CPU_@_1.70GHz-with-gentoo-2.3
KiB Mem:    16333672 total,   9649924 free
KiB Swap:          0 total,         0 free
Timestamp of repository gentoo: Thu, 17 Nov 2016 06:00:01 +0000
sh bash 4.3_p48
ld GNU ld (Gentoo 2.26.1 p1.0) 2.26.1
app-shells/bash:          4.3_p48::gentoo
dev-java/java-config:     2.2.0-r3::gentoo
dev-lang/perl:            5.24.0-r2::gentoo
dev-lang/python:          2.7.12::gentoo, 3.5.2::gentoo
dev-util/cmake:           3.7.0::gentoo
dev-util/pkgconfig:       0.29.1::gentoo
sys-apps/baselayout:      2.3::gentoo
sys-apps/openrc:          0.22.3-r1::gentoo
sys-apps/sandbox:         2.11-r3::gentoo
sys-devel/autoconf:       2.13::gentoo, 2.69-r2::gentoo
sys-devel/automake:       1.13.4-r1::gentoo, 1.14.1-r1::gentoo, 1.15-r2::gentoo
sys-devel/binutils:       2.26.1::gentoo, 2.27::gentoo
sys-devel/gcc:            5.4.0::gentoo
sys-devel/gcc-config:     1.8-r1::gentoo
sys-devel/libtool:        2.4.6-r2::gentoo
sys-devel/make:           4.2.1::gentoo
sys-kernel/linux-headers: 4.8::gentoo (virtual/os-headers)
sys-libs/glibc:           2.23-r3::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: rsync
    sync-uri: rsync://rsync.gentoo.org/gentoo-portage
    priority: -1000

ambasta
    location: /var/lib/layman/ambasta
    masters: gentoo
    priority: 0

delhivery
    location: /var/lib/layman/delhivery
    masters: gentoo
    priority: 1

sublime-text
    location: /var/lib/layman/sublime-text
    sync-type: laymansync
    sync-uri: git://github.com/DamnWidget/sublime-text.git
    masters: gentoo
    priority: 50

ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="* -@EULA google-chrome Oracle-BCLA-JavaSE Sublime Google-TOS OPERA-2014 PUEL"
CBUILD="x86_64-pc-linux-gnu"
CC="x86_64-pc-linux-gnu-clang"
CFLAGS="-O2 -pipe -march=haswell -mtune=haswell -flto=thin"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/chromium/policies/managed/chrome-gnome-shell.json /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/opt/chrome/policies/managed/chrome-gnome-shell.json /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXX="x86_64-pc-linux-gnu-clang++"
CXXFLAGS="-O2 -pipe -march=haswell -mtune=haswell -flto=thin -stdlib=libc++"
DISTDIR="/home/portage/distfiles/"
EMERGE_DEFAULT_OPTS="--autounmask=n"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync multilib-strict news nodoc noinfo nostrip 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://mirror.leaseweb.com/gentoo/ http://gd.tuwien.ac.at/opsys/linux/gentoo/ http://gentoo.inode.at/ http://www.mirrorservice.org/sites/distfiles.gentoo.org/ http://gentoo.gg3.net/"
LANG="en_US.utf8"
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 --exclude=/.git"
PORTAGE_TMPDIR="/home/portage/"
USE="X acl amd64 berkdb bzip2 cli cracklib crypt cups cxx dbus directfb dri dri3 foomaticdb gdbm glamor gnome gnome-keyring gtk3 iconv infinality introspection libkms libsecret lz4 lzma mmx mmxext modules ncurses networkmanager nls nptl ntp opengl openmp pam pcre policykit ppds pulseaudio python3 readline seccomp session sna sse sse2 ssl systemd tcpd udev unicode vulkan 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="aes avx avx2 fma3 mmx mmxext popcnt sse sse2 sse3 sse4_1 sse4_2 ssse3" 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="libinput" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="en_US" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-6" PYTHON_SINGLE_TARGET="python3_5" PYTHON_TARGETS="python3_5 python2_7" RUBY_TARGETS="ruby21" USERLAND="GNU" VIDEO_CARDS="intel i965 fbdev" 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 Amit Prakash Ambasta 2017-01-20 09:13:59 UTC
Created attachment 460714 [details]
vulkan-loader-1.0.33.0.ebuild

So the ebuild dosym fails since vulkan is being built with -flto=thin which also generates libvulkan.so.1.33.0.thinlto.bc

Hence dosym libvulkan.so.1.* /usr/$(get_libdir)/... ends up producing three arguments as:

dosym libvulkan.so.1.0.33 libvulkan.so.1.0.33.thinlto.bc /usr/lib64/libvulkan.so.1

The proposed ebuild fixes this by creating MY_PV = PV without the tweak version and calling 

dosym libvulkan.so.${MY_PV} ...
Comment 2 Matt Turner gentoo-dev 2017-01-25 23:18:56 UTC
*** Bug 607140 has been marked as a duplicate of this bug. ***
Comment 3 Matt Turner gentoo-dev 2017-03-03 22:52:35 UTC
Fixed by

commit 3b4f527614cd87d33e808943716e582957f67735
Author: Matt Turner <mattst88@gentoo.org>
Date:   Fri Mar 3 14:48:05 2017 -0800

    media-libs/vulkan-loader: Install things properly.

Instead of fixing the manual installation of the library, I just used the default install rules provided by the package. This was cleaner, and necessary for a version "9999" ebuild to work.

Another comment, "cd" is not part of the package manager, so you still need "|| die" after it.