<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 - build failure due to cxa_personality.cpp including unwind.h from libunwind instead of clang installations headers"
href="https://bugs.llvm.org/show_bug.cgi?id=44466">44466</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>build failure due to cxa_personality.cpp including unwind.h from libunwind instead of clang installations headers
</td>
</tr>
<tr>
<th>Product</th>
<td>libc++abi
</td>
</tr>
<tr>
<th>Version</th>
<td>9.0
</td>
</tr>
<tr>
<th>Hardware</th>
<td>PC
</td>
</tr>
<tr>
<th>OS</th>
<td>Windows NT
</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>All Bugs
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>markus.boeck02@gmail.com
</td>
</tr>
<tr>
<th>CC</th>
<td>llvm-bugs@lists.llvm.org, mclow.lists@gmail.com
</td>
</tr></table>
<p>
<div>
<pre>I am trying to compile libcxxabi on windows while also using libunwind for the
unwinder. This sadly causes build failures at this line:
<a href="https://github.com/llvm/llvm-project/blob/83a9321f60d837e4d41c9c08c09ab9e4c171ada4/libcxxabi/src/cxa_personality.cpp#L32">https://github.com/llvm/llvm-project/blob/83a9321f60d837e4d41c9c08c09ab9e4c171ada4/libcxxabi/src/cxa_personality.cpp#L32</a>
as _Unwind_Personality_Fn is an unknown type. It turned out that the include of
unwind.h at Line 23 is including unwind.h from the libunwind project inside of
my clone of the monorepo instead of unwind.h from my clang installations
headers, therefore not defining _Unwind_Personality_Fn.
Headers that was incorrectly included:
<a href="https://github.com/llvm/llvm-project/blob/master/libunwind/include/unwind.h">https://github.com/llvm/llvm-project/blob/master/libunwind/include/unwind.h</a>
Header that should have been included:
<a href="https://github.com/llvm/llvm-project/blob/master/clang/lib/Headers/unwind.h">https://github.com/llvm/llvm-project/blob/master/clang/lib/Headers/unwind.h</a></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>