<html>
    <head>
      <base href="https://llvm.org/bugs/" />
    </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 --- - error building clang with mingw-64 on windows"
   href="https://llvm.org/bugs/show_bug.cgi?id=23184">23184</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>error building clang with mingw-64 on windows
          </td>
        </tr>

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

        <tr>
          <th>Version</th>
          <td>trunk
          </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>C++
          </td>
        </tr>

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

        <tr>
          <th>Reporter</th>
          <td>timothy.wright.software@gmail.com
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>dgregor@apple.com, llvmbugs@cs.uiuc.edu
          </td>
        </tr>

        <tr>
          <th>Classification</th>
          <td>Unclassified
          </td>
        </tr></table>
      <p>
        <div>
        <pre>I pulled the latest svn repositories and did manage to build the same code with
Visual Studio. But I'm trying to use the YouCompleteMe plugin for vim, which
needs clang built with mingw64. The Visual Studio build did not work. Here is
the error. Not really sure how to continue.

command-line output

llvm[4]: Compiling Action.cpp for Release+Asserts build
llvm[4]: Compiling Compilation.cpp for Release+Asserts build
llvm[4]: Compiling CrossWindowsToolChain.cpp for Release+Asserts build
llvm[4]: Compiling Driver.cpp for Release+Asserts build
llvm[4]: Compiling DriverOptions.cpp for Release+Asserts build
llvm[4]: Compiling Job.cpp for Release+Asserts build
llvm[4]: Compiling MSVCToolChain.cpp for Release+Asserts build
In file included from c:\mingw64\x86_64-w64-mingw32\include\winnt.h:7681:0,
                 from c:\mingw64\x86_64-w64-mingw32\include\minwindef.h:146,
                 from c:\mingw64\x86_64-w64-mingw32\include\windef.h:8,
                 from c:\mingw64\x86_64-w64-mingw32\include\windows.h:69,
                 from c:/llvm-3.6/tools/clang/lib/Driver/MSVCToolChain.cpp:38:
c:\mingw64\x86_64-w64-mingw32\include\ktmtypes.h:88:9: error: declaration of
'UO
W _TRANSACTION_NOTIFICATION_RECOVERY_ARGUMENT::UOW' [-fpermissive]
     UOW UOW;
         ^
c:\mingw64\x86_64-w64-mingw32\include\ktmtypes.h:13:16: error: changes meaning
o
f 'UOW' from 'typedef GUID UOW' [-fpermissive]
   typedef GUID UOW,*PUOW;
                ^
In file included from c:\mingw64\x86_64-w64-mingw32\include\winnt.h:7681:0,
                 from c:\mingw64\x86_64-w64-mingw32\include\minwindef.h:146,
                 from c:\mingw64\x86_64-w64-mingw32\include\windef.h:8,
                 from c:\mingw64\x86_64-w64-mingw32\include\windows.h:69,
                 from c:/llvm-3.6/tools/clang/lib/Driver/MSVCToolChain.cpp:38:
c:\mingw64\x86_64-w64-mingw32\include\ktmtypes.h:132:9: error: declaration of
'U
OW _KCRM_TRANSACTION_BLOB::UOW' [-fpermissive]
     UOW UOW;
         ^
In file included from c:\mingw64\x86_64-w64-mingw32\include\winnt.h:7681:0,
                 from c:\mingw64\x86_64-w64-mingw32\include\minwindef.h:146,
                 from c:\mingw64\x86_64-w64-mingw32\include\windef.h:8,
                 from c:\mingw64\x86_64-w64-mingw32\include\windows.h:69,
                 from c:/llvm-3.6/tools/clang/lib/Driver/MSVCToolChain.cpp:38:
c:\mingw64\x86_64-w64-mingw32\include\ktmtypes.h:13:16: error: changes meaning
o
f 'UOW' from 'typedef GUID UOW' [-fpermissive]
   typedef GUID UOW,*PUOW;
                ^
/usr/bin/rm: cannot lstat
`/c/llvm/tools/clang/lib/Driver/Release+Asserts/MSVCTo
olChain.d.tmp': No such file or directory
make[4]: *** [/c/llvm/tools/clang/lib/Driver/Release+Asserts/MSVCToolChain.o]
Er
ror 1
make[4]: Leaving directory `/c/llvm/tools/clang/lib/Driver'
make[3]: *** [Driver/.makeall] Error 2
make[3]: Leaving directory `/c/llvm/tools/clang/lib'
make[2]: *** [all] Error 1
make[2]: Leaving directory `/c/llvm/tools/clang'
make[1]: *** [clang/.makeall] Error 2
make[1]: Leaving directory `/c/llvm/tools'
make: *** [all] Error 1</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>