What kind of missing symbols are you getting? <div>I had to work around dependencies for a Mingw32 build. See <a href="https://reviews.llvm.org/D44650">https://reviews.llvm.org/D44650</a><br><br><div class="gmail_quote"><div dir="ltr">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:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">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" rel="noreferrer" target="_blank">http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev</a><br>
</blockquote></div></div>