-
Notifications
You must be signed in to change notification settings - Fork 56
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
Comments
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
Thanks! |
I'm using the 6.2.1 tarball that's posted 5 days ago. This is the CMake command and some additional output:
|
I'm getting the same error with 6.2.2 release tarball. |
-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 |
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 |
Do you have the hash/version number of your system LLVM? You may need to port this patch to it:
|
@mattmcadoo , ROCm libraries >= 6.2.0 should use LLVM 19. Alternative solution would be to patch libraries with Other important note that ROCm releases are never aligned to LLVM releases and use some in-between version. Specifically, |
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:
(Optional for Linux users) Output of /opt/rocm/bin/rocminfo --support
Additional Information
CPU: AMD Ryzen Threadripper PRO 3955WX s (32) @ 4.403GHz
GPU: AMD ATI Radeon Pro W5500
The text was updated successfully, but these errors were encountered: