[llvm-bugs] [Bug 27799] Clang fails to compile libclc

via llvm-bugs llvm-bugs at lists.llvm.org
Wed Jul 13 12:53:01 PDT 2016


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

yaxun.liu at amd.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |FIXED

--- Comment #5 from yaxun.liu at amd.com ---
The original issues were fixed. Now fails due to some other issue

./ptx-nvidiacl/lib/workitem/get_local_size.cl:5:19: error: use of unknown
builtin '__builtin_ptx_read_ntid_x' [-Wimplicit-function-declaration]
  case 0:  return __builtin_ptx_read_ntid_x();
                  ^
./ptx-nvidiacl/lib/workitem/get_local_id.cl:5:19: error: use of unknown builtin
'__builtin_ptx_read_tid_x' [-Wimplicit-function-declaration]
  case 0:  return __builtin_ptx_read_tid_x();
                  ^
./ptx-nvidiacl/lib/workitem/get_local_size.cl:6:19: error: use of unknown
builtin '__builtin_ptx_read_ntid_y' [-Wimplicit-function-declaration]
  case 1:  return __builtin_ptx_read_ntid_y();
                  ^
./ptx-nvidiacl/lib/workitem/get_local_id.cl:6:19: error: use of unknown builtin
'__builtin_ptx_read_tid_y' ./ptx-nvidiacl/lib/workitem/get_local_size.cl:6:19:
note: did you mean '__builtin_ptx_read_ntid_x'?
[-Wimplicit-function-declaration]
  case 1:  return __builtin_ptx_read_tid_y();
                  ^
./ptx-nvidiacl/lib/workitem/get_local_size.cl:5:19: note:
'__builtin_ptx_read_ntid_x' declared here
  case 0:  return __builtin_ptx_read_ntid_x();
                  ^
./ptx-nvidiacl/lib/workitem/get_local_size.cl:7:19: error: use of unknown
builtin '__builtin_ptx_read_ntid_z' [-Wimplicit-function-declaration]
  case 2:  return __builtin_ptx_read_ntid_z();
                  ^
./ptx-nvidiacl/lib/workitem/get_local_id.cl:6:19: note: did you mean
'__builtin_ptx_read_tid_x'?3
 errors generated.
./ptx-nvidiacl/lib/workitem/get_local_id.cl:5:19: note:
'__builtin_ptx_read_tid_x' declared here
  case 0:  return __builtin_ptx_read_tid_x();
                  ^
./ptx-nvidiacl/lib/workitem/get_local_id.cl:7:19: error: use of unknown builtin
'__builtin_ptx_read_tid_z' [-Wimplicit-function-declaration]
  case 2:  return __builtin_ptx_read_tid_z();
                  ^
3 errors generated.
Makefile:44: recipe for target
'nvptx--nvidiacl/lib/workitem/get_local_size.cl.bc' failed
make: *** [nvptx--nvidiacl/lib/workitem/get_local_size.cl.bc] Error 1
make: *** Waiting for unfinished jobs....
./ptx-nvidiacl/lib/synchronization/barrier.cl:5:5: error: use of unknown
builtin '__builtin_ptx_bar_sync' [-Wimplicit-function-declaration]
    __builtin_ptx_bar_sync(0);
    ^
1 error generated.
Makefile:39: recipe for target
'nvptx--nvidiacl/lib/workitem/get_local_id.cl.bc' failed
make: *** [nvptx--nvidiacl/lib/workitem/get_local_id.cl.bc] Error 1
./ptx-nvidiacl/lib/workitem/get_group_id.cl:5:19: error: use of unknown builtin
'__builtin_ptx_read_ctaid_x' [-Wimplicit-function-declaration]
  case 0:  return __builtin_ptx_read_ctaid_x();
                  ^
Makefile:29: recipe for target
'nvptx--nvidiacl/lib/synchronization/barrier.cl.bc' failed
make: *** [nvptx--nvidiacl/lib/synchronization/barrier.cl.bc] Error 1
./ptx-nvidiacl/lib/workitem/get_group_id.cl:6:19: error: use of unknown builtin
'__builtin_ptx_read_ctaid_y' [-Wimplicit-function-declaration]
  case 1:  return __builtin_ptx_read_ctaid_y();
                  ^
./ptx-nvidiacl/lib/workitem/get_group_id.cl:6:19: note: did you mean
'__builtin_ptx_read_ctaid_x'?
./ptx-nvidiacl/lib/workitem/get_group_id.cl:5:19: note:
'__builtin_ptx_read_ctaid_x' declared here
  case 0:  return __builtin_ptx_read_ctaid_x();
                  ^
./ptx-nvidiacl/lib/workitem/get_group_id.cl:7:19: error: use of unknown builtin
'__builtin_ptx_read_ctaid_z' [-Wimplicit-function-declaration]
  case 2:  return __builtin_ptx_read_ctaid_z();

-- 
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/20160713/8adef378/attachment.html>


More information about the llvm-bugs mailing list