Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 721958

Summary: dev-libs/rocm-opencl-runtime: inconsistency in registered CommandLine options for some OpenCL usages
Product: Gentoo Linux Reporter: Manuel Ullmann <labre>
Component: Current packagesAssignee: Craig Andrews <candrews>
Status: RESOLVED FIXED    
Severity: normal CC: jstein
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Manuel Ullmann 2020-05-10 00:30:37 UTC
For some, but not all OpenCL operations with Rocm on Navi14 I get the following error:
> : CommandLine Error: Option 'help-list' registered more than once!
> LLVM ERROR: inconsistency in registered CommandLine options
– The in-tree package media-gfx/mandelbulber-2.12-r1[opencl] will crash with the above as   soon as OpenCL is activated in its option dialog.
– Luxmark [1] will OpenCL-based, however the LuxVR test crashes with the above error
– SVP can run its GPU-OpenCL performance test just fine, but mpv[vapoursynth] (overlay) breaks with the above. First noticed it here.

I tried upgrading to llvm:10 to no avail.  I‘ve reverted completely back to 9 to eliminate the cause of linking to mixed llvm package versions, which has mentioned for the above error (see below).  Other causes mentioned are having statically and dynamically linking to llvm mixed.  I also tried an emerge -DNuv --changed-deps=y world and revdep-rebuild -ip.

Reproducible: Always

Steps to Reproduce:
With >=sys-devel/llvm:9 and >=dev-libs/rocm-opencl-runtime-3* do
1. Click on “OpenCL enable …” in Mandelbulber’s preferences dialog.

Actual Results:  
Mandelbulber crashes immediately with:
LoadLib(libhsa-ext-finalize64.so.1) failed: libhsa-ext-finalize64.so.1: cannot open shared object file: No such file or directory
: CommandLine Error: Option 'help-list' registered more than once!
LLVM ERROR: inconsistency in registered CommandLine options


Expected Results:  
Some kind of dialog.

Search results for this error:

Mixing up statical and dynamical linking.
1: https://github.com/CastXML/CastXML/issues/102#issuecomment-396061989
2: https://github.com/ziglang/zig/issues/67#issuecomment-482909287

Mixing up LLVM versions
https://stackoverflow.com/questions/54273632/llvm-linking-commandline-error-option-help-list-registered-more-than-once-l

Does this have to be fixed by the invoking program or can we do something about it?

emerge --info
Portage 2.3.99 (python 3.6.10-final-0, default/linux/amd64/17.1/hardened, gcc-9.3.0, glibc-2.30-r8, 5.6.11-gentoo x86_64)
=================================================================
System uname: Linux-5.6.11-gentoo-x86_64-Intel-R-_Core-TM-_i5-4570_CPU_@_3.20GHz-with-gentoo-2.6
KiB Mem:    16403360 total,   2789656 free
KiB Swap:    8388604 total,   8388604 free
Timestamp of repository gentoo: Wed, 06 May 2020 15:00:01 +0000
Head commit of repository gentoo: 244a4309ca123322cdb6991d1a2c26b967b4a351
sh bash 5.0_p17
ld GNU ld (Gentoo 2.33.1 p2) 2.33.1
distcc 3.3.3 x86_64-pc-linux-gnu [disabled]
app-shells/bash:          5.0_p17::gentoo
dev-java/java-config:     2.2.0-r4::gentoo
dev-lang/perl:            5.30.1::gentoo
dev-lang/python:          2.7.18::gentoo, 3.6.10-r2::gentoo, 3.7.7-r2::gentoo, 3.8.2-r2::gentoo
dev-util/cmake:           3.16.5::gentoo
dev-util/pkgconfig:       0.29.2::gentoo
sys-apps/baselayout:      2.6-r1::gentoo
sys-apps/openrc:          0.42.1::gentoo
sys-apps/sandbox:         2.13::gentoo
sys-devel/autoconf:       2.13-r1::gentoo, 2.69-r4::gentoo
sys-devel/automake:       1.16.1-r1::gentoo
sys-devel/binutils:       2.33.1-r1::gentoo
sys-devel/gcc:            9.3.0::gentoo
sys-devel/gcc-config:     2.2.1::gentoo
sys-devel/libtool:        2.4.6-r6::gentoo
sys-devel/make:           4.2.1-r4::gentoo
sys-kernel/linux-headers: 5.6::gentoo (virtual/os-headers)
sys-libs/glibc:           2.30-r8::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: rsync
    sync-uri: rsync://rsync.gentoo.org/gentoo-portage
    priority: -1000
    sync-rsync-verify-jobs: 1
    sync-rsync-verify-max-age: 24
    sync-rsync-extra-opts: 
    sync-rsync-verify-metamanifest: yes

zeuch
    location: /usr/local/portage
    masters: gentoo
    priority: 0

crossdev
    location: /usr/local/portage-crossdev
    masters: gentoo
    priority: 10

bobwya
    location: /var/lib/layman/bobwya
    sync-type: laymansync
    sync-uri: https://github.com/bobwya/miscellaneous_ebuilds.git
    masters: gentoo
    priority: 50

eclipse
    location: /var/lib/layman/eclipse
    sync-type: laymansync
    sync-uri: https://github.com/gentoo/eclipse-overlay.git
    masters: gentoo
    priority: 50

gnu-elpa
    location: /var/lib/layman/gnu-elpa
    sync-type: laymansync
    sync-uri: gs-elpa gnu-elpa
    masters: gentoo
    priority: 50

jorgicio
    location: /var/lib/layman/jorgicio
    sync-type: laymansync
    sync-uri: https://github.com/jorgicio/jorgicio-gentoo.git
    masters: gentoo
    priority: 50

laurentb
    location: /var/lib/layman/laurentb
    sync-type: laymansync
    sync-uri: git://github.com/laurentb/gentoo-overlay.git
    masters: gentoo
    priority: 50

melpa-stable
    location: /var/lib/layman/melpa-stable
    sync-type: laymansync
    sync-uri: gs-elpa melpa-stable
    masters: gnu-elpa gentoo
    priority: 50

ricerlay
    location: /var/lib/layman/ricerlay
    sync-type: laymansync
    sync-uri: https://github.com/azahi/ricerlay.git
    masters: gentoo
    priority: 50

robert7k
    location: /var/lib/layman/robert7k
    sync-type: laymansync
    sync-uri: https://github.com/robert7k/gentoo-overlay.git
    masters: gentoo
    priority: 50

steam-overlay
    location: /var/lib/layman/steam-overlay
    sync-type: laymansync
    sync-uri: git://github.com/anyc/steam-overlay.git
    masters: gentoo
    priority: 50

tastytea
    location: /var/lib/layman/tastytea
    sync-type: laymansync
    sync-uri: https://schlomp.space/tastytea/overlay.git
    masters: gentoo
    priority: 50

vapoursynth
    location: /var/lib/layman/vapoursynth
    sync-type: laymansync
    sync-uri: https://github.com/4re/vapoursynth-portage.git
    masters: gentoo
    priority: 50

Installed sets: @steam
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="@FREE"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt"
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/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-O2 -pipe"
DISTDIR="/mnt/platz/distfiles"
EMERGE_DEFAULT_OPTS=" --autounmask-unrestricted-atoms=y --autounmask-keep-masks=y --buildpkg-exclude='virtual/* sys-kernel/*-sources' --exclude='app-emulation/wine-staging:9999_p1 app-emulation/wine-staging:9999_p2' --jobs=4 --load-average=4.0 --with-bdeps=y --usepkg=y"
ENV_UNSET="DBUS_SESSION_BUS_ADDRESS DISPLAY GOBIN PERL5LIB PERL5OPT PERLPREFIX PERL_CORE PERL_MB_OPT PERL_MM_OPT XAUTHORITY XDG_CACHE_HOME XDG_CONFIG_HOME XDG_DATA_HOME XDG_RUNTIME_DIR"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs buildpkg config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news parallel-fetch parallel-install pid-sandbox preserve-libs protect-owned qa-unresolved-soname-deps sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="ftp://ftp.fau.de/pub/mirrors/gentoo"
LANG="de_DE.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="de en_US en"
MAKEOPTS="-j4 -l4.0"
PKGDIR="/mnt/platz/pkgdir/"
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="/var/tmp"
USE="X a52 aac acl acpi alsa amd64 audiofile avi berkdb bzip2 cairo cdda cddb cdparanoia cdr cracklib crypt css cue cups cxx dbus djvu dri dv dvd dvdr dvdread elogind emacs encode exif faac ffmpeg flac fontconfig foomaticdb ftp gd gdbm gif glamor gpm gstreamer gtk gtk3 hardened iconv id3tag imagemagick ipv6 irc jpeg jpeg2k ladspa libass libnotify libtirpc libwww lm_sensors logrotate lzo mad matroska mbox mng modules mp3 mpeg mtp multilib ncurses networkmanager nfs nls nptl nsplugin ogg oggvorbis openal openexr opengl openmp oscar pam pcre pdf pie png policykit portaudio qml qt5 quicktime raw readline samba sasl sdl seccomp session smp spell split-usr ssl ssp svg tcpd theora threads tiff truetype udev udisks unicode usb v4l v4l2 vaapi vcd vdpau vhosts vorbis vulkan wavpack wayland wimax wmf x264 x265 xattr xml xpm xtpax xv xvid zlib" ABI_X86="64" ADA_TARGET="gnat_2018" 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="karbon sheets words" 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 greis isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" GRUB_PLATFORMS="pc efi-64" INPUT_DEVICES="libinput" KERNEL="linux" L10N="de en_US en" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LLVM_TARGETS="X86" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php7-2" POSTGRES_TARGETS="postgres10 postgres11" PYTHON_SINGLE_TARGET="python3_6" PYTHON_TARGETS="python2_7 python3_6" RUBY_TARGETS="ruby24 ruby25" USERLAND="GNU" VIDEO_CARDS="intel i965 iris amdgpu radeonsi radeon virgl" 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, INSTALL_MASK, LC_ALL, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Manuel Ullmann 2020-05-10 00:32:38 UTC
Forgot the Luxmark source link:
https://github.com/LuxCoreRender/LuxMark
Comment 2 Benda Xu gentoo-dev 2021-01-20 05:28:15 UTC
Is this bug still there?
Comment 3 Manuel Ullmann 2021-01-20 18:11:51 UTC
Thanks for the reminder. Back when I reported this, I modified amdgpu-pro-opencl to include support for non-legacy cards and it worked with it. However, because that was just the solution for a temporary problem to be fixed upstream and the ebuild would have had to be polished and maintained, I did not commit it to the tree. Besides, once it worked, I forgot about this report and also did not use OpenCL lately.

I just retested OpenCL with RocM 4.x and it worked.