<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 --- - MSVC build failure: _recalloc redefinition in rt_asan"
href="https://llvm.org/bugs/show_bug.cgi?id=30329">30329</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>MSVC build failure: _recalloc redefinition in rt_asan
</td>
</tr>
<tr>
<th>Product</th>
<td>new-bugs
</td>
</tr>
<tr>
<th>Version</th>
<td>trunk
</td>
</tr>
<tr>
<th>Hardware</th>
<td>PC
</td>
</tr>
<tr>
<th>OS</th>
<td>Windows XP
</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>new bugs
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>HBBroeker@T-Online.de
</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>Git trunk source
CMake build with generator "MSVC 14 (Visual Studio 2015)"
Configuration "Debug", "Win32"
Build fails in subdir projects/compiler-rt/lib/asan,
target clang_rt.asan-dynamic-i386:
libucrt.lib(recalloc.obj) : error LNK2005: __recalloc already defined in
asan_malloc_win.obj
[C:\prg\llvm\bld_msvc\projects\compiler-rt\lib\asan\clang_rt.asan-dynamic-i386.vcxproj]
Creating library
C:/prg/llvm/bld_msvc/Debug/lib/clang/4.0.0/lib/windows/clang_rt.asan_dynamic-i386.lib
and object
C:/prg/llvm/bld_msvc/Debug/lib/clang/4.0.0/lib/windows/clang_rt.asan_dynamic-i386.exp
C:\prg\llvm\bld_msvc\Debug\lib\clang\4.0.0\lib\windows\clang_rt.asan_dynamic-i386.dll
: fatal error LNK1169: one or more multiply defined symbols found
[C:\prg\llvm\bld_msvc\projects\compiler-rt\lib\asan\clang_rt.asan-dynamic-i386.vcxproj]
Der Befehl wurde mit dem Code 1169 beendet.
Die Ausführung der Link-Aufgabe ist abgeschlossen -- FEHLER.
Die Erstellung des Ziels "Link" im Projekt "clang_rt.asan-dynamic-i386.vcxproj"
ist abgeschlossen -- FEHLER.
This definition in projects/compiler-rt/lib/asan/asan_malloc_win.cc::118
void *_recalloc(void *p, size_t n, size_t elem_size) {
collides with an existing standard library function of MSVC (declared in
<corecrt_malloc.h>, defined by libucrt.dll).</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>