<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=utf-8">
<meta name="Generator" content="Microsoft Word 14 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri","sans-serif";}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
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="EN-US" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">Here are a couple of representative errors.  C:\Dev\upstream\gitmono is where I keep my clone.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal">       "C:\Dev\upstream\gitmono\wbuild\ALL_BUILD.vcxproj" (Rebuild target) (1) -><o:p></o:p></p>
<p class="MsoNormal">       "C:\Dev\upstream\gitmono\wbuild\unittests\Support\DynamicLibrary\SecondLib.vcxproj" (default target) (170:2) -><o:p></o:p></p>
<p class="MsoNormal">         c1xx : fatal error C1083: Cannot open source file: 'C:\Dev\upstream\gitmono\llvm-project\llvm\unittests\Suppor<o:p></o:p></p>
<p class="MsoNormal">       t\DynamicLibrary\PipSqueak.cxx': No such file or directory [C:\Dev\upstream\gitmono\wbuild\unittests\Support\Dyn<o:p></o:p></p>
<p class="MsoNormal">       amicLibrary\SecondLib.vcxproj]<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">       "C:\Dev\upstream\gitmono\wbuild\ALL_BUILD.vcxproj" (Rebuild target) (1) -><o:p></o:p></p>
<p class="MsoNormal">       "C:\Dev\upstream\gitmono\wbuild\tools\llvm-mca\llvm-mca.vcxproj" (default target) (339:2) -><o:p></o:p></p>
<p class="MsoNormal">       (Link target) -><o:p></o:p></p>
<p class="MsoNormal">         Backend.obj : error LNK2019: unresolved external symbol "public: virtual bool __cdecl mca::FetchStage::isReady<o:p></o:p></p>
<p class="MsoNormal">       (void)const " (?isReady@FetchStage@mca@@UEBA_NXZ) referenced in function "public: void __cdecl mca::Backend::run<o:p></o:p></p>
<p class="MsoNormal">       (void)" (?run@Backend@mca@@QEAAXXZ) [C:\Dev\upstream\gitmono\wbuild\tools\llvm-mca\llvm-mca.vcxproj]<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><a name="_MailEndCompose"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></span></a></p>
<div style="border:none;border-left:solid blue 1.5pt;padding:0in 0in 0in 4.0pt">
<div>
<div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal"><b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">From:</span></b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif""> Valentin Churavy [mailto:v.churavy@gmail.com]
<br>
<b>Sent:</b> Wednesday, May 16, 2018 1:54 PM<br>
<b>To:</b> Robinson, Paul<br>
<b>Cc:</b> llvm-dev@lists.llvm.org<br>
<b>Subject:</b> Re: [llvm-dev] Windows build strangeness<o:p></o:p></span></p>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">What kind of missing symbols are you getting? <o:p></o:p></p>
<div>
<p class="MsoNormal" style="margin-bottom:12.0pt">I had to work around dependencies for a Mingw32 build. See
<a href="https://reviews.llvm.org/D44650">https://reviews.llvm.org/D44650</a><o:p></o:p></p>
<div>
<div>
<p class="MsoNormal">On Wed, May 16, 2018, 13:13 via llvm-dev <<a href="mailto:llvm-dev@lists.llvm.org">llvm-dev@lists.llvm.org</a>> wrote:<o:p></o:p></p>
</div>
<blockquote style="border:none;border-left:solid #CCCCCC 1.0pt;padding:0in 0in 0in 6.0pt;margin-left:4.8pt;margin-right:0in">
<p class="MsoNormal">I have the git monorepo, and Visual Studio 2015.  I am finding that<br>
running a build from the command line with msbuild (as a nightly job)<br>
invariably fails on the first try, and succeeds on a retry.<br>
<br>
The first msbuild command looks like this:<br>
<br>
msbuild ALL_BUILD.vcxproj /p:Configuration="RelWithDebInfo" /m:6 /t:Rebuild<br>
<br>
This appears to compile everything okay, but invariably fails with<br>
some set of link-time errors, reporting missing symbols.  Then I run <br>
msbuild again, but without the /t:Rebuild (thus it's a dirty build the <br>
second time) and this succeeds.<br>
<br>
Is there some inadequacy in the CMake dependencies somewhere, so that<br>
some links are trying to happen before the libraries are completely<br>
finished?  Or just an msbuild issue?<br>
<br>
I made my nightly script check for errors and run the second round,<br>
because it has been happening so consistently, but a proper build<br>
system shouldn't require such a workaround.<br>
<br>
For reference, I generated the sln/project files like this:<br>
<br>
cmake -G "Visual Studio 14 Win64" -Thost=x64 ^<br>
  -DLLVM_ENABLE_ASSERTIONS=ON -DLLVM_OPTIMIZED_TABLEGEN=ON ^<br>
  -DLLVM_ENABLE_PROJECTS="llvm;clang;clang-tools-extra" ^<br>
  ..\llvm-project\llvm<br>
<br>
(Yes I know the optimized tablegen comes from a separate tree,<br>
that's built separately and always works.  It's just the main<br>
build that fails.)<br>
<br>
Thanks,<br>
--paulr<br>
<br>
_______________________________________________<br>
LLVM Developers mailing list<br>
<a href="mailto:llvm-dev@lists.llvm.org" target="_blank">llvm-dev@lists.llvm.org</a><br>
<a href="http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev" target="_blank">http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev</a><o:p></o:p></p>
</blockquote>
</div>
</div>
</div>
</div>
</body>
</html>