<html>
    <head>
      <base href="https://llvm.org/bugs/" />
    </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 --- - Clang 3.8 can't build libunwind 3.9"
   href="https://llvm.org/bugs/show_bug.cgi?id=31035">31035</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Clang 3.8 can't build libunwind 3.9
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>clang
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>unspecified
          </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>normal
          </td>
        </tr>

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

        <tr>
          <th>Component</th>
          <td>Headers
          </td>
        </tr>

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

        <tr>
          <th>Reporter</th>
          <td>renato.golin@linaro.org
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>llvm-bugs@lists.llvm.org
          </td>
        </tr>

        <tr>
          <th>Classification</th>
          <td>Unclassified
          </td>
        </tr></table>
      <p>
        <div>
        <pre>I just realised clang 3.8 comes with an unwind.h which doesn't
have _URC_OK defined (introduced in r262178, just after 3.8 split).

But on that commit, the personality routine depends on it for EHABI
calls, which is defined by default on ARM environments.

The end result is that I can only use Clang 3.9+ to compile libunwind 3.9+.

<a href="http://buildmaster.tcwglab.linaro.org/builders/clang-cmake-armv7-a15-full/builds/1788/steps/build%20stage%201/logs/stdio">http://buildmaster.tcwglab.linaro.org/builders/clang-cmake-armv7-a15-full/builds/1788/steps/build%20stage%201/logs/stdio</a>

compiler-rt/lib/builtins/gcc_personality_v0.c:149:57: error: use of
undeclared identifier '_URC_OK'; did you mean '_UVRSR_OK'?
    if (__gnu_unwind_frame(exceptionObject, context) != _URC_OK)
                                                        ^~~~~~~

The alternative is to use Clang 3.9 for now, but it would be good to document
if we're going to accept this API change (and force 2-tage builds) or fix the
personality routine to accept either headers.</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>