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: unassignedb...@nondot.org
          Reporter: lagu...@archeia.com
                CC: llvm-bugs@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.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to