<html>
  <head>
    <meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    Hi Reid,<br>
    <br>
    I copied the x64 toolsets by hand; they got installed to C:\Program
    Files (x86)\LLVM\tools\msbuild\x64; they just didn't get moved
    correctly by install.bat.<br>
    <br>
    I just verified that the LLVM-vs2013 toolset.props is correct.<br>
    <br>
    If it is a bitness problem, perhaps I'm failing to define something
    correctly?<br>
    <br>
    Regards,<br>
    Eric<br>
    <br>
    <div class="moz-cite-prefix">On 9/30/14, 11:29 AM, Reid Kleckner
      wrote:<br>
    </div>
    <blockquote
cite="mid:CACs=tyJqC2gxDtTNO_GBDOTFmBE1bf_M9NScZDpVMfUtREBt_Q@mail.gmail.com"
      type="cite">
      <div dir="ltr">This looks like some kind of bitness conflict. If
        you are building for win64, are you sure clang is getting the
        -m64 argument?
        <div><br>
        </div>
        <div>I recall that you copied the win32 platform toolset xml
          files over by hand, and I don't think they will have the
          correct flags. If you see this line in the x64 toolset.props
          file, replace -m32 with -m64 and try again:</div>
        <div><AdditionalOptions>-m32 -fmsc-version=1700
          %(AdditionalOptions)</AdditionalOptions><br>
        </div>
        <div><br>
        </div>
        <div>In the meantime, I think Hans is trying to fix the
          installation of those xml files and hopefully that will fix
          issues for other users going forwards.</div>
      </div>
      <div class="gmail_extra"><br>
        <div class="gmail_quote">On Tue, Sep 30, 2014 at 1:55 PM, Eric
          Mader <span dir="ltr"><<a moz-do-not-send="true"
              href="mailto:emader@gmx.us" target="_blank">emader@gmx.us</a>></span>
          wrote:<br>
          <blockquote class="gmail_quote" style="margin:0 0 0
            .8ex;border-left:1px #ccc solid;padding-left:1ex">
            <div bgcolor="#FFFFFF" text="#000000"> I'm getting compile
              errors because size_t is getting redefined. My "forced
              include file" starts with:<br>
              <br>
              <font face="Courier New, Courier, monospace">#if
                BUILDING_FOR_WINDOWS<br>
                #define NOMINMAX<br>
                <br>
                /* deal with the fact that windef.h also defines BOOL */<br>
                #define BOOL WINBOOL<br>
                <br>
                #include <windows.h><br>
                #include <intrin.h><br>
                <br>
                #undef BOOL<br>
                #endif<br>
              </font><br>
              Looking at the preprocessor expansion of a typical .cpp
              file, I see that crtdefs.h defines size_t like this:<br>
              <br>
              <font face="Courier New, Courier, monospace">typedef
                unisgned __int64 size_t;<br>
              </font><br>
              Later on, <LLVM>\lib\clang\3.6.0\includes\stddef.h
              defines it as:<br>
              <br>
              <font face="Courier New, Courier, monospace">typedef
                unsigned int size_t;<br>
              </font><br>
              Is there some other magic I need to do to get these to
              work?<br>
              <br>
              I'm also seeing a bunch of errors like this having to do
              with intrinsics:<br>
              <br>
              <font face="Courier New, Courier, monospace">1>  In
                file included from C:\Program Files (x86)\Microsoft
                Visual Studio 12.0\VC\include\algorithm:6:<br>
                1>  In file included from C:\Program Files
                (x86)\Microsoft Visual Studio 12.0\VC\include\xmemory:6:<br>
                1>  In file included from C:\Program Files
                (x86)\Microsoft Visual Studio
                12.0\VC\include\xmemory0:909:<br>
                1>  In file included from C:\Program Files
                (x86)\LLVM\msbuild-bin\..\lib\clang\3.6.0\include\intrin.h:34:<br>
                1>  In file included from C:\Program Files
                (x86)\LLVM\msbuild-bin\..\lib\clang\3.6.0\include\x86intrin.h:29:<br>
                1>  In file included from C:\Program Files
                (x86)\LLVM\msbuild-bin\..\lib\clang\3.6.0\include\immintrin.h:28:<br>
                1>C:\Program Files
                (x86)\LLVM\msbuild-bin\..\lib\clang\3.6.0\include\mmintrin.h(52,40):
                error : cannot initialize a parameter of type
                '__attribute__((__vector_size__(2 * sizeof(int)))) int'
                (vector of 2 'int' values) with an rvalue of type
                '__v2si' (aka 'int')<br>
                1>      return
                __builtin_ia32_vec_ext_v2si((__v2si)__m, 0);<br>
                1>                                        
                ^~~~~~~~~~~<br>
              </font><br>
              I suspect that these might be caused by the same thing as
              the size_t problem...<br>
              <br>
              Regards,<br>
              Eric Mader<br>
              <br>
              <br>
              <br>
            </div>
            <br>
            _______________________________________________<br>
            LLVM Developers mailing list<br>
            <a moz-do-not-send="true" href="mailto:LLVMdev@cs.uiuc.edu">LLVMdev@cs.uiuc.edu</a> 
                   <a moz-do-not-send="true"
              href="http://llvm.cs.uiuc.edu" target="_blank">http://llvm.cs.uiuc.edu</a><br>
            <a moz-do-not-send="true"
              href="http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev"
              target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev</a><br>
            <br>
          </blockquote>
        </div>
        <br>
      </div>
    </blockquote>
    <br>
  </body>
</html>