<html>
<head>
<base href="http://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 --- - libunwind: build failure using libsdtd++ due to UNW_STEP_SUCCESS being undefined"
href="http://llvm.org/bugs/show_bug.cgi?id=22202">22202</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>libunwind: build failure using libsdtd++ due to UNW_STEP_SUCCESS being undefined
</td>
</tr>
<tr>
<th>Product</th>
<td>libc++abi
</td>
</tr>
<tr>
<th>Version</th>
<td>unspecified
</td>
</tr>
<tr>
<th>Hardware</th>
<td>PC
</td>
</tr>
<tr>
<th>OS</th>
<td>All
</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>All Bugs
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>jeremyhu@apple.com
</td>
</tr>
<tr>
<th>CC</th>
<td>llvmbugs@cs.uiuc.edu, mclow.lists@gmail.com
</td>
</tr>
<tr>
<th>Classification</th>
<td>Unclassified
</td>
</tr></table>
<p>
<div>
<pre>Originally reported as one of the sub-issues of a MacPorts user failing to
compile ld64 on Leopard/ppc with current libunwind from libcxxabi-3.5.0
<a href="https://trac.macports.org/ticket/46519">https://trac.macports.org/ticket/46519</a>
:info:build
/opt/local/Developer/SDKs/Darwin9.sdk/usr/include/libunwind/DwarfInstructions.hpp:
In static member function ‘static int libunwind::DwarfInstructions<A,
R>::stepWithDwarf(A&, typename A::pint_t, typename A::pint_t, R&)’:
:info:build
/opt/local/Developer/SDKs/Darwin9.sdk/usr/include/libunwind/DwarfInstructions.hpp:209:
error: ‘UNW_STEP_SUCCESS’ was not declared in this scope
I am able to reproduce this on newer systems by trying to build ld64 against
libstdc++:
/usr/bin/clang++ -Os -O0 -g3 -stdlib=libstdc++ -stdlib=libstdc++ -arch x86_64
-I/opt/local/libexec/llvm-3.5/include -DLTO_SUPPORT -Isrc/abstraction -Isrc/ld
-I/opt/local/include -I/opt/local/Developer/SDKs/Darwin14.sdk/usr/include -c
-o src/other/ObjectDump.o src/other/ObjectDump.cpp
/usr/bin/clang++ -Os -O0 -g3 -stdlib=libstdc++ -stdlib=libstdc++ -arch x86_64
-I/opt/local/libexec/llvm-3.5/include -DLTO_SUPPORT -Isrc/abstraction -Isrc/ld
-I/opt/local/include -I/opt/local/Developer/SDKs/Darwin14.sdk/usr/include -c
-o src/ld/ld.o src/ld/ld.cpp
In file included from src/other/ObjectDump.cpp:31:
In file included from src/ld/MachOReaderRelocatable.hpp:43:
/opt/local/Developer/SDKs/Darwin14.sdk/usr/include/libunwind/DwarfInstructions.hpp:209:14:
error: use of undeclared identifier 'UNW_STEP_SUCCESS'; did you mean
'UNW_ESUCCESS'?
return UNW_STEP_SUCCESS;
^~~~~~~~~~~~~~~~
UNW_ESUCCESS</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>