<html>
    <head>
      <base href="https://bugs.llvm.org/">
    </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 - '/failifmismatch: mismatch detected: MD_DynamicRelease and MT_StaticRelease' error is not very helpful"
   href="https://bugs.llvm.org/show_bug.cgi?id=38579">38579</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>'/failifmismatch: mismatch detected: MD_DynamicRelease and MT_StaticRelease' error is not very helpful
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>lld
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>unspecified
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>PC
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>All
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>enhancement
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>P
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>COFF
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>unassignedbugs@nondot.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>tom@ritter.vg
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>llvm-bugs@lists.llvm.org
          </td>
        </tr></table>
      <p>
        <div>
        <pre>While building Firefox with CFI icall on Windows, I encountered this error:

<span class="quote">> 49:24.06 c:/mozilla-unified-2/build/build-clang/build-clang-339310/build/stage3/clang/bin/lld-link.exe -NOLOGO -DLL -OUT:mozglue.dll -PDB:mozglue.pdb -SUBSYSTEM:WINDOWS,6.01 -MACHINE:X64 @c:/mozilla-unified-2/obj-x86_64-pc-mingw32/mozglue/build/mozglue_dll.list ./module.res -fsanitize=cfi-icall -fsanitize-cfi-icall-generalize-pointers -fsanitize-blacklist=c:/mozilla-unified-2/build/sanitizers/cfi_suppressions.txt -fno-sanitize-trap=cfi -LARGEADDRESSAWARE -NXCOMPAT -DYNAMICBASE -DEBUG -DEBUGTYPE:CV -DEBUG -OPT:REF,ICF -DEF:mozglue.def -DELAYLOAD:user32.dll -DELAYLOAD:crypt32.dll -DELAYLOAD:wintrust.dll        kernel32.lib user32.lib gdi32.lib winmm.lib wsock32.lib advapi32.lib secur32.lib dbghelp.lib crypt32.lib version.lib wintrust.lib delayimp.lib
> 49:24.08 lld-link.exe: error: /failifmismatch: mismatch detected: MD_DynamicRelease and MT_StaticRelease for key RuntimeLibrary</span >

I dug into it and determined that all the object files in my .list file were
compiled with -MD so it's very unclear what the conflict is.  

It would be very helpful if this error message output the conflicting libraries
(any two conflicting libraries would work, since the error is definitely with
one of them.)</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>