<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Consolas;
        panose-1:2 11 6 9 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;
        mso-fareast-language:EN-US;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:#0563C1;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:#954F72;
        text-decoration:underline;}
p
        {mso-style-priority:99;
        mso-margin-top-alt:auto;
        margin-right:0cm;
        mso-margin-bottom-alt:auto;
        margin-left:0cm;
        font-size:12.0pt;
        font-family:"Times New Roman",serif;}
pre
        {mso-style-priority:99;
        mso-style-link:"HTML Vorformatiert Zchn";
        margin:0cm;
        margin-bottom:.0001pt;
        font-size:10.0pt;
        font-family:"Courier New";}
span.HTMLVorformatiertZchn
        {mso-style-name:"HTML Vorformatiert Zchn";
        mso-style-priority:99;
        mso-style-link:"HTML Vorformatiert";
        font-family:Consolas;
        mso-fareast-language:EN-US;}
span.E-MailFormatvorlage20
        {mso-style-type:personal;
        font-family:"Calibri",sans-serif;
        color:windowtext;}
span.E-MailFormatvorlage21
        {mso-style-type:personal;
        font-family:"Calibri",sans-serif;
        color:#1F497D;}
span.E-MailFormatvorlage22
        {mso-style-type:personal-reply;
        font-family:"Calibri",sans-serif;
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:70.85pt 70.85pt 2.0cm 70.85pt;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="DE" link="#0563C1" vlink="#954F72">
<div class="WordSection1">
<p class="MsoNormal"><span style="color:#1F497D">Hi once more,<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">ok, this is my final attempt to get some feedback. In the meantime, I have performed another try to build clang plus tooling, this time following the official documentation at
<a href="https://urldefense.proofpoint.com/v2/url?u=http-3A__clang.llvm.org_get-5Fstarted.html&d=AwMFAg&c=8hUWFZcy2Z-Za5rBPlktOQ&r=HkOpO_AvqLiQRhM4TkA0OAkVFWLZciHjAvQWQb25mkU&m=hmKSNragWR6WhGJhzmmrDZizi3pzd9EugBbyxNVuQU4&s=C9ztWFet8QoAE2KA86f3DeHDhr7-_YDvf4RF7DGb-zY&e=">http://clang.llvm.org/get_started.html</a> - however, CMake fails due to several missing include files (due to the lack of any response on this mailing list, I save you and me the time of adding the error log
 to my mail). I have also discovered <a href="https://urldefense.proofpoint.com/v2/url?u=http-3A__llvm.org_releases_&d=AwMFAg&c=8hUWFZcy2Z-Za5rBPlktOQ&r=HkOpO_AvqLiQRhM4TkA0OAkVFWLZciHjAvQWQb25mkU&m=hmKSNragWR6WhGJhzmmrDZizi3pzd9EugBbyxNVuQU4&s=VrtDcf7rBHLYeSG2sreejdg97oCwvHkTiCzgfBSnKSA&e=">http://llvm.org/releases/</a> , where Windows distributions are available, but they do not seem to contain the static analyzer at all. I’m tempted to think that building the static analyzer
 on Windows is not possible or at least very difficult – otherwise, why should it be missing in the official distributions?<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">Therefore, my last question (which is probably mostly directed to the moderators of this list) is: Am I asking at the right place? I chose this mailing list since I do not want to develop the static analyzer,
 I just want to use it…<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">All the best<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">Christian<o:p></o:p></span></p>
<p class="MsoNormal"><i><span style="color:black;mso-fareast-language:DE"><o:p> </o:p></span></i></p>
<p class="MsoNormal"><o:p> </o:p></p>
<div>
<div style="border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0cm 0cm 0cm">
<p class="MsoNormal"><b><span style="mso-fareast-language:DE">Von:</span></b><span style="mso-fareast-language:DE"> cfe-users-bounces@cs.uiuc.edu [mailto:cfe-users-bounces@cs.uiuc.edu]
<b>Im Auftrag von </b>christian.soltenborn@connext.de<br>
<b>Gesendet:</b> Freitag, 10. Juli 2015 11:41<br>
<b>An:</b> cfe-users@cs.uiuc.edu<br>
<b>Betreff:</b> Re: [cfe-users] Building clang's static analyzer on Windows<o:p></o:p></span></p>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><span style="color:#1F497D">Hi again,<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">no answer so far, so let me rephrase my question: Has anybody managed to build a recent version of the static analyzer for Windows platforms? If this is the case, would she or he be willing to share the executable
 with me?<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">Thanks in advance,<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">Christian<o:p></o:p></span></p>
<p class="MsoNormal"><i><span style="color:black;mso-fareast-language:DE"><o:p> </o:p></span></i></p>
<p class="MsoNormal"><o:p> </o:p></p>
<div>
<div style="border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0cm 0cm 0cm">
<p class="MsoNormal"><b><span style="mso-fareast-language:DE">Von:</span></b><span style="mso-fareast-language:DE">
<a href="mailto:cfe-users-bounces@cs.uiuc.edu">cfe-users-bounces@cs.uiuc.edu</a> [<a href="mailto:cfe-users-bounces@cs.uiuc.edu">mailto:cfe-users-bounces@cs.uiuc.edu</a>]
<b>Im Auftrag von </b><a href="mailto:christian.soltenborn@connext.de">christian.soltenborn@connext.de</a><br>
<b>Gesendet:</b> Montag, 6. Juli 2015 15:12<br>
<b>An:</b> <a href="mailto:cfe-users@cs.uiuc.edu">cfe-users@cs.uiuc.edu</a><br>
<b>Betreff:</b> [cfe-users] Building clang's static analyzer on Windows<o:p></o:p></span></p>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Hi everybody,<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><span style="color:black;mso-fareast-language:DE">I’d like to evaluate the usage of Clang’s static analyzer on our C++ code. However, there do not seem to be pre-compiled binaries (why? Too early in the project’s lifecycle?), so I tried
 to build it myself, following the advice from here:<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:black;mso-fareast-language:DE"><o:p> </o:p></span></p>
<p class="MsoNormal"><a href="https://urldefense.proofpoint.com/v2/url?u=http-3A__pete.akeo.ie_2011_10_building-2Dand-2Drunning-2Dclang-2Dstatic.html&d=AwMFAg&c=8hUWFZcy2Z-Za5rBPlktOQ&r=HkOpO_AvqLiQRhM4TkA0OAkVFWLZciHjAvQWQb25mkU&m=YOgcLuzMOaZaWTkMaj1C3ZsG_yi5qcHmWUkq4Qz2-_Y&s=bX1eNsBfjAL6AkX6sF9ITk3lJP4m0ZyRj5pucEIdvsE&e=">http://pete.akeo.ie/2011/10/building-and-running-clang-static.html</a><o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">This works fine until issuing make in step 5 of the process, where I’m running into compile problems. Below’s the output of my compilation attempt – does anybody have an idea on what’s going on here?<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Thanks in advance,<o:p></o:p></p>
<p class="MsoNormal">Christian<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Output of make:<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">make[1]: Entering directory `/src/build/lib/Support'<o:p></o:p></p>
<p class="MsoNormal">llvm[1]: Compiling APFloat.cpp for Release+Asserts build<o:p></o:p></p>
<p class="MsoNormal">llvm[1]: Compiling APInt.cpp for Release+Asserts build<o:p></o:p></p>
<p class="MsoNormal">llvm[1]: Compiling APSInt.cpp for Release+Asserts build<o:p></o:p></p>
<p class="MsoNormal">llvm[1]: Compiling ARMBuildAttrs.cpp for Release+Asserts build<o:p></o:p></p>
<p class="MsoNormal">llvm[1]: Compiling ARMWinEH.cpp for Release+Asserts build<o:p></o:p></p>
<p class="MsoNormal">llvm[1]: Compiling Allocator.cpp for Release+Asserts build<o:p></o:p></p>
<p class="MsoNormal">llvm[1]: Compiling Atomic.cpp for Release+Asserts build<o:p></o:p></p>
<p class="MsoNormal">llvm[1]: Compiling BlockFrequency.cpp for Release+Asserts build<o:p></o:p></p>
<p class="MsoNormal">llvm[1]: Compiling BranchProbability.cpp for Release+Asserts build<o:p></o:p></p>
<p class="MsoNormal">llvm[1]: Compiling COM.cpp for Release+Asserts build<o:p></o:p></p>
<p class="MsoNormal">llvm[1]: Compiling CommandLine.cpp for Release+Asserts build<o:p></o:p></p>
<p class="MsoNormal">llvm[1]: Compiling Compression.cpp for Release+Asserts build<o:p></o:p></p>
<p class="MsoNormal">llvm[1]: Compiling ConvertUTF.c for Release+Asserts build<o:p></o:p></p>
<p class="MsoNormal">llvm[1]: Compiling ConvertUTFWrapper.cpp for Release+Asserts build<o:p></o:p></p>
<p class="MsoNormal">llvm[1]: Compiling CrashRecoveryContext.cpp for Release+Asserts build<o:p></o:p></p>
<p class="MsoNormal">llvm[1]: Compiling DAGDeltaAlgorithm.cpp for Release+Asserts build<o:p></o:p></p>
<p class="MsoNormal">llvm[1]: Compiling DataExtractor.cpp for Release+Asserts build<o:p></o:p></p>
<p class="MsoNormal">llvm[1]: Compiling DataStream.cpp for Release+Asserts build<o:p></o:p></p>
<p class="MsoNormal">llvm[1]: Compiling Debug.cpp for Release+Asserts build<o:p></o:p></p>
<p class="MsoNormal">llvm[1]: Compiling DeltaAlgorithm.cpp for Release+Asserts build<o:p></o:p></p>
<p class="MsoNormal">llvm[1]: Compiling Dwarf.cpp for Release+Asserts build<o:p></o:p></p>
<p class="MsoNormal">llvm[1]: Compiling DynamicLibrary.cpp for Release+Asserts build<o:p></o:p></p>
<p class="MsoNormal">In file included from D:/Clang/msys/1.0/src/llvm/lib/Support/DynamicLibrary.cpp:40:0:<o:p></o:p></p>
<p class="MsoNormal">D:/Clang/msys/1.0/src/llvm/lib/Support/Windows/DynamicLibrary.inc:34:56: error: 'PENUMLOADED_MODULES_CALLBACK64' has not been declared<o:p></o:p></p>
<p class="MsoNormal">typedef BOOL (WINAPI *fpEnumerateLoadedModules)(HANDLE,PENUMLOADED_MODULES_CALLBACK64,PVOID);<o:p></o:p></p>
<p class="MsoNormal">                                                        ^<o:p></o:p></p>
<p class="MsoNormal">D:/Clang/msys/1.0/src/llvm/lib/Support/Windows/DynamicLibrary.inc: In static member function 'static llvm::sys::DynamicLibrary llvm::sys::DynamicLibrary::getPermanentLibrary(const char*, std::string*)':<o:p></o:p></p>
<p class="MsoNormal">D:/Clang/msys/1.0/src/llvm/lib/Support/Windows/DynamicLibrary.inc:70:65: error: invalid conversion from 'BOOL (__attribute__((__stdcall__)) *)(PSTR, DWORD64, ULONG, PVOID) {aka int (__attribute__((__stdcall__)) *)(char*, long long unsigned
 int, long unsigned int, void*)}' to 'int' [-fpermissive]<o:p></o:p></p>
<p class="MsoNormal">     fEnumerateLoadedModules(GetCurrentProcess(), ELM_Callback, 0);<o:p></o:p></p>
<p class="MsoNormal">                                                                 ^<o:p></o:p></p>
<p class="MsoNormal">/bin/rm: cannot lstat `/usr/src/build/lib/Support/Release+Asserts/DynamicLibrary.d.tmp': No such file or directory<o:p></o:p></p>
<p class="MsoNormal">make[1]: *** [/usr/src/build/lib/Support/Release+Asserts/DynamicLibrary.o] Error 1<o:p></o:p></p>
<p class="MsoNormal">make[1]: Leaving directory `/src/build/lib/Support'<o:p></o:p></p>
<p class="MsoNormal">make: *** [all] Error 1<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<pre><o:p> </o:p></pre>
<pre>E-Mail-Info:<o:p></o:p></pre>
<pre>Connext Communication GmbH<o:p></o:p></pre>
<pre>Balhorner Feld 11<o:p></o:p></pre>
<pre>D-33106 Paderborn<o:p></o:p></pre>
<pre>Geschaeftsfuehrer Joerg Kesselmeier<o:p></o:p></pre>
<pre>AG Paderborn HRB 1984<o:p></o:p></pre>
<pre>Ust-ID:DE126329091<o:p></o:p></pre>
<pre><o:p> </o:p></pre>
<pre>E-Mail-Info:<o:p></o:p></pre>
<pre>Connext Communication GmbH  <o:p></o:p></pre>
<pre>Balhorner Feld 11<o:p></o:p></pre>
<pre>D-33106 Paderborn<o:p></o:p></pre>
<pre>Geschaeftsfuehrer Joerg Kesselmeier <o:p></o:p></pre>
<pre>AG Paderborn HRB 1984<o:p></o:p></pre>
<pre>Ust-ID:DE126329091<o:p></o:p></pre>
</div>

<p><pre>
E-Mail-Info:
Connext Communication GmbH
Balhorner Feld 11
D-33106 Paderborn
Geschaeftsfuehrer Joerg Kesselmeier
AG Paderborn HRB 1984
Ust-ID:DE126329091
</pre></p>
</body>
</html>