[LLVMbugs] [Bug 21241] New: MSVCRT.lib(MSVCR120.dll) : error LNK2005: _free already defined in asan_malloc_w in.cc.obj when building ASAN with CMAKE_BUILD_TYPE=RelWithDebInfo

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Fri Oct 10 06:07:20 PDT 2014


http://llvm.org/bugs/show_bug.cgi?id=21241

            Bug ID: 21241
           Summary: MSVCRT.lib(MSVCR120.dll) : error LNK2005: _free
                    already defined in asan_malloc_w in.cc.obj when
                    building ASAN with CMAKE_BUILD_TYPE=RelWithDebInfo
           Product: clang
           Version: trunk
          Hardware: PC
                OS: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: -New Bugs
          Assignee: unassignedclangbugs at nondot.org
          Reporter: ehsan at mozilla.com
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified

I get this error when building clang-cl with ASAN on Windows with MSVC2013 like
this:

cmake -DCMAKE_BUILD_TYPE=RelWithDebInfo -DLLVM_TARGETS_TO_BUILD=X86 -GNinja
path\to\llvm

-- 
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/20141010/8d92062c/attachment.html>


More information about the llvm-bugs mailing list