Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 754339 - dev-libs/rocm-comgr-3.8.0 fails to compile
Summary: dev-libs/rocm-comgr-3.8.0 fails to compile
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Craig Andrews
URL:
Whiteboard:
Keywords:
: 754771 (view as bug list)
Depends on:
Blocks:
 
Reported: 2020-11-14 08:25 UTC by Bob Johnson
Modified: 2020-11-18 17:45 UTC (History)
4 users (show)

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


Attachments
Build log (dev-libs:rocm-comgr-3.8.0:20201114-080708.log,38.62 KB, text/x-log)
2020-11-14 08:26 UTC, Bob Johnson
Details
rocm-comgr-llvm-11.patch (rocm-comgr-llvm-11.patch,4.37 KB, patch)
2020-11-14 16:55 UTC, Ognjan Kirilov Iordanov
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Bob Johnson 2020-11-14 08:25:13 UTC
An llvm issue?

/var/tmp/portage/dev-libs/rocm-comgr-3.8.0/work/ROCm-CompilerSupport-rocm-3.8.0/lib/comgr/src/comgr-objdump.cpp:1304:44: error: no matching function for call to ‘error(llvm::Error)’
 1304 |       error(ExportEntry.getSymbolName(Name));
      |                                            ^
/var/tmp/portage/dev-libs/rocm-comgr-3.8.0/work/ROCm-CompilerSupport-rocm-3.8.0/lib/comgr/src/comgr-objdump.cpp:326:13: note: candidate: ‘void error(std::error_code)’
  326 | static void error(std::error_code EC) {
      |             ^~~~~
/var/tmp/portage/dev-libs/rocm-comgr-3.8.0/work/ROCm-CompilerSupport-rocm-3.8.0/lib/comgr/src/comgr-objdump.cpp:326:35: note:   no known conversion for argument 1 from ‘llvm::Error’ to ‘std::error_code’
  326 | static void error(std::error_code EC) {
      |                   ~~~~~~~~~~~~~~~~^~
... etc etc


Reproducible: Always




# emerge --info dev-libs/rocm-comgr
Portage 3.0.8 (python 3.7.9-final-0, default/linux/amd64/17.1/desktop/plasma, gcc-9.3.0, glibc-2.32-r2, 5.4.72-gentoo x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-5.4.72-gentoo-x86_64-Intel-R-_Core-TM-_i5-3570_CPU_@_3.40GHz-with-gentoo-2.7
KiB Mem:    32928792 total,  17554004 free
KiB Swap:          0 total,         0 free
Timestamp of repository gentoo: Sat, 14 Nov 2020 06:45:01 +0000
Head commit of repository gentoo: b821c12c36e41f9ff251339550ac0528d1b4eec3
Timestamp of repository stefantalpalaru: Thu, 12 Nov 2020 21:45:01 +0000
Head commit of repository stefantalpalaru: 6f3a6eaad33d91b00eb9585d2d82598b20d178ce

sh bash 5.0_p18
ld GNU ld (Gentoo 2.34 p6) 2.34.0
app-shells/bash:          5.0_p18::gentoo
dev-java/java-config:     2.3.1::gentoo
dev-lang/perl:            5.30.3::gentoo
dev-lang/python:          2.7.18-r4::gentoo, 3.7.9::gentoo, 3.8.5::gentoo, 3.9.0::gentoo
dev-util/cmake:           3.17.4-r1::gentoo
dev-util/pkgconfig:       0.29.2::gentoo
sys-apps/baselayout:      2.7::gentoo
sys-apps/openrc:          0.42.1::gentoo
sys-apps/sandbox:         2.20::gentoo
sys-devel/autoconf:       2.13-r1::gentoo, 2.69-r5::gentoo
sys-devel/automake:       1.16.1-r1::gentoo
sys-devel/binutils:       2.34-r2::gentoo
sys-devel/gcc:            9.3.0-r1::gentoo
sys-devel/gcc-config:     2.3.2::gentoo
sys-devel/libtool:        2.4.6-r6::gentoo
sys-devel/make:           4.2.1-r4::gentoo
sys-kernel/linux-headers: 5.4-r1::gentoo (virtual/os-headers)
sys-libs/glibc:           2.32-r2::gentoo
Repositories:

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

local
    location: /usr/local/portage
    masters: gentoo

stefantalpalaru
    location: /var/db/repos/stefantalpalaru
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/stefantalpalaru.git
    masters: gentoo

ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="@FREE vmware"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/lib64/libreoffice/program/sofficerc /usr/share/config /usr/share/easy-rsa /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/php/apache2-php7.4/ext-active/ /etc/php/cgi-php7.4/ext-active/ /etc/php/cli-php7.4/ext-active/ /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 /etc/vmware-installer"
CXXFLAGS="-march=native -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
ENV_UNSET="CARGO_HOME DBUS_SESSION_BUS_ADDRESS DISPLAY GOBIN GOPATH 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="-march=native -O2 -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="-march=native -O2 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="en en_US"
MAKEOPTS="-j5"
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 a52 aac acl acpi activities alsa amd64 apache2 berkdb bluetooth branding bzip2 cairo cdda cdr cli colord crypt cups curl dbus declarative doc dri dts dvd dvdr elogind emboss encode examples exif flac fontconfig fortran gcj gd gdbm gif gtk gtk-doc gui handbook iconv icu ipv6 jack java jbig jpeg kde kipi kpathsea kwallet lcms libglvnd libnotify libtirpc lzma mad mbox mng mp3 mp4 mpeg multilib ncurses nls nptl odbc ogg openexr opengl openmp pam pango pcre pdf phonon plasma png policykit postgres ppds qml qt5 readline sdl seccomp semantic-desktop source spell split-usr ssl startup-notification svg t1lib tcpd threads tiff truetype udev udisks unicode upower usb vim-syntax vorbis webp widgets wxwidgets x264 xattr xcb xinerama xml xpm xv xvid zlib" ABI_X86="64 32" 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="actions alias auth_basic auth_digest authn_anon authn_core authn_dbd authn_dbm authn_default authn_file authz_core authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgid dav dav_fs dav_lock dbd deflate dir disk_cache env expires ext_filter file_cache filter headers http2 ident imagemap include info lbmethod_byrequests log_config log_forensic logio mem_cache mime mime_magic negotiation proxy proxy_ajp proxy_balancer proxy_connect proxy_http proxy_http2 rewrite setenvif slotmem_shm socache_shmcb speling status unique_id unixd userdir usertrack vhost_alias" APACHE2_MPMS="worker" CALLIGRA_FEATURES="karbon sheets words" CAMERAS="canon" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="aes avx 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" INPUT_DEVICES="libinput vmmouse wacom joystick" KERNEL="linux" L10N="en en-US" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="nlpsolver presenter-minimizer wiki-publisher" LUA_SINGLE_TARGET="lua5-1" LUA_TARGETS="lua5-1" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php7-4" POSTGRES_TARGETS="postgres10 postgres11" PYTHON_SINGLE_TARGET="python3_7" PYTHON_TARGETS="python2_7 python3_7" RUBY_TARGETS="ruby25 ruby26" SANE_BACKENDS="epson2" USERLAND="GNU" VIDEO_CARDS="amdgpu fbdev intel radeonsi vesa vmware" XFCE_PLUGINS="clock trash" 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, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

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

dev-libs/rocm-comgr-3.8.0::gentoo was built with the following:
USE="" ABI_X86="(64)"
Comment 1 Bob Johnson 2020-11-14 08:26:43 UTC
Created attachment 671317 [details]
Build log
Comment 2 Ognjan Kirilov Iordanov 2020-11-14 09:11:58 UTC
I have the same issue:

/var/tmp/portage/dev-libs/rocm-comgr-3.8.0/work/ROCm-CompilerSupport-rocm-3.8.0/lib/comgr/src/comgr-symbol.cpp: In member function ‘COMGR::SymbolContext* COMGR::SymbolHelper::createBinary(llvm::StringRef, const char*, amd_comgr_data_kind_t)’:
/var/tmp/portage/dev-libs/rocm-comgr-3.8.0/work/ROCm-CompilerSupport-rocm-3.8.0/lib/comgr/src/comgr-symbol.cpp:171:32: error: cannot convert ‘llvm::Expected<long unsigned int>’ to ‘uint64_t’ {aka ‘long unsigned int’} in assignment
  171 |     Symp->Value = Fsym.getValue();
      |                   ~~~~~~~~~~~~~^~
      |                                |
      |                                llvm::Expected<long unsigned int>
/var/tmp/portage/dev-libs/rocm-comgr-3.8.0/work/ROCm-CompilerSupport-rocm-3.8.0/lib/comgr/src/comgr-symbol.cpp:174:54: error: cannot convert ‘llvm::Expected<unsigned int>’ to ‘uint64_t’ {aka ‘long unsigned int’} in initialization
Comment 3 Ognjan Kirilov Iordanov 2020-11-14 16:55:35 UTC
Created attachment 671389 [details, diff]
rocm-comgr-llvm-11.patch

It compiles for me with this patch.
Comment 4 Larry the Git Cow gentoo-dev 2020-11-14 18:23:56 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1ec153c42122814ff51e6440e14699ad0acf3c1d

commit 1ec153c42122814ff51e6440e14699ad0acf3c1d
Author:     Wilfried Holzke <gentoo@holzke.net>
AuthorDate: 2020-11-13 21:26:35 +0000
Commit:     Craig Andrews <candrews@gentoo.org>
CommitDate: 2020-11-14 18:23:51 +0000

    dev-libs/rocm-comgr: Version bump to 3.9.0
    
    Signed-off-by: Wilfried Holzke <gentoo@holzke.net>
    Package-Manager: Portage-3.0.8, Repoman-3.0.2
    Closes: https://bugs.gentoo.org/show_bug.cgi?id=754339
    Closes: https://github.com/gentoo/gentoo/pull/18251
    Signed-off-by: Craig Andrews <candrews@gentoo.org>

 dev-libs/rocm-comgr/Manifest                |  1 +
 dev-libs/rocm-comgr/rocm-comgr-3.9.0.ebuild | 42 +++++++++++++++++++++++++++++
 2 files changed, 43 insertions(+)
Comment 5 Craig Andrews gentoo-dev 2020-11-18 17:45:06 UTC
*** Bug 754771 has been marked as a duplicate of this bug. ***