[llvm-bugs] [Bug 37533] New: libclc doesn't build with LLVM 7

via llvm-bugs llvm-bugs at lists.llvm.org
Sun May 20 11:31:36 PDT 2018


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

            Bug ID: 37533
           Summary: libclc doesn't build with LLVM 7
           Product: libraries
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: Support Libraries
          Assignee: unassignedbugs at nondot.org
          Reporter: laguest at archeia.com
                CC: llvm-bugs at lists.llvm.org

Created attachment 20324
  --> https://bugs.llvm.org/attachment.cgi?id=20324&action=edit
Build log

Hi,

I tried to build the latest GIT libclc with the latest llvm/clang today and it
failed.

LLVM-CC amdgcn--/lib/math/nextafter.cl.tahiti.bc
/usr/lib64/llvm/7/bin/clang -MMD -MF amdgcn--/lib/math/nextafter.cl.tahiti.bc.d
-target amdgcn-- -I`dirname ./amdgpu/lib/math/nextafter.cl` -I./generic/include
-fno-builtin -D__CLC_INTERNAL -emit-llvm -mcpu=tahiti -c -o
amdgcn--/lib/math/nextafter.cl.tahiti.bc ./amdgpu/lib/math/nextafter.cl
./amdgcn/lib/workitem/get_global_offset.cl:6:3: error: casting
'__attribute__((address_space(4))) unsigned char *' to type
'__attribute__((address_space(2))) uint *'
      (aka '__attribute__((address_space(2))) unsigned int *') changes address
space of pointer
                (__attribute__((address_space(2))) uint *)
                ^
1 error generated.
make: *** [Makefile:5661: amdgcn--/lib/workitem/get_global_offset.cl.tahiti.bc]
Error 1
make: *** Waiting for unfinished jobs....
./amdgcn/lib/workitem/get_work_dim.cl:6:3: error: casting
'__attribute__((address_space(4))) unsigned char *' to type
'__attribute__((address_space(2))) uint *'
      (aka '__attribute__((address_space(2))) unsigned int *') changes address
space of pointer
                (__attribute__((address_space(2))) uint *)
                ^
1 error generated.
make: *** [Makefile:5688: amdgcn--/lib/workitem/get_work_dim.cl.tahiti.bc]
Error 1

-- 
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/20180520/6f396152/attachment-0001.html>


More information about the llvm-bugs mailing list