<html>
    <head>
      <base href="https://bugs.llvm.org/">
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - libclc doesn't build with LLVM 7"
   href="https://bugs.llvm.org/show_bug.cgi?id=37533">37533</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>libclc doesn't build with LLVM 7
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>libraries
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>trunk
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>PC
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>Linux
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>enhancement
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>P
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>Support Libraries
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>unassignedbugs@nondot.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>laguest@archeia.com
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>llvm-bugs@lists.llvm.org
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Created <span class=""><a href="attachment.cgi?id=20324" name="attach_20324" title="Build log">attachment 20324</a> <a href="attachment.cgi?id=20324&action=edit" title="Build log">[details]</a></span>
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</pre>
        </div>
      </p>


      <hr>
      <span>You are receiving this mail because:</span>

      <ul>
          <li>You are on the CC list for the bug.</li>
      </ul>
    </body>
</html>