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

Bug 712592

Summary: dev-libs/rocm-device-libs fails to compile
Product: Gentoo Linux Reporter: Stefan de Konink <stefan>
Component: Current packagesAssignee: Craig Andrews <candrews>
Status: RESOLVED FIXED    
Severity: normal CC: jstein
Priority: Normal Keywords: PullRequest
Version: unspecified   
Hardware: AMD64   
OS: Linux   
See Also: https://github.com/gentoo/gentoo/pull/28706
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 712910    
Attachments: build.log

Description Stefan de Konink 2020-03-14 23:27:58 UTC
There is something fishy going on using LLVM which I have laid out #712514 and earlier #711798. At this specific case it is about llvm-10. 

FAILED: oclc/correctly_rounded_sqrt_on.bc 
cd /var/tmp/portage/dev-libs/rocm-device-libs-3.1.0/work/rocm-device-libs-3.1.0_build/oclc && /usr/lib/llvm/roc/bin/clang -I/var/tmp/portage/dev-libs/rocm-device-libs-3.1.0/work/ROCm-Device-Libs-roc-ocl-3.1.0/oclc/inc -fcolor-diagnostics -Werror -Wno-error=atomic-alignment -x cl -Xclang -cl-std=CL2.0 -target amdgcn-amd-amdhsa -fvisibility=protected -fomit-frame-pointer -Xclang -finclude-default-header -emit-llvm -Xclang -mlink-builtin-bitcode -Xclang /var/tmp/portage/dev-libs/rocm-device-libs-3.1.0/work/rocm-device-libs-3.1.0_build/irif/irif.amdgcn.bc -c /var/tmp/portage/dev-libs/rocm-device-libs-3.1.0/work/ROCm-Device-Libs-roc-ocl-3.1.0/oclc/src/correctly_rounded_sqrt_on.cl -o /var/tmp/portage/dev-libs/rocm-device-libs-3.1.0/work/rocm-device-libs-3.1.0_build/oclc/correctly_rounded_sqrt_on.bc
Two passes with the same argument (-r600mergeclause) attempted to be registered!
BISECT: NOT running pass (Stack dump:
0.	Program arguments: /usr/lib/llvm/roc/bin/clang -I/var/tmp/portage/dev-libs/rocm-device-libs-3.1.0/work/ROCm-Device-Libs-roc-ocl-3.1.0/oclc/inc -fcolor-diagnostics -Werror -Wno-error=atomic-alignment -x cl -Xclang -cl-std=CL2.0 -target amdgcn-amd-amdhsa -fvisibility=protected -fomit-frame-pointer -Xclang -finclude-default-header -emit-llvm -Xclang -mlink-builtin-bitcode -Xclang /var/tmp/portage/dev-libs/rocm-device-libs-3.1.0/work/rocm-device-libs-3.1.0_build/irif/irif.amdgcn.bc -c /var/tmp/portage/dev-libs/rocm-device-libs-3.1.0/work/ROCm-Device-Libs-roc-ocl-3.1.0/oclc/src/correctly_rounded_sqrt_on.cl -o /var/tmp/portage/dev-libs/rocm-device-libs-3.1.0/work/rocm-device-libs-3.1.0_build/oclc/correctly_rounded_sqrt_on.bc 
ninja: build stopped: subcommand failed.

Reproducible: Always




Portage 2.3.93 (python 3.6.10-final-0, default/linux/amd64/17.1/no-multilib, gcc-9.3.0, glibc-2.30-r5, 5.5.8-gentoo x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-5.5.8-gentoo-x86_64-AMD_Ryzen_5_2500U_with_Radeon_Vega_Mobile_Gfx-with-gentoo-2.7
KiB Mem:    16048468 total,   4069668 free
KiB Swap:   33554428 total,  33371936 free
Timestamp of repository gentoo: Sat, 14 Mar 2020 14:30:01 +0000
Head commit of repository gentoo: b44af3bc9c271a6906d9c868652f32d2d079acf3
sh bash 5.0_p16
ld GNU ld (Gentoo 2.34 p1) 2.34.0
ccache version 3.7.7 [disabled]
app-shells/bash:          5.0_p16::gentoo
dev-java/java-config:     2.2.0-r4::gentoo
dev-lang/perl:            5.30.1::gentoo
dev-lang/python:          2.7.17-r100::lto-overlay, 3.6.10-r1::lto-overlay, 3.7.7::gentoo, 3.8.2::gentoo
dev-util/ccache:          3.7.7-r2::gentoo
dev-util/cmake:           3.16.5::gentoo
sys-apps/baselayout:      2.7::gentoo
sys-apps/openrc:          0.41.2::gentoo
sys-apps/sandbox:         2.18::gentoo
sys-devel/autoconf:       2.13-r1::gentoo, 2.69-r5::gentoo
sys-devel/automake:       1.16.1-r2::gentoo
sys-devel/binutils:       2.32-r1::gentoo, 2.33.1-r1::gentoo, 2.34::gentoo
sys-devel/gcc:            9.2.0-r4::gentoo, 9.3.0::gentoo
sys-devel/gcc-config:     2.2.1::gentoo
sys-devel/libtool:        2.4.6-r6::gentoo
sys-devel/make:           4.3::gentoo
sys-kernel/linux-headers: 5.5::gentoo (virtual/os-headers)
sys-libs/glibc:           2.30-r5::gentoo
Repositories:

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

booboo
    location: /var/lib/layman/booboo
    masters: gentoo
    priority: 50

dotnet
    location: /var/lib/layman/dotnet
    masters: gentoo
    priority: 50

imaging
    location: /var/lib/layman/imaging
    masters: gentoo
    priority: 50

lto-overlay
    location: /var/lib/layman/lto-overlay
    masters: gentoo mv
    priority: 50

mv
    location: /var/lib/layman/mv
    masters: gentoo
    priority: 50

FireBurn
    location: /var/lib/layman/FireBurn
    masters: gentoo
    priority: 60

ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -march=znver1 -O3 -fgraphite-identity -floop-nest-optimize -fdevirtualize-at-ltrans -fipa-pta -fno-semantic-interposition -flto=7 -fuse-linker-plugin -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt /usr/share/maven-bin-3.6/conf"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O2 -march=znver1 -O3 -fgraphite-identity -floop-nest-optimize -fdevirtualize-at-ltrans -fipa-pta -fno-semantic-interposition -flto=7 -fuse-linker-plugin -pipe"
DISTDIR="/var/cache/distfiles"
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 -march=znver1 -O3 -fgraphite-identity -floop-nest-optimize -fdevirtualize-at-ltrans -fipa-pta -fno-semantic-interposition -flto=7 -fuse-linker-plugin -pipe"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news parallel-fetch 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 -march=znver1 -O3 -fgraphite-identity -floop-nest-optimize -fdevirtualize-at-ltrans -fipa-pta -fno-semantic-interposition -flto=7 -fuse-linker-plugin -pipe"
GENTOO_MIRRORS="http://mirror.leaseweb.com/gentoo/ http://ftp.snt.utwente.nl/pub/os/linux/gentoo"
LANG="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j7"
PKGDIR="/var/cache/binpkgs"
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 acl adwaita-icon-theme alsa amd64 berkdb bluetooth brotli bzip2 cairo caps clang cli codec2 cpudetection crypt curl cxx dav1d dbus designer dri dri3 egl exif ffmpeg fortran gdbm geos gles2 gold graphite gtk gtk3 http2 iconv icu ipv6 jpeg jpeg2k libnotify libtirpc lm-sensors lto lzma minizip ncurses nptl ogg opencl opengl openmp optimization opus pam pcre pdf pgo png policykit qml qt5 readline rubberband seccomp speex split-usr sqlite srt ssl startup-notification strong-optimization svg synaptics system-jsoncpp system-libvpx systemd sysv-utils tcpd theora tiff truetype udev udisks unicode upower vaapi vdpau vim-syntax vorbis vpx vulkan webp webstart x264 x265 xattr xinerama zeromq zlib" ABI_X86="64" ADA_TARGET="gnat_2018" 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 f16c fma3 mmx mmxext pclmul popcnt sha sse sse2 sse3 sse4_1 sse4_2 sse4a 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" INPUT_DEVICES="libinput keyboard mouse" KERNEL="linux" L10N="en nl" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LLVM_TARGETS="AMDGPU BPF" 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 ruby26 ruby27" USERLAND="GNU" VIDEO_CARDS="amdgpu radeonsi radeon" 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, LINGUAS, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Stefan de Konink 2020-03-14 23:30:38 UTC
Created attachment 619280 [details]
build.log
Comment 2 Larry the Git Cow gentoo-dev 2022-12-19 14:00:39 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=87d04aa06d775fc3c963d94743aecdc1ce69d9fe

commit 87d04aa06d775fc3c963d94743aecdc1ce69d9fe
Author:     Andreas Sturmlechner <asturm@gentoo.org>
AuthorDate: 2022-12-18 19:22:31 +0000
Commit:     Andreas Sturmlechner <asturm@gentoo.org>
CommitDate: 2022-12-19 14:00:00 +0000

    dev-libs/rocm-device-libs: drop versions 3* and 4*
    
    Closes: https://bugs.gentoo.org/712592
    Closes: https://bugs.gentoo.org/754330
    Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>

 dev-libs/rocm-device-libs/Manifest                 |  9 -----
 .../rocm-device-libs-3.10.0.ebuild                 | 38 --------------------
 .../rocm-device-libs/rocm-device-libs-3.7.0.ebuild | 32 -----------------
 .../rocm-device-libs/rocm-device-libs-3.8.0.ebuild | 32 -----------------
 .../rocm-device-libs-3.9.0-r1.ebuild               | 38 --------------------
 .../rocm-device-libs/rocm-device-libs-4.0.0.ebuild | 38 --------------------
 .../rocm-device-libs/rocm-device-libs-4.1.0.ebuild | 38 --------------------
 .../rocm-device-libs/rocm-device-libs-4.2.0.ebuild | 38 --------------------
 .../rocm-device-libs/rocm-device-libs-4.3.0.ebuild | 38 --------------------
 .../rocm-device-libs/rocm-device-libs-4.5.2.ebuild | 40 ----------------------
 10 files changed, 341 deletions(-)