Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 711006 - dev-libs/rocm-comgr-3.0.0 FAILED: CMakeFiles/amd_comgr.dir/src/comgr-disassembly.cpp.o
Summary: dev-libs/rocm-comgr-3.0.0 FAILED: CMakeFiles/amd_comgr.dir/src/comgr-disassem...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Craig Andrews
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-02-28 06:32 UTC by Sleepy Mario
Modified: 2020-03-02 00:39 UTC (History)
4 users (show)

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


Attachments
build.log (build.log,34.12 KB, text/x-log)
2020-03-01 07:24 UTC, Dennis Schridde
Details
rocm-30x-to-31x.patch (rocm-30x-to-rocm-31x.patch,9.82 KB, patch)
2020-03-01 22:49 UTC, Greg Turner
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Sleepy Mario 2020-02-28 06:32:05 UTC
Compiling just fails, error goes beyond me. This is a @preserved-rebuild from a recent update. 

emerge --info: http://dpaste.com/2GMGEWN
emerge -pqv '=dev-libs/rocm-comgr-3.0.0::gentoo': http://dpaste.com/0D8MRZR
build log: http://dpaste.com/1Y8AJV9
Comment 1 Dennis Schridde 2020-03-01 07:24:05 UTC
Created attachment 616676 [details]
build.log

/tmp/portage/dev-libs/rocm-comgr-3.0.0/work/ROCm-CompilerSupport-roc-3.0.0/lib/comgr/src/comgr-objdump.cpp: In member function ‘virtual void {anonymous}::PrettyPrinter::printInst(llvm::MCInstPrinter&, const llvm::MCInst*, llvm::ArrayRef<unsigned char>, llvm::object::Sectio
nedAddress, llvm::raw_ostream&, llvm::StringRef, const llvm::MCSubtargetInfo&, {anonymous}::SourcePrinter*)’:                                                                                                                                                                    
/tmp/portage/dev-libs/rocm-comgr-3.0.0/work/ROCm-CompilerSupport-roc-3.0.0/lib/comgr/src/comgr-objdump.cpp:563:35: error: no matching function for call to ‘llvm::MCInstPrinter::printInst(const llvm::MCInst*&, llvm::raw_ostream&, const char [1], const llvm::MCSubtargetInfo&
)’                                                                                                                                                                                                                                                                               
  563 |       IP.printInst(MI, OS, "", STI);                                                                                                                                                                                                                                     
      |                                   ^                                                                                                                                                                                                                                      
In file included from /tmp/portage/dev-libs/rocm-comgr-3.0.0/work/ROCm-CompilerSupport-roc-3.0.0/lib/comgr/src/comgr-objdump.cpp:54:                                                                                                                                             
/usr/lib/llvm/roc/include/llvm/MC/MCInstPrinter.h:82:16: note: candidate: ‘virtual void llvm::MCInstPrinter::printInst(const llvm::MCInst*, uint64_t, llvm::StringRef, const llvm::MCSubtargetInfo&, llvm::raw_ostream&)’                                                        
   82 |   virtual void printInst(const MCInst *MI, uint64_t Address, StringRef Annot,                                                   
      |                ^~~~~~~~~                                                                                                        
/usr/lib/llvm/roc/include/llvm/MC/MCInstPrinter.h:82:16: note:   candidate expects 5 arguments, 4 provided


Portage 2.3.89 (python 3.6.9-final-0, default/linux/amd64/17.1/desktop/plasma/systemd, gcc-9.2.0, glibc-2.30-r4, 5.5.6 x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-5.5.6-x86_64-AMD_Ryzen_5_2400G_with_Radeon_Vega_Graphics-with-gentoo-2.7
KiB Mem:    14128296 total,   8622896 free
KiB Swap:          0 total,         0 free
Timestamp of repository gentoo: Sat, 29 Feb 2020 23:15:01 +0000
Head commit of repository gentoo: fe3e64db0c2ad140ead9fe8f1c4781fed1c7adbc
Head commit of repository flatpak-overlay: ea16fa7c90c16c8720e4a388e7ddcdd70ad30221

Head commit of repository local: b3e7763b81fb580d895ad721c7e8eee28e3b0697

sh bash 5.0_p16
ld GNU gold (Gentoo 2.34 p1 2.34.0) 1.16
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-r1::gentoo, 3.6.10::gentoo, 3.7.6::gentoo, 3.8.2::gentoo, 3.9.0_alpha4::gentoo
dev-util/ccache:          3.7.7-r1::gentoo
dev-util/cmake:           3.16.4::gentoo
dev-util/pkgconfig:       0.29.2::gentoo
sys-apps/baselayout:      2.7::gentoo
sys-apps/sandbox:         2.18::gentoo
sys-devel/autoconf:       2.13-r1::gentoo, 2.69-r5::gentoo
sys-devel/automake:       1.13.4-r2::gentoo, 1.16.1-r2::gentoo
sys-devel/binutils:       2.34::gentoo
sys-devel/gcc:            9.2.0-r4::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-r4::gentoo
Repositories:

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

flatpak-overlay
    location: /var/db/repos/flatpak-overlay
    sync-type: git
    sync-uri: https://github.com/fosero/flatpak-overlay.git
    masters: gentoo

local
    location: /var/cache/portage/local
    sync-type: git
    sync-uri: https://github.com/devurandom/gentoo-overlay.git
    masters: gentoo
    priority: 1000

ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="@FREE"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-pipe -O2 -march=znver1"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /etc/grs/systems.conf /usr/lib64/libreoffice/program/sofficerc /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/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="-pipe -O2 -march=znver1"
DISTDIR="/var/cache/portage/distfiles"
EMERGE_DEFAULT_OPTS="--nospinner"
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 buildsyspkg cgroup compressdebug config-protect-if-modified distlocks ebuild-locks fakeroot fixlafiles ipc-sandbox merge-sync mount-sandbox 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="http://ftp.spline.inf.fu-berlin.de/mirrors/gentoo/ http://ftp-stud.hs-esslingen.de/pub/Mirrors/gentoo/ http://distfiles.gentoo.org"
LANG="en_US.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,--hash-style=gnu"
MAKEOPTS="-j6 -l4"
PKGDIR="/var/cache/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="/tmp"
USE="7z 7zip X a52 aac aacplus aacs acl acpi activities aio alsa amd64 appindicator appstream archive audit avahi ayatana bash-completion bdplus berkdb blake2 bluetooth bluray branding brotli bs2b btrfs bzip2 cairo caps cdda cddb cdio cdr celt chromaprint cjk clang cli clipboard color-management colord conntrack crypt cups cxx d3d9 dav1d dbus declarative device-mapper dirac djvu dri drm dts dvb dvd dvdr ed25519 editorconfig egl elf emboss encode epub evdev exif faudio fax fbcon ffmpeg fftw filecaps firefox firewalld fish-completion fits flac fontconfig fontforge fortran fribidi gamepad gbm gdal gdbm geoclue geolocation gif git gmp gnupg google googledrive gpg gps graphicsmagick gstreamer gtk gtk3 gzip harfbuzz hdf5 heif http2 ibus iconv icu idn imlib inotify introspection ipv6 jemalloc jpeg jpeg2k json kde kipi kms kwallet ladspa latex lcms ldap libatomic libglvnd libidn2 libinput libnotify libproxy libsecret libsoxr libtirpc libvirt lm-sensors lrz lv2 lvm lz4 lzma lzo mad mariadb markdown mbim mercurial mjpeg mng mobi modemmanager modplug mp3 mp4 mpeg mplayer mpris mtp multilib mysql ncurses netlink networkmanager nls nptl office ofx ogg openal opencl opencv openexr opengl openh264 openmax openmp opus pam pango pcap pch pcre pcre2 pdf pgo phonon pixman pkcs11 pkcs7 plasma pm-utils png policykit postscript ppds prison pulseaudio pwquality python qml qrcode qt5 raw rdp readline redfish samba sasl scanner schroedinger screencast sctp sdl sdl2 seccomp semantic-desktop share smartcard snappy sparse speech speex spell ssl startup-notification steamruntime stemmer svg systemd systemtap tbb tcpd teamd telepathy tga theora threads thunderbolt tiff timezone tmux truetype tslib udev udisks uinput unicode unwind upnp upnp-av upower usb utempter v4l v4l2 vaapi vdpau vkd3d vorbis vpx vulkan wasm wavpack wayland webchannel webengine webkit webp widgets wmf wps x264 x265 xattr xcb xcomposite xinerama xkb xml xmp xrandr xscreensaver xv xvid xwayland xxhash xz yaml zeroconf zeromq zimg zlib zstd" ABI_X86="64" ADA_TARGET="gnat_2018" ALSA_CARDS="hda-intel" 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" CAMERAS="ptp2" 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" ENLIGHTENMENT_MODULES="*" 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="efi-64" INPUT_DEVICES="joystick libinput" KERNEL="linux" L10N="de de-DE en en-GB ar fa tr ja ko zh zh-CN zh-TW" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="nlpsolver scripting-javascript wiki-publisher" LIRC_DEVICES="devinput" LLVM_TARGETS="AMDGPU BPF RISCV WebAssembly" LUA_TARGET="lua5-2" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php7-2" POSTGRES_TARGETS="postgres10 postgres11" PYTHON_SINGLE_TARGET="python3_6" PYTHON_TARGETS="python2_7 python3_6 pypy pypy3" QEMU_SOFTMMU_TARGETS="riscv32 riscv64 x86_64" QEMU_USER_TARGETS="riscv32 riscv64" RUBY_TARGETS="ruby24 ruby25" USERLAND="GNU" VIDEO_CARDS="amdgpu 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, LINGUAS, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

=================================================================
                        Package Settings
=================================================================

sys-devel/llvm-8.0.1::gentoo was built with the following:
USE="exegesis gold libffi ncurses xml -debug -doc -libedit -test -xar" ABI_X86="32 (64) (-x32)" LLVM_TARGETS="AMDGPU BPF WebAssembly (X86) -AArch64 -ARM -Hexagon -Lanai -MSP430 -Mips -NVPTX -PowerPC -Sparc -SystemZ -XCore"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs buildsyspkg cgroup compressdebug config-protect-if-modified distlocks ebuild-locks fakeroot fixlafiles ipc-sandbox merge-sync mount-sandbox multilib-strict network-sandbox news parallel-fetch parallel-install pid-sandbox preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"


sys-devel/llvm-9.0.1::gentoo was built with the following:
USE="exegesis gold libffi ncurses xml z3 -debug -doc -libedit -test -xar" ABI_X86="32 (64) (-x32)" LLVM_TARGETS="AMDGPU BPF RISCV WebAssembly (X86) -AArch64 -ARM -Hexagon -Lanai -MSP430 -Mips -NVPTX -PowerPC -Sparc -SystemZ -XCore"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs buildsyspkg cgroup compressdebug config-protect-if-modified distlocks ebuild-locks fakeroot fixlafiles ipc-sandbox merge-sync mount-sandbox multilib-strict network-sandbox news parallel-fetch parallel-install pid-sandbox preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"


sys-devel/llvm-roc-3.1.0::gentoo was built with the following:
USE="-debug" ABI_X86="(64)"
Comment 2 Dennis Schridde 2020-03-01 07:25:37 UTC
(In reply to Sleepy Mario from comment #0)
> Compiling just fails, error goes beyond me. This is a @preserved-rebuild
> from a recent update. 
> 
> emerge --info: http://dpaste.com/2GMGEWN
> emerge -pqv '=dev-libs/rocm-comgr-3.0.0::gentoo': http://dpaste.com/0D8MRZR
> build log: http://dpaste.com/1Y8AJV9

Please do not post links to files, since these files will vanish sooner or later.  Please attach the files instead.
Comment 3 Dennis Schridde 2020-03-01 08:27:07 UTC
Downgrading to sys-devel/llvm-roc-3.0.0 makes dev-libs/rocm-comgr-3.0.0 build.
Comment 4 Dennis Schridde 2020-03-01 16:02:27 UTC
Thanks, Jonas!  I suggest for the bug summary: dev-libs/rocm-comgr-3.0.0 with sys-devel/llvm-roc-3.1.0 - lib/comgr/src/comgr-objdump.cpp:563:35: error: no matching function for call to ‘llvm::MCInstPrinter::printInst(const llvm::MCInst*&, llvm::raw_ostream&, const char [1], const llvm::MCSubtargetInfo&)’
Comment 5 Greg Turner 2020-03-01 22:49:00 UTC
Created attachment 616758 [details, diff]
rocm-30x-to-31x.patch

Attached patch, generated by asking github for the diff between the 3.0.x and 3.1.x branches, adjusting for portage's ebuild working directory, and dropping all hunks pertaining to amd_comgr.h.in, works around build failure although runtime behavior is untested.  This suggests a revbump of some kind is called for.
Comment 6 Larry the Git Cow gentoo-dev 2020-03-02 00:39:15 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2c941595ab9c0a41d1b2e0ebde0fd3cdb731a82f

commit 2c941595ab9c0a41d1b2e0ebde0fd3cdb731a82f
Author:     Craig Andrews <candrews@gentoo.org>
AuthorDate: 2020-03-02 00:34:07 +0000
Commit:     Craig Andrews <candrews@gentoo.org>
CommitDate: 2020-03-02 00:39:07 +0000

    dev-libs/rocm-comgr: 3.1.0 version bump
    
    Closes: https://bugs.gentoo.org/711006
    Package-Manager: Portage-2.3.90, Repoman-2.3.20
    Signed-off-by: Craig Andrews <candrews@gentoo.org>

 dev-libs/rocm-comgr/Manifest                       |  1 +
 .../files/rocm-comgr-3.1.0-dependencies.patch      | 52 ++++++++++++++++++++++
 dev-libs/rocm-comgr/rocm-comgr-3.1.0.ebuild        | 41 +++++++++++++++++
 3 files changed, 94 insertions(+)