<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;}
/* 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;}
span.E-MailFormatvorlage17
{mso-style-type:personal-compose;
font-family:"Calibri",sans-serif;
color:windowtext;}
.MsoChpDefault
{mso-style-type:export-only;
font-family:"Calibri",sans-serif;
mso-fareast-language:EN-US;}
@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">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>
</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>