[llvm-bugs] [Bug 51404] New: 'Clang :: Driver/rocm-detect.hip' fails on Gentoo

via llvm-bugs llvm-bugs at lists.llvm.org
Sat Aug 7 11:43:39 PDT 2021


https://bugs.llvm.org/show_bug.cgi?id=51404

            Bug ID: 51404
           Summary: 'Clang :: Driver/rocm-detect.hip' fails on Gentoo
           Product: clang
           Version: unspecified
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: -New Bugs
          Assignee: unassignedclangbugs at nondot.org
          Reporter: mgorny at gentoo.org
                CC: htmldeveloper at gmail.com, llvm-bugs at lists.llvm.org,
                    neeilans at live.com, richard-llvm at metafoo.co.uk,
                    yaxun.liu at amd.com
            Blocks: 51236

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:

+ : 'RUN: at line 44'
+ /usr/lib/llvm/13/bin/FileCheck -check-prefixes=SPACK
/var/tmp/portage/sys-devel/clang-13.0.0.9999/work/clang/test/Driver/rocm-detect.hip
+
/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/bin/clang
-### -v -target x86_64-linux-gnu --cuda-gpu-arch=gfx900
--print-rocm-search-dirs
/var/tmp/portage/sys-devel/clang-13.0.0.9999/work/clang/test/Driver/rocm-detect.hip
/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.]+}}
          ^
<stdin>: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
                                                                               
                                                                               
                          ^
<stdin>: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
                                                                               
                                                                               
                          ^
<stdin>: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: <stdin>
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     ~~~~~~~~~~~~~~~~~~~~
            .
            .
            .
>>>>>>


Referenced Bugs:

https://bugs.llvm.org/show_bug.cgi?id=51236
[Bug 51236] [meta] 13.0.0 Release Blockers
-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20210807/bb1114ac/attachment-0001.html>


More information about the llvm-bugs mailing list