[llvm-bugs] [Bug 40778] New: Clang internal error during compilation of OpenCL C++ code

via llvm-bugs llvm-bugs at lists.llvm.org
Tue Feb 19 09:48:47 PST 2019


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

            Bug ID: 40778
           Summary: Clang internal error during compilation of OpenCL C++
                    code
           Product: clang
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: OpenCL
          Assignee: unassignedclangbugs at nondot.org
          Reporter: drohr at jwdt.org
                CC: anastasia.stulova at arm.com, llvm-bugs at lists.llvm.org

Created attachment 21492
  --> https://bugs.llvm.org/attachment.cgi?id=21492&action=edit
Clang asked to attach these files to the bug report

Compiling the code in the attachment, I get a clang-internal error:

FYI: after the discussion in bug report 40707, I replaced all global / local /
constant / private in the libclc headers with __global, __local, ...

Below is the clang error message:

Base/opencl/AliGPUReconstructionOCL.cl:64:15: error: unsupported initializer
for address space
__kernel void AliGPUTPCProcess_25AliGPUTPCNeighboursFinder0(__global char*
gpu_mem, __global AliGPUConstantMem* pConstant, int iSlice)
              ^
Base/opencl/AliGPUReconstructionOCL.cl:64:15: error: unsupported initializer
for address space
fatal error: error in backend: Cannot select: 0x55fb301a4f80: i32 =
GlobalAddress<{ i32, i32, i32, float, float, float, float, i32, i32, i32, [256
x [6 x <2 x float>]], [256 x [6 x i32]], %class.AliGPUTPCRow,
%class.AliGPUTPCRow, %class.AliGPUTPCRow } addrspace(3)*
     
@_ZZ45AliGPUTPCProcess_25AliGPUTPCNeighboursFinder0PU3AS1cPU3AS117AliGPUConstantMemiE4smem>
0
In function:
_Z45AliGPUTPCProcess_25AliGPUTPCNeighboursFinder0PU3AS1cPU3AS117AliGPUConstantMemi
clang-9: error: clang frontend command failed with exit code 70 (use -v to see
invocation)
clang version 9.0.0 (/var/tmp/portage/sys-devel/clang-9999/work/x/y/clang-9999
b492883ea31e2046d5725126318911465bc1374f)
Target: amdgcn-amd-amdhsa
Thread model: posix
InstalledDir: /usr/lib/llvm/9/bin
clang-9: note: diagnostic msg: PLEASE submit a bug report to  and include the
crash backtrace, preprocessed source, and associated run script.
clang-9: note: diagnostic msg: 
********************

PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT:
Preprocessed source(s) and associated run script(s) are located at:
clang-9: note: diagnostic msg: /tmp/test-7df905.cl
clang-9: note: diagnostic msg: /tmp/test-7df905.sh
clang-9: note: diagnostic msg: 

********************

-- 
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/20190219/75fc1b24/attachment.html>


More information about the llvm-bugs mailing list