-
Notifications
You must be signed in to change notification settings - Fork 11.8k
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
'Clang :: Driver/rocm-detect.hip' fails on Gentoo #50746
Comments
assigned to @yxsamliu |
I have a fix |
fix committed to trunk by 1439df0 |
Please keep the bug open for 13.x backport. |
Merged: 0a5ae01 |
mentioned in issue #51489 |
This issue was closed.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Extended Description
If I'm not mistaken, the test fails due to hardcoding bad assumptions about clang's resource dir.
Our resource dir is specified as:
-DCLANG_RESOURCE_DIR="../../../../lib/clang/${clang_version}"
The relevant FileCheck output is:
/var/tmp/portage/sys-devel/clang-13.0.0.9999/work/clang/test/Driver/rocm-detect.hip:86:11: error: SPACK: expected string not found in input
// SPACK: ROCm installation search path: [[CLANG]]/{{(llvm/)?}}lib{{[0-9]*}}/clang/{{[0-9.]+}}
^
:3:187: note: scanning from here
ROCm installation search path: /var/tmp/portage/sys-devel/clang-13.0.0.9999/work/x/y/clang-abi_x86_32.x86/test/Driver/Output/rocm-spack/llvm-amdgpu-4.0.0-ieagcs7inf7runpyfvepqkurasoglq4z
^
:3:187: note: with "CLANG" equal to "/var/tmp/portage/sys-devel/clang-13\.0\.0\.9999/work/x/y/clang-abi_x86_32\.x86"
ROCm installation search path: /var/tmp/portage/sys-devel/clang-13.0.0.9999/work/x/y/clang-abi_x86_32.x86/test/Driver/Output/rocm-spack/llvm-amdgpu-4.0.0-ieagcs7inf7runpyfvepqkurasoglq4z
^
:4:1: note: possible intended match here
ROCm installation search path: /var/tmp/portage/sys-devel/clang-13.0.0.9999/work/x/y/clang-abi_x86_32.x86
^
Input file:
Check file: /var/tmp/portage/sys-devel/clang-13.0.0.9999/work/clang/test/Driver/rocm-detect.hip
-dump-input=help explains the following input dump.
Input was:
<<<<<<
1: ROCm installation search path (Spack 4.0.0): /var/tmp/portage/sys-devel/clang-13.0.0.9999/work/x/y/clang-abi_x86_32.x86/test/Driver/Output/rocm-spack
2: ROCm installation search path: /var/tmp/portage/sys-devel/clang-13.0.0.9999/work/x/y/clang-abi_x86_32.x86
3: ROCm installation search path: /var/tmp/portage/sys-devel/clang-13.0.0.9999/work/x/y/clang-abi_x86_32.x86/test/Driver/Output/rocm-spack/llvm-amdgpu-4.0.0-ieagcs7inf7runpyfvepqkurasoglq4z
check:86'0 X error: no match found
check:86'1 with "CLANG" equal to "/var/tmp/portage/sys-devel/clang-13\.0\.0\.9999/work/x/y/clang-abi_x86_32\.x86"
4: ROCm installation search path: /var/tmp/portage/sys-devel/clang-13.0.0.9999/work/x/y/clang-abi_x86_32.x86
check:86'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
check:86'2 ? possible intended match
5: ROCm installation search path: /var/tmp/portage/sys-devel/clang-13.0.0.9999/work/x/y/clang-abi_x86_32.x86/bin/../../../../lib/clang/13.0.0
check:86'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
6: ROCm installation search path: /opt/rocm
check:86'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
7: clang version 13.0.0
check:86'0 ~~~~~~~~~~~~~~~~~~~~~
8: Target: x86_64-unknown-linux-gnu
check:86'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
9: Thread model: posix
check:86'0 ~~~~~~~~~~~~~~~~~~~~
.
.
.
The text was updated successfully, but these errors were encountered: