[llvm-bugs] [Bug 30329] New: MSVC build failure: _recalloc redefinition in rt_asan

via llvm-bugs llvm-bugs at lists.llvm.org
Thu Sep 8 11:29:42 PDT 2016


https://llvm.org/bugs/show_bug.cgi?id=30329

            Bug ID: 30329
           Summary: MSVC build failure: _recalloc redefinition in rt_asan
           Product: new-bugs
           Version: trunk
          Hardware: PC
                OS: Windows XP
            Status: NEW
          Severity: normal
          Priority: P
         Component: new bugs
          Assignee: unassignedbugs at nondot.org
          Reporter: HBBroeker at T-Online.de
                CC: llvm-bugs at lists.llvm.org
    Classification: Unclassified

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).

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20160908/beda7488/attachment-0001.html>


More information about the llvm-bugs mailing list