Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Issue]: llvm-project-rocm-6.2.[12]/amd/comgr/src/comgr-isa-metadata.def:92:60: error: ‘EF_AMDGPU_MACH_AMDGCN_GFX1152’ is not a member of ‘llvm::ELF’ #166

Open
mattmcadoo opened this issue Sep 25, 2024 · 6 comments
Assignees

Comments

@mattmcadoo
Copy link

Problem Description

FAILED: CMakeFiles/amd_comgr.dir/src/comgr-metadata.cpp.o
/usr/bin/x86_64-pc-linux-gnu-g++ -DAMD_COMGR_BUILD -DAMD_COMGR_EXPORT -D_GNU_SOURCE -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -D__STDC_CONSTANT_MACROS -D__STDC_LIMIT_MACROS -I/usr/lib/llvm/18/include -I/var/tmp/portage/dev-libs/rocm-comgr-6.2.1/work/llvm-project-rocm-6.2.1/amd/comgr/src -I/var/tmp/portage/dev-libs/rocm-comgr-6.2.1/work/llvm-project-rocm-6.2.1/amd/comgr_build/include -march=native -O2 -pipe -std=c++17 -fPIC -DAMD_COMGR_GIT_COMMIT=not-available -DAMD_COMGR_GIT_BRANCH=not-available -fno-rtti -Wall -Wno-attributes -fms-extensions -fvisibility=hidden -fno-strict-aliasing -MD -MT CMakeFiles/amd_comgr.dir/src/comgr-metadata.cpp.o -MF CMakeFiles/amd_comgr.dir/src/comgr-metadata.cpp.o.d -o CMakeFiles/amd_comgr.dir/src/comgr-metadata.cpp.o -c /var/tmp/portage/dev-libs/rocm-comgr-6.2.1/work/llvm-project-rocm-6.2.1/amd/comgr/src/comgr-metadata.cpp
/var/tmp/portage/dev-libs/rocm-comgr-6.2.1/work/llvm-project-rocm-6.2.1/amd/comgr/src/comgr-isa-metadata.def:92:60: error: ‘EF_AMDGPU_MACH_AMDGCN_GFX1152’ is not a member of ‘llvm::ELF’; did you mean ‘EF_AMDGPU_MACH_AMDGCN_GFX1151’?
92 | HANDLE_ISA("amdgcn-amd-amdhsa-", "gfx1152", false, false, EF_AMDGPU_MACH_AMDGCN_GFX1152, true, 65536, 32, 4, 40, 1024, 106, 800, 106, 16, 1024, 256)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/var/tmp/portage/dev-libs/rocm-comgr-6.2.1/work/llvm-project-rocm-6.2.1/amd/comgr/src/comgr-metadata.cpp:381:9: note: in definition of macro ‘HANDLE_ISA’
381 | ELF::ELF_MACHINE,
| ^~~~~~~~~~~

Operating System

Gentoo

CPU

AMD Ryzen Threadripper PRO 3955WX

GPU

AMD Radeon Pro W6800

ROCm Version

ROCm 6.2.0

ROCm Component

llvm-project

Steps to Reproduce

Compile error:

[76/81] /usr/bin/x86_64-pc-linux-gnu-g++ -DAMD_COMGR_BUILD -DAMD_COMGR_EXPORT -D_GNU_SOURCE -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -D__STDC_CONSTANT_MACROS -D__STDC_LIMIT_MACROS -I/usr/lib/llvm/18/include -I/var/tmp/portage/dev-libs/rocm-comgr-6.2.1/work/llvm-project-rocm-6.2.1/amd/comgr/src -I/var/tmp/portage/dev-libs/rocm-comgr-6.2.1/work/llvm-project-rocm-6.2.1/amd/comgr_build/include  -march=native -O2 -pipe -std=c++17 -fPIC -DAMD_COMGR_GIT_COMMIT=not-available -DAMD_COMGR_GIT_BRANCH=not-available -fno-rtti -Wall -Wno-attributes -fms-extensions -fvisibility=hidden -fno-strict-aliasing -MD -MT CMakeFiles/amd_comgr.dir/src/comgr-metadata.cpp.o -MF CMakeFiles/amd_comgr.dir/src/comgr-metadata.cpp.o.d -o CMakeFiles/amd_comgr.dir/src/comgr-metadata.cpp.o -c /var/tmp/portage/dev-libs/rocm-comgr-6.2.1/work/llvm-project-rocm-6.2.1/amd/comgr/src/comgr-metadata.cpp
FAILED: CMakeFiles/amd_comgr.dir/src/comgr-metadata.cpp.o
/usr/bin/x86_64-pc-linux-gnu-g++ -DAMD_COMGR_BUILD -DAMD_COMGR_EXPORT -D_GNU_SOURCE -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -D__STDC_CONSTANT_MACROS -D__STDC_LIMIT_MACROS -I/usr/lib/llvm/18/include -I/var/tmp/portage/dev-libs/rocm-comgr-6.2.1/work/llvm-project-rocm-6.2.1/amd/comgr/src -I/var/tmp/portage/dev-libs/rocm-comgr-6.2.1/work/llvm-project-rocm-6.2.1/amd/comgr_build/include  -march=native -O2 -pipe -std=c++17 -fPIC -DAMD_COMGR_GIT_COMMIT=not-available -DAMD_COMGR_GIT_BRANCH=not-available -fno-rtti -Wall -Wno-attributes -fms-extensions -fvisibility=hidden -fno-strict-aliasing -MD -MT CMakeFiles/amd_comgr.dir/src/comgr-metadata.cpp.o -MF CMakeFiles/amd_comgr.dir/src/comgr-metadata.cpp.o.d -o CMakeFiles/amd_comgr.dir/src/comgr-metadata.cpp.o -c /var/tmp/portage/dev-libs/rocm-comgr-6.2.1/work/llvm-project-rocm-6.2.1/amd/comgr/src/comgr-metadata.cpp
/var/tmp/portage/dev-libs/rocm-comgr-6.2.1/work/llvm-project-rocm-6.2.1/amd/comgr/src/comgr-isa-metadata.def:92:60: error: ‘EF_AMDGPU_MACH_AMDGCN_GFX1152’ is not a member of ‘llvm::ELF’; did you mean ‘EF_AMDGPU_MACH_AMDGCN_GFX1151’?
   92 | HANDLE_ISA("amdgcn-amd-amdhsa-", "gfx1152",  false, false, EF_AMDGPU_MACH_AMDGCN_GFX1152, true, 65536,  32,  4,   40, 1024,  106, 800, 106,   16, 1024, 256)
      |                                                            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/var/tmp/portage/dev-libs/rocm-comgr-6.2.1/work/llvm-project-rocm-6.2.1/amd/comgr/src/comgr-metadata.cpp:381:9: note: in definition of macro ‘HANDLE_ISA’
  381 |    ELF::ELF_MACHINE,                                                           \
      |         ^~~~~~~~~~~

(Optional for Linux users) Output of /opt/rocm/bin/rocminfo --support

$ rocminfo --support
=====================
HSA System Attributes
=====================
Runtime Version:         1.1
Runtime Ext Version:     1.6
System Timestamp Freq.:  1000.000000MHz
Sig. Max Wait Duration:  18446744073709551615 (0xFFFFFFFFFFFFFFFF) (timestamp count)
Machine Model:           LARGE
System Endianness:       LITTLE
Mwaitx:                  DISABLED
DMAbuf Support:          YES

==========
HSA Agents
==========
*******
Agent 1
*******
  Name:                    AMD Ryzen Threadripper PRO 3955WX 16-Cores
  Uuid:                    CPU-XX
  Marketing Name:          AMD Ryzen Threadripper PRO 3955WX 16-Cores
  Vendor Name:             CPU
  Feature:                 None specified
  Profile:                 FULL_PROFILE
  Float Round Mode:        NEAR
  Max Queue Number:        0(0x0)
  Queue Min Size:          0(0x0)
  Queue Max Size:          0(0x0)
  Queue Type:              MULTI
  Node:                    0
  Device Type:             CPU
  Cache Info:
    L1:                      32768(0x8000) KB
  Chip ID:                 0(0x0)
  ASIC Revision:           0(0x0)
  Cacheline Size:          64(0x40)
  Max Clock Freq. (MHz):   4403
  BDFID:                   0
  Internal Node ID:        0
  Compute Unit:            32
  SIMDs per CU:            0
  Shader Engines:          0
  Shader Arrs. per Eng.:   0
  WatchPts on Addr. Ranges:1
  Features:                None
  Pool Info:
    Pool 1
      Segment:                 GLOBAL; FLAGS: FINE GRAINED
      Size:                    395849384(0x17982ea8) KB
      Allocatable:             TRUE
      Alloc Granule:           4KB
      Alloc Recommended Granule:4KB
      Alloc Alignment:         4KB
      Accessible by all:       TRUE
    Pool 2
      Segment:                 GLOBAL; FLAGS: KERNARG, FINE GRAINED
      Size:                    395849384(0x17982ea8) KB
      Allocatable:             TRUE
      Alloc Granule:           4KB
      Alloc Recommended Granule:4KB
      Alloc Alignment:         4KB
      Accessible by all:       TRUE
    Pool 3
      Segment:                 GLOBAL; FLAGS: COARSE GRAINED
      Size:                    395849384(0x17982ea8) KB
      Allocatable:             TRUE
      Alloc Granule:           4KB
      Alloc Recommended Granule:4KB
      Alloc Alignment:         4KB
      Accessible by all:       TRUE
  ISA Info:
*******
Agent 2
*******
  Name:                    gfx1012
  Uuid:                    GPU-XX
  Marketing Name:          AMD Radeon Pro W5500
  Vendor Name:             AMD
  Feature:                 KERNEL_DISPATCH
  Profile:                 BASE_PROFILE
  Float Round Mode:        NEAR
  Max Queue Number:        128(0x80)
  Queue Min Size:          64(0x40)
  Queue Max Size:          131072(0x20000)
  Queue Type:              MULTI
  Node:                    1
  Device Type:             GPU
  Cache Info:
    L1:                      16(0x10) KB
    L2:                      2048(0x800) KB
  Chip ID:                 29505(0x7341)
  ASIC Revision:           1(0x1)
  Cacheline Size:          128(0x80)
  Max Clock Freq. (MHz):   1900
  BDFID:                   25344
  Internal Node ID:        1
  Compute Unit:            22
  SIMDs per CU:            2
  Shader Engines:          1
  Shader Arrs. per Eng.:   2
  WatchPts on Addr. Ranges:4
  Coherent Host Access:    FALSE
  Features:                KERNEL_DISPATCH
  Fast F16 Operation:      TRUE
  Wavefront Size:          32(0x20)
  Workgroup Max Size:      1024(0x400)
  Workgroup Max Size per Dimension:
    x                        1024(0x400)
    y                        1024(0x400)
    z                        1024(0x400)
  Max Waves Per CU:        40(0x28)
  Max Work-item Per CU:    1280(0x500)
  Grid Max Size:           4294967295(0xffffffff)
  Grid Max Size per Dimension:
    x                        4294967295(0xffffffff)
    y                        4294967295(0xffffffff)
    z                        4294967295(0xffffffff)
  Max fbarriers/Workgrp:   32
  Packet Processor uCode:: 123
  SDMA engine uCode::      41
  IOMMU Support::          None
  Pool Info:
    Pool 1
      Segment:                 GLOBAL; FLAGS: COARSE GRAINED
      Size:                    8372224(0x7fc000) KB
      Allocatable:             TRUE
      Alloc Granule:           4KB
      Alloc Recommended Granule:2048KB
      Alloc Alignment:         4KB
      Accessible by all:       FALSE
    Pool 2
      Segment:                 GLOBAL; FLAGS: EXTENDED FINE GRAINED
      Size:                    8372224(0x7fc000) KB
      Allocatable:             TRUE
      Alloc Granule:           4KB
      Alloc Recommended Granule:2048KB
      Alloc Alignment:         4KB
      Accessible by all:       FALSE
    Pool 3
      Segment:                 GROUP
      Size:                    64(0x40) KB
      Allocatable:             FALSE
      Alloc Granule:           0KB
      Alloc Recommended Granule:0KB
      Alloc Alignment:         0KB
      Accessible by all:       FALSE
  ISA Info:
    ISA 1
      Name:                    amdgcn-amd-amdhsa--gfx1012:xnack-
      Machine Models:          HSA_MACHINE_MODEL_LARGE
      Profiles:                HSA_PROFILE_BASE
      Default Rounding Mode:   NEAR
      Default Rounding Mode:   NEAR
      Fast f16:                TRUE
      Workgroup Max Size:      1024(0x400)
      Workgroup Max Size per Dimension:
        x                        1024(0x400)
        y                        1024(0x400)
        z                        1024(0x400)
      Grid Max Size:           4294967295(0xffffffff)
      Grid Max Size per Dimension:
        x                        4294967295(0xffffffff)
        y                        4294967295(0xffffffff)
        z                        4294967295(0xffffffff)
      FBarrier Max Size:       32
*** Done ***

Additional Information

CPU: AMD Ryzen Threadripper PRO 3955WX s (32) @ 4.403GHz
GPU: AMD ATI Radeon Pro W5500

Portage 3.0.66.1 (python 3.12.6-final-0, default/linux/amd64/23.0/desktop/gnome/systemd, gcc-14, glibc-2.40-r3, 6.10.8-gentoo-x86_64 x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-6.10.8-gentoo-x86_64-x86_64-AMD_Ryzen_Threadripper_PRO_3955WX_16-Cores-with-glibc2.40
KiB Mem:   395857032 total,  54641860 free
KiB Swap:   67108860 total,  66522148 free
Timestamp of repository gentoo: Tue, 24 Sep 2024 20:19:01 +0000
Head commit of repository gentoo: 6aff74082fcdaef336748d33bab2d0d67c744a27

Timestamp of repository cg: Tue, 24 Sep 2024 12:19:15 +0000
Head commit of repository cg: 1e90f0616a96b2e1fa6431423d2a8484c921d6b6

Timestamp of repository gamerlay: Tue, 24 Sep 2024 12:19:10 +0000
Head commit of repository gamerlay: 31980a87bc5122f3646f30a3fdbd14b9bc17001d

Timestamp of repository gitlab: Wed, 18 Sep 2024 22:54:58 +0000
Head commit of repository gitlab: 47f5daff675eac31c5c10908eb4b4bac7e9d808f

Timestamp of repository guru: Tue, 24 Sep 2024 12:19:22 +0000
Head commit of repository guru: 497a46602c06807015d10b9e7f42e57527d43a4d

Timestamp of repository haskell: Tue, 24 Sep 2024 12:19:11 +0000
Head commit of repository haskell: 5f350878e8b0cda0f8f7648cd47255327042f780

Timestamp of repository inode64-overlay: Tue, 24 Sep 2024 19:23:05 +0000
Head commit of repository inode64-overlay: 5e65a119bcea82fb4d0e6e8914f75dc6fd3a29f5

Timestamp of repository librewolf: Tue, 24 Sep 2024 12:19:33 +0000
Head commit of repository librewolf: 7326bccaa81a2f59682f600eafbac702fd6b6141

Timestamp of repository nordvpn: Sat, 21 Sep 2024 09:23:00 +0000
Head commit of repository nordvpn: cac33d819b9a5cdd74367ed76edc6add61e63f01

Timestamp of repository pentoo: Tue, 24 Sep 2024 12:19:13 +0000
Head commit of repository pentoo: 356ea68e2f5d68b20d999ed6e8c8a631ae725284

Head commit of repository rocm-bleeding-edge: 7a7f6131f0d0659a9a5bdc21a1559189fc8a4410

Timestamp of repository sage-on-gentoo: Tue, 24 Sep 2024 12:19:14 +0000
Head commit of repository sage-on-gentoo: c95d5a27fd5649dda1c3e98bfd2af756a41f7931

Head commit of repository science: 950a343384d914b25695ef4b0c502294e0afcb78

Head commit of repository torbrowser: 83daf25dbe27666448b61e22e6fd51e5c00142dc

Head commit of repository steam-overlay: 946538dd37b9283e8cd2c24ab2961c61fecbc2e1

sh bash 5.2_p37
ld GNU ld (Gentoo 2.42 p6) 2.42.0
app-misc/pax-utils:        1.3.8::gentoo
app-shells/bash:           5.2_p37::gentoo
dev-build/autoconf:        2.13-r8::gentoo, 2.71-r6::gentoo, 2.72-r1::gentoo
dev-build/automake:        1.16.5-r2::gentoo, 1.17-r1::gentoo
dev-build/cmake:           3.30.3::gentoo
dev-build/libtool:         2.4.7-r4::gentoo
dev-build/make:            4.4.1-r1::gentoo
dev-build/meson:           1.5.2::gentoo
dev-java/java-config:      2.3.4::gentoo
dev-lang/perl:             5.40.0::gentoo
dev-lang/python:           3.11.10_p1::gentoo, 3.12.6_p4::gentoo, 3.13.0_rc2_p2::gentoo
dev-lang/rust:             1.78.0::gentoo
dev-lang/rust-bin:         1.81.0::gentoo
sys-apps/baselayout:       2.15::gentoo
sys-apps/sandbox:          2.39::gentoo
sys-apps/systemd:          256.6::gentoo
sys-devel/binutils:        2.41-r5::gentoo, 2.42-r2::gentoo, 2.43-r1::gentoo
sys-devel/binutils-config: 5.5.2::gentoo
sys-devel/clang:           16.0.6::rocm-bleeding-edge, 17.0.6::rocm-bleeding-edge, 18.1.8::gentoo, 19.1.0::gentoo
sys-devel/gcc:             13.3.1_p20240614::gentoo, 14.2.1_p20240921::gentoo
sys-devel/gcc-config:      2.11::gentoo
sys-devel/lld:             17.0.6::gentoo, 18.1.8::gentoo
sys-devel/llvm:            16.0.6::gentoo, 17.0.6-r2::gentoo, 18.1.8-r4::gentoo, 19.1.0::gentoo
sys-kernel/linux-headers:  6.10::gentoo (virtual/os-headers)
sys-libs/glibc:            2.40-r3::gentoo
Repositories:

gentoo
    location: /var/db/repos/gentoo
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/gentoo.git
    priority: -1000
    volatile: False

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

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

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

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

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

inode64-overlay
    location: /var/db/repos/inode64-overlay
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/inode64-overlay.git
    masters: gentoo
    volatile: False

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

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

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

rocm-bleeding-edge
    location: /var/db/repos/sjnewbury-rocm-bleeding-edge
    sync-type: git
    sync-uri: https://github.com/sjnewbury/rocm-bleeding-edge.git
    masters: gentoo
    volatile: False

sage-on-gentoo
    location: /var/db/repos/sage-on-gentoo
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/sage-on-gentoo.git
    masters: gentoo
    volatile: False

science
    location: /var/db/repos/science
    sync-type: git
    sync-uri: git://git.gentoo.org/proj/sci.git
    masters: gentoo
    volatile: False

torbrowser
    location: /var/db/repos/torbrowser
    sync-type: git
    sync-uri: https://github.com/MeisterP/torbrowser-overlay.git
    masters: gentoo
    volatile: False

steam-overlay
    location: /var/db/repos/steam-overlay
    sync-type: git
    sync-uri: https://github.com/anyc/steam-overlay.git
    masters: gentoo
    priority: 50
    volatile: False

local-grotto
    location: /var/db/repos/local-grotto
    masters: gentoo
    priority: 1000
    volatile: False

Binary Repositories:

gentoobinhost
    priority: 1
    sync-uri: https://gentoo.osuosl.org/releases/amd64/binpackages/23.0/x86-64

Installed sets: @ai, @android, @bareboneswm, @consoleapps, @db, @desktop, @devops, @dict, @fonts, @gfx, @gns3, @journaling, @nextcloud, @opencl, @pentest, @privacy, @programming, @radio, @streaming, @tex, @themes, @utils, @webdev, @xmpp
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /opt/zookeeper-bin/conf /usr/lib64/libreoffice/program/sofficerc /usr/share/config /usr/share/gnupg/qualified.txt /var/bind"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php8.2/ext-active/ /etc/php/apache2-php8.3/ext-active/ /etc/php/cgi-php8.2/ext-active/ /etc/php/cgi-php8.3/ext-active/ /etc/php/cli-php8.2/ext-active/ /etc/php/cli-php8.3/ext-active/ /etc/php/fpm-php8.2/ext-active/ /etc/php/fpm-php8.3/ext-active/ /etc/php/phpdbg-php8.2/ext-active/ /etc/php/phpdbg-php8.3/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-march=native -O2 -pipe"
DISTDIR="/var/cache/distfiles"
ENV_UNSET="CARGO_HOME DBUS_SESSION_BUS_ADDRESS DISPLAY GDK_PIXBUF_MODULE_FILE 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 XDG_STATE_HOME"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs binpkg-multi-instance buildpkg-live config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync merge-wait multilib-strict network-sandbox news parallel-fetch pid-sandbox pkgdir-index-trusted 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://distfiles.gentoo.org /var/cache/distfiles/"
LANG="C.UTF8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,-z,pack-relative-relocs"
LEX="flex"
LINGUAS="en en_US"
MAKEOPTS="-j48"
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"
RUSTFLAGS="-C target-cpu=native -C link-arg=-Wl,-z,pack-relative-relocs"
SHELL="/bin/bash"
USE="X a52 aac aalib acl acpi aio alsa amd64 amdgpu amf amr amrenc ao apache2 appindicator archive atasmart autotype avif awt base bash-completion boot boto branding browser btpclient btrfs bzip2 cairo calendar caps cdda cddb cdr cet chromium clippy colord compositor connection-sharing context contrib contribdnn crypt cups curl dav1d dbus development device-mapper dia down-root dracut dri drm drun dts dvd dvdr eap-tls eds egl elfutils encode epspdf evo exif extensions extra extraengine faad fdk ffmpeg ffmpge flac flashrom fpm freerdp games gcj gd gdata gdbm gentoo-vm gif gimp git glamor gles gles1 gles2 gltf gmp gnome gnome-keyring gnome-shell gpg gpm graph graphics gstreamer gtk gtk3 gui hardened hcitop hddtemp hdri heif hip http http3 humanities hwaccel iconv icu imagemagick introspection iproute2 iptables ipv6 jack javascript jemalloc jingle jpeg jpeg2k jpegxl json kate kernel-install keyring kf6compat lcms ldac libass libdrm libkms libnotify libtesseract libtirpc libvirt lm-sensors lm_sensors login lto lxc lz4 lzma mad matroska maxminddb mediaplayer mms mmx mmxext mng mod modplug mp3 mp4 mpeg mtp multilib music mysql mysqli mysqlnd nautilus ncat ncurses network networkmanager nfs nfsv4 nfsv41 nftables nginx nls notification nping nvme ocr odf offensive ofono ofx ogg omega omemo openal opencl opencv openexr opengl openh264 openmp opus ozone pam pango pcre pda pdf pdfannotextractor pdfimport pdo pgo php pipewire png policykit postgres postproc postscript ppds printsupport profiling proton pstricks publishers pulseaudio python qemu qml qt5 qt6 quic rav1e raw raycast readline redis rrdcgi rubberband rust-analyzer rust-src rustfmt s3tc science sdl seccomp sendto sensord shaderc shout slib soap sockets sound speech speex spell spice sqlite srt sse sse2 sse3 sse4.1 sse4.2 ssh ssl ssse3 staging startup-notification svc svg svt-av1 syntax-check sysprof system-ffmpeg system-harfbuzz system-icu system-jpeg system-libevent system-libvpx system-llvm system-sqlite systemd sysv-utils sysvipc terminal tesseract test-rust tex4ht texi2html tfshark theora threads thunar tiff tools tor-hardening tproxy tray trayicon truetype udev udisks uefi uki ukify unicode update_drivedb upower usb usbredir user-session uuid uvm v4l vaapi vdpau vector-icons vim vim-syntax visio vkd3d vlc vnc vorbis vpx vte vulkan vulkan-overlay wayland webp widevine wireshark-plugins wxwidgets x264 x265 xattr xcb xcomposite xephyr xetex xface xft xinerama xml xmlwriter xpm xrandr xsl xslt xv xvfb xvid xvmc zip zlib zsh-completion zsh-completions zstd" ABI_X86="64" ADA_TARGET="gcc_12" AMDGPU_TARGETS="gfx1012" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_core authn_dbm authn_file authz_core authz_dbm authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir env expires ext_filter file_cache filter headers include info log_config logio mime mime_magic negotiation proxy proxy_balancer proxy_connect proxy_fdpass proxy_fcgi proxy_http proxy_scgi proxy_wstunnel ratelimit rewrite setenvif slotmem_shm socache_shmcb speling status unique_id unixd userdir usertrack vhost_alias" APACHE2_MPMS="event" 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 rdrand sha sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3" CURL_QUIC="openssl" CURL_SSL="openssl" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock greis isync itrax mtk3301 ntrip navcom oceanserver oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 tsip tripmate tnt ublox" GRUB_PLATFORMS="efi-64" GUILE_SINGLE_TARGET="3-0" GUILE_TARGETS="3-0" INPUT_DEVICES="libinput joystick" KERNEL="linux" L10N="en en-US" LCD_DEVICES="bayrad cfontz glk hd44780 lb216 lcdm001 mtxorb text" LIBREOFFICE_EXTENSIONS="nlpsolver scripting-beanshell scripting-javascript wiki-publisher" LLVM_TARGETS="X86 AMDGPU" LUA_SINGLE_TARGET="lua5-1" LUA_TARGETS="lua5-1" NGINX_MODULES_HTTP="access auth_basic autoindex browser charset empty_gif fastcgi geo gzip limit_conn limit_req map memcached proxy referer rewrite scgi split_clients ssi upstream_ip_hash userid uwsgi gunzip gzip_static metrics mp4 naxsi security realip stub_status pcre-jit" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php8-2" POSTGRES_TARGETS="postgres16" PYTHON_SINGLE_TARGET="python3_12" PYTHON_TARGETS="python3_12" QEMU_SOFTMMU_TARGETS="i386 x86_64" QEMU_USER_TARGETS="i386 x86_64" RUBY_TARGETS="ruby32" SANE_BACKENDS="epson epson2 net" VIDEO_CARDS="amdgpu radeonsi" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipp2p iface geoip fuzzy condition tarpit sysrq proto logmark ipmark dhcpmac delude chaos account"
Unset:  ADDR2LINE, AR, ARFLAGS, AS, ASFLAGS, CC, CCLD, CONFIG_SHELL, CPP, CPPFLAGS, CTARGET, CXX, CXXFILT, ELFEDIT, EMERGE_DEFAULT_OPTS, EXTRA_ECONF, F77FLAGS, FC, GCOV, GPROF, INSTALL_MASK, LC_ALL, LD, LFLAGS, LIBTOOL, MAKE, MAKEFLAGS, NM, OBJCOPY, OBJDUMP, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PYTHONPATH, RANLIB, READELF, SIZE, STRINGS, STRIP, YACC, YFLAGS
@lamb-j
Copy link
Collaborator

lamb-j commented Sep 25, 2024

Hi @mattmcadoo

It looks like you're getting this error when building Comgr from source? Can you share the branch you're using to build, and the CMake command you're using?

If your Comgr and LLVM sources are from the same branch, they should both support gfx1152. (Example

EF_AMDGPU_MACH_AMDGCN_GFX1152 = 0x055,
)

Thanks!

@mattmcadoo
Copy link
Author

I'm using the 6.2.1 tarball that's posted 5 days ago.

This is the CMake command and some additional output:

cmake -C /var/tmp/portage/dev-libs/rocm-comgr-6.2.1/work/llvm-project-rocm-6.2.1/amd/comgr_build/gentoo_common_config.cmake -G Ninja -DCMAKE_INSTALL_PREFIX=/usr -DLLVM_DIR=/usr/lib/llvm/18 -DCMAKE_STRIP= -DBUILD_TESTING=OFF -DCOMGR_BUILD_SHARED_LIBS=OFF -DCMAKE_BUILD_TYPE=Release -DCMAKE_TOOLCHAIN_FILE=/var/tmp/portage/dev-libs/rocm-comgr-6.2.1/work/llvm-project-rocm-6.2.1/amd/comgr_build/gentoo_toolchain.cmake /var/tmp/portage/dev-libs/rocm-comgr-6.2.1/work/llvm-project-rocm-6.2.1/amd/comgr
loading initial cache file /var/tmp/portage/dev-libs/rocm-comgr-6.2.1/work/llvm-project-rocm-6.2.1/amd/comgr_build/gentoo_common_config.cmake
Comgr Version: 2.8.0
-- The C compiler identification is GNU 14.2.1
-- The CXX compiler identification is GNU 14.2.1
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/bin/x86_64-pc-linux-gnu-gcc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/x86_64-pc-linux-gnu-g++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Performing Test HAVE_FFI_CALL
-- Performing Test HAVE_FFI_CALL - Success
-- Found FFI: /usr/lib64/libffi.so
-- Performing Test Terminfo_LINKABLE
-- Performing Test Terminfo_LINKABLE - Success
-- Found Terminfo: /usr/lib64/libtinfo.so
-- Found ZLIB: /usr/lib64/libz.so (found version "1.3.1")
-- Found zstd: /usr/lib64/libzstd.so
-- Found LibXml2: /usr/lib64/libxml2.so (found version "2.12.8")

------------LLVM_DIR: /usr/lib/llvm/18/lib64/cmake/llvm
---LLVM_INCLUDE_DIRS: /usr/lib/llvm/18/include
---LLVM_LIBRARY_DIRS: /usr/lib/llvm/18/lib64
-----------Clang_DIR: /usr/lib/llvm/18/lib64/cmake/clang
--CLANG_INCLUDE_DIRS: /usr/lib/llvm/18/include
----LLD_INCLUDE_DIRS: /usr/lib/llvm/18/include
---AMDDeviceLibs_DIR: /usr/lib64/cmake/AMDDeviceLibs
------------ROCM_DIR: /usr/share/rocm/cmake
----COMGR_GIT_COMMIT: not-available
----COMGR_GIT_BRANCH: not-available

-- <<< Gentoo configuration >>>
Build type      Release
Install path    /usr
Compiler flags:
C               -march=native -O2 -pipe
C++             -march=native -O2 -pipe
Linker flags:
Executable      -Wl,-O1 -Wl,--as-needed -Wl,-z,pack-relative-relocs
Module          -Wl,-O1 -Wl,--as-needed -Wl,-z,pack-relative-relocs
Shared          -Wl,-O1 -Wl,--as-needed -Wl,-z,pack-relative-relocs

@mattmcadoo
Copy link
Author

I'm getting the same error with 6.2.2 release tarball.

@mattmcadoo mattmcadoo changed the title [Issue]: llvm-project-rocm-6.2.1/amd/comgr/src/comgr-isa-metadata.def:92:60: error: ‘EF_AMDGPU_MACH_AMDGCN_GFX1152’ is not a member of ‘llvm::ELF’ [Issue]: llvm-project-rocm-6.2.[12]/amd/comgr/src/comgr-isa-metadata.def:92:60: error: ‘EF_AMDGPU_MACH_AMDGCN_GFX1152’ is not a member of ‘llvm::ELF’ Sep 28, 2024
@lamb-j
Copy link
Collaborator

lamb-j commented Oct 21, 2024

-DLLVM_DIR=/usr/lib/llvm/18

Is this the 6.2.1/6.2.2 ROCm LLVM? Or a system LLVM? I'm not familiar with the Gentoo CMake config, but Comgr does need to build against a compatible version of the AMD LLVM fork

@mattmcadoo
Copy link
Author

System LLVM. There was a patch by the Gentoo devs that worked with version 6.1.2, but it fails to be applied to 6.2.x of ROCm. https://github.com/gentoo/gentoo/blob/master/dev-libs/rocm-comgr/files/rocm-comgr-6.1.0-llvm-18-compat.patch They don't include a build for the AMD LLVM fork because of cohabitation problems with the upstream LLVM on the same system, as noted on this older bug report with Gentoo: https://bugs.gentoo.org/851702

@lamb-j
Copy link
Collaborator

lamb-j commented Oct 23, 2024

Do you have the hash/version number of your system LLVM? You may need to port this patch to it:

EF_AMDGPU_MACH_AMDGCN_GFX1152 = 0x055,

@lamb-j lamb-j self-assigned this Oct 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants