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: unassignedb...@nondot.org Reporter: hbbroe...@t-online.de CC: llvm-bugs@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.
_______________________________________________ llvm-bugs mailing list llvm-bugs@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs