forked from llvm/llvm-project
-
Notifications
You must be signed in to change notification settings - Fork 55
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.1/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:
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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: