<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 - Building with mingw-w64 crashes llvm-tblgen.exe"
   href="https://bugs.llvm.org/show_bug.cgi?id=33350">33350</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Building with mingw-w64 crashes llvm-tblgen.exe
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>clang
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>4.0
          </td>
        </tr>

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

        <tr>
          <th>OS</th>
          <td>Windows NT
          </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>unassignedclangbugs@nondot.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>mitchell@groundctl.com
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>llvm-bugs@lists.llvm.org
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Created <span class=""><a href="attachment.cgi?id=18589" name="attach_18589" title="llvm-tblgen dump">attachment 18589</a> <a href="attachment.cgi?id=18589&action=edit" title="llvm-tblgen dump">[details]</a></span>
llvm-tblgen dump

CMake is configured with

 "C:\Program Files (x86)\CMake\bin\cmake.exe" -G "MinGW Makefiles" -Wdev
-DCMAKE_BUILD_TYPE=Release -DLLVM_BUILD_TOOLS=OFF -DLLVM_INCLUDE_TOOLS=ON
-DLLVM_BUILD_EXAMPLES=OFF -DLLVM_INCLUDE_EXAMPLES=OFF -DLLVM_BUILD_TESTS=OFF
-DLLVM_INCLUDE_TESTS=OFF -DLLVM_TARGETS_TO_BUILD=X86
-DLLVM_ENABLE_ASSERTIONS=ON -DLLVM_TARGET_ARCH=i686-pc-mingw32 ../llvm

Resulting build crashes

[22:27:47][Step 2/3] 0x004F311A (0x0167FA48 0x00000003 0x00363858 0x00000020)
[22:27:47][Step 2/3] 0x050DFE78 (0x77C0E172 0x76D90100 0x00000000 0x00168B90)
<unknown module>
[22:27:47][Step 2/3] 0x77C0E40C (0x01AE19A8 0x004F87E0 0x00603954 0x00000000),
RtlInitUnicodeString() + 0x164 bytes(s)
[22:27:47][Step 2/3] 0x005DAAB1 (0x0000000B 0x01AE7FB0 0x01AE1D88 0x00000000)
[22:27:47][Step 2/3] 0x004013E2 (0x7EFDE000 0x0167FFD4 0x77C19902 0x7EFDE000)
[22:27:47][Step 2/3] 0x76CC336A (0x7EFDE000 0x1538F980 0x00000000 0x00000000),
BaseThreadInitThunk() + 0x12 bytes(s)
[22:27:47][Step 2/3] 0x77C19902 (0x004014E0 0x7EFDE000 0x00000000 0x00000000),
RtlInitializeExceptionChain() + 0x63 bytes(s)
[22:27:47][Step 2/3] 0x77C198D5 (0x004014E0 0x7EFDE000 0x00000000 0x00000000),
RtlInitializeExceptionChain() + 0x36 bytes(s)
[22:27:47][Step 2/3] mingw32-make.exe[3]: ***
[lib/Target/X86/X86GenSubtargetInfo.inc.tmp] Error -1073741819</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>