<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 --- - asan does not compile on OS X due to change in asan_allocator.h"
href="http://llvm.org/bugs/show_bug.cgi?id=21392">21392</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>asan does not compile on OS X due to change in asan_allocator.h
</td>
</tr>
<tr>
<th>Product</th>
<td>compiler-rt
</td>
</tr>
<tr>
<th>Version</th>
<td>unspecified
</td>
</tr>
<tr>
<th>Hardware</th>
<td>Macintosh
</td>
</tr>
<tr>
<th>OS</th>
<td>MacOS X
</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>compiler-rt
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>jonathan.sauer@gmx.de
</td>
</tr>
<tr>
<th>CC</th>
<td>llvmbugs@cs.uiuc.edu, vonosmas@gmail.com
</td>
</tr>
<tr>
<th>Classification</th>
<td>Unclassified
</td>
</tr></table>
<p>
<div>
<pre>A clean checkout of LLVM/clang/compiler-rt r220671 does not compile on OS X:
/Users/rynnsauer/LLVM/llvm/projects/compiler-rt/lib/asan/asan_mac.cc:302:31:
error: no matching function for
call to 'asan_malloc'
(asan_block_context_t*) asan_malloc(sizeof(asan_block_context_t), stack);
^~~~~~~~~~~
/Users/rynnsauer/LLVM/llvm/projects/compiler-rt/lib/asan/asan_allocator.h:148:7:
note: candidate function not
viable: cannot convert from base class pointer '__sanitizer::StackTrace
*' to derived class pointer
'__sanitizer::BufferedStackTrace *' for 2nd argument
void *asan_malloc(uptr size, BufferedStackTrace *stack);
^
1 error generated.
This seams to have been introduced in r220635:
This change splits __sanitizer::StackTrace class into a lightweight
__sanitizer::StackTrace, which doesn't own array of PCs, and
BufferedStackTrace,
which owns it. This would allow us to simplify the interface of StackDepot,
and eventually merge __sanitizer::StackTrace with __tsan::StackTrace.
(cc-ing Alexey Samsonov who committed r220635)</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>