<html>
  <head>
    <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    Just to chip in on this thread.<br>
    I regularly build X64 LLDB using Visual Studio, but I only use it
    for debugging remote targets.<br>
    I have noticed the gtests linking error, but unfortunately due to
    tight time constraints I've not been free to fix it.<br>
    I tend to 'unload' all of the projects in Visual Studio that are not
    directly related to building LLDB, so I don't see the linking error
    often.  Also since its not a direct dependency, LLDB still builds
    fine for me.<br>
    <br>
    Fixes are always nice however :)<br>
    <br>
    Last I checked I was able to build LLDB in VS2013 as well as VS2015
    without problems.<br>
    <br>
    <div class="moz-cite-prefix">On 11/01/2016 18:48, Zachary Turner via
      lldb-dev wrote:<br>
    </div>
    <blockquote
cite="mid:CAAErz9hnrayLydLiz=B9kK_yvO4uFXBrcLLZRtRkjtTtC=JApg@mail.gmail.com"
      type="cite">
      <div dir="ltr">Yea, unfortunately the way things work is that the
        person who is affected by the problem and who needs it fixed is
        usually the one that needs to fix it.  Right now we don't have
        any Windows people building inside Visual Studio, so nobody has
        fixed that.  But you're welcome to submit a patch :)
        <div><br>
        </div>
        <div>FWIW, I actually generate CMake twice, into two separate
          folders.  I have build/vs and build/ninja.  In the vs
          directory I generate using "Visual Studio 14 2015" generator,
          and in ninja I generate using Ninja generator.  I build from
          the Ninja folder, and I use the vs folder just for opening a
          solution, source browsing, and debugging (i.e. change the
          Debugger settings to point the executable into the ninja
          folder).</div>
        <div><br>
        </div>
        <div>This way you still do everything from vs, just not the
          compile step.</div>
      </div>
      <br>
      <div class="gmail_quote">
        <div dir="ltr">On Mon, Jan 11, 2016 at 9:16 AM Red Skotina <<a
            moz-do-not-send="true" href="mailto:red.skotina@gmail.com"><a class="moz-txt-link-abbreviated" href="mailto:red.skotina@gmail.com">red.skotina@gmail.com</a></a>>
          wrote:<br>
        </div>
        <blockquote class="gmail_quote" style="margin:0 0 0
          .8ex;border-left:1px #ccc solid;padding-left:1ex">
          <div dir="ltr">thanks. i build successefuly llvm and lldb with
            ninja and cl compiler.
            <div><span style="font-size:12.8px"><br>
              </span></div>
            <div><span style="font-size:12.8px">If i build VS solution
                without options on CMake then i have ever more errors
                around unittests in llvm. </span></div>
            <div><span style="font-size:12.8px"><br>
              </span></div>
            <div><span style="font-size:12.8px">like that:</span></div>
          </div>
          <div dir="ltr">
            <div><span style="font-size:12.8px"><br>
              </span></div>
            <div><span style="font-size:12.8px">"d:\code\llvm\build\LLVM.sln"
                (целевой объект по умолчанию) (1) -></span></div>
          </div>
          <div dir="ltr">
            <div><span style="font-size:12.8px">"d:\code\llvm\build\unittests\ADT\ADTTests.vcxproj.metaproj"
                (целевой объект по</span></div>
            <div><span style="font-size:12.8px"> умолчанию) (749) -></span></div>
            <div><span style="font-size:12.8px">"d:\code\llvm\build\unittests\ADT\ADTTests.vcxproj"
                (целевой объект по умолчани</span></div>
            <div><span style="font-size:12.8px">ю) (750) -></span></div>
            <div><span style="font-size:12.8px">(Целевой объект
                ClCompile) -></span></div>
            <div><span style="font-size:12.8px"> 
                D:\code\llvm\llvm\include\llvm/ADT/PointerEmbeddedInt.h(33):
                error C2327: 'll</span></div>
            <div><span style="font-size:12.8px">vm::PointerEmbeddedInt<IntT,Bits>::Value':
                is not a type name, static, or enume</span></div>
            <div><span style="font-size:12.8px">rator (compiling source
                file D:\code\llvm\llvm\unittests\ADT\PointerEmbeddedInt</span></div>
            <div><span style="font-size:12.8px">Test.cpp)
                [d:\code\llvm\build\unittests\ADT\ADTTests.vcxproj]</span></div>
            <div><span style="font-size:12.8px"> 
                D:\code\llvm\llvm\include\llvm/ADT/PointerEmbeddedInt.h(33):
                error C2065: 'Va</span></div>
            <div><span style="font-size:12.8px">lue': undeclared
                identifier (compiling source file
                D:\code\llvm\llvm\unittests\</span></div>
            <div><span style="font-size:12.8px">ADT\PointerEmbeddedIntTest.cpp)
                [d:\code\llvm\build\unittests\ADT\ADTTests.vcxp</span></div>
            <div><span style="font-size:12.8px">roj]</span></div>
            <div><span style="font-size:12.8px"> 
                D:\code\llvm\llvm\include\llvm/ADT/PointerEmbeddedInt.h(33):
                error C2327: 'll</span></div>
            <div><span style="font-size:12.8px">vm::PointerEmbeddedInt<int,8>::Value':
                is not a type name, static, or enumerato</span></div>
            <div><span style="font-size:12.8px">r (compiling source file
                D:\code\llvm\llvm\unittests\ADT\PointerEmbeddedIntTest</span></div>
            <div><span style="font-size:12.8px">.cpp)
                [d:\code\llvm\build\unittests\ADT\ADTTests.vcxproj]</span></div>
            <div><span style="font-size:12.8px"> 
                D:\code\llvm\llvm\include\llvm/ADT/PointerEmbeddedInt.h(34):
                error C2338: Can</span></div>
            <div><span style="font-size:12.8px">not embed more bits than
                we have in a pointer! (compiling source file D:\code\l</span></div>
            <div><span style="font-size:12.8px">lvm\llvm\unittests\ADT\PointerEmbeddedIntTest.cpp)
                [d:\code\llvm\build\unittest</span></div>
            <div><span style="font-size:12.8px">s\ADT\ADTTests.vcxproj]</span></div>
            <div><span style="font-size:12.8px"> 
                D:\code\llvm\llvm\include\llvm/ADT/PointerEmbeddedInt.h(39):
                error C2327: 'll</span></div>
            <div><span style="font-size:12.8px">vm::PointerEmbeddedInt<int,8>::Value':
                is not a type name, static, or enumerato</span></div>
            <div><span style="font-size:12.8px">r (compiling source file
                D:\code\llvm\llvm\unittests\ADT\PointerEmbeddedIntTest</span></div>
            <div><span style="font-size:12.8px">.cpp)
                [d:\code\llvm\build\unittests\ADT\ADTTests.vcxproj]</span></div>
            <div><span style="font-size:12.8px"> 
                D:\code\llvm\llvm\include\llvm/ADT/PointerEmbeddedInt.h(39):
                error C2065: 'Va</span></div>
            <div><span style="font-size:12.8px">lue': undeclared
                identifier (compiling source file
                D:\code\llvm\llvm\unittests\</span></div>
            <div><span style="font-size:12.8px">ADT\PointerEmbeddedIntTest.cpp)
                [d:\code\llvm\build\unittests\ADT\ADTTests.vcxp</span></div>
            <div><span style="font-size:12.8px">roj]</span></div>
            <div><span style="font-size:12.8px"> </span></div>
          </div>
          <div class="gmail_extra"><br>
            <div class="gmail_quote">2016-01-11 0:56 GMT+03:00 Zachary
              Turner <span dir="ltr"><<a moz-do-not-send="true"
                  href="mailto:zturner@google.com" target="_blank">zturner@google.com</a>></span>:<br>
              <blockquote class="gmail_quote" style="margin:0 0 0
                .8ex;border-left:1px #ccc solid;padding-left:1ex">
                <div dir="ltr">I have never built
                  with -DLLVM_INCLUDE_TESTS=OFF
                  -DCLANG_INCLUDE_EXAMPLES=OFF -DCLANG_INCLUDE_TESTS=OFF
                  before, so that could be related.  Can you try
                  removing those options on CMake to see if that fixes
                  it?
                  <div><br>
                  </div>
                  <div>The other thing I do differently is I use ninja
                    generator.  So I use -G Ninja instead of -G "Visual
                    Studio 14 2015".  Building from within Visual Studio
                    like you're doing is supposed to work, I just don't
                    know if anyone tests it.  My command line is
                    usually:</div>
                  <div><br>
                  </div>
                  <div>cmake -G Ninja  -DCMAKE_BUILD_TYPE=Release
                    -DPYTHON_HOME=<absolute path to python\x86 from
                    dest variable> ..\llvm<br>
                  </div>
                  <div><br>
                  </div>
                  <div>ninja</div>
                  <div><br>
                  </div>
                </div>
                <div>
                  <div><br>
                    <div class="gmail_quote">
                      <div dir="ltr">On Sun, Jan 10, 2016 at 4:02 AM Red
                        Skotina <<a moz-do-not-send="true"
                          href="mailto:red.skotina@gmail.com"
                          target="_blank">red.skotina@gmail.com</a>>
                        wrote:<br>
                      </div>
                      <blockquote class="gmail_quote" style="margin:0 0
                        0 .8ex;border-left:1px #ccc
                        solid;padding-left:1ex">
                        <div dir="ltr">thanks.
                          <div>i still have 5 errors while linking</div>
                        </div>
                        <div dir="ltr">
                          <div>
                            <div>"d:\code\llvm\build\LLVM.sln" (целевой
                              объект по умолчанию) (1) -></div>
                          </div>
                        </div>
                        <div dir="ltr">
                          <div>
                            <div>"d:\code\llvm\build\tools\lldb\unittests\LLDBUnitTests.vcxproj.metaproj"
                              (целев</div>
                            <div>ой объект по умолчанию) (741) -></div>
                            <div>"d:\code\llvm\build\tools\lldb\unittests\Utility\UtilityTests.vcxproj.metaproj"</div>
                            <div> (целевой объект по умолчанию) (742)
                              -></div>
                            <div>"d:\code\llvm\build\tools\lldb\unittests\Utility\UtilityTests.vcxproj"
                              (целевой</div>
                            <div> объект по умолчанию) (743) -></div>
                            <div>  LINK : fatal error LNK1181: cannot
                              open input file 'gtest.lib' [d:\code\llvm\</div>
                            <div>build\tools\lldb\unittests\Utility\UtilityTests.vcxproj]</div>
                          </div>
                          <div><br>
                          </div>
                          <div>my commands:</div>
                          <div><br>
                          </div>
                          <div>cmake -G "Visual Studio 14 2015"
                             -DCMAKE_BUILD_TYPE=Release
                            -DLLVM_INCLUDE_EXAMPLES=OFF
                            -DLLVM_INCLUDE_TESTS=OFF
                            -DCLANG_INCLUDE_EXAMPLES=OFF
                            -DCLANG_INCLUDE_TESTS=OFF
                            -DPYTHON_HOME=<absolute path to
                            python\x86 from dest variable> ..\llvm<br>
                          </div>
                          <div><br>
                          </div>
                          <div>msbuild LLVM.sln
                            /p:Configuration=Release;Platform=Win32<br>
                          </div>
                          <div><br>
                          </div>
                          <div>i look to llvm\tools\lldb\gtest and cant
                            find any file. here is only empty
                            directories.</div>
                          <div>should i download something or should
                            skip unittests ? </div>
                        </div>
                        <div class="gmail_extra"><br>
                          <div class="gmail_quote">2016-01-10 6:28
                            GMT+03:00 Zachary Turner <span dir="ltr"><<a
                                moz-do-not-send="true"
                                href="mailto:zturner@google.com"
                                target="_blank"><a class="moz-txt-link-abbreviated" href="mailto:zturner@google.com">zturner@google.com</a></a>></span>:<br>
                            <blockquote class="gmail_quote"
                              style="margin:0 0 0 .8ex;border-left:1px
                              #ccc solid;padding-left:1ex">
                              <div dir="ltr">
                                <div>Should look like this:</div>
                                <div><br>
                                </div>
                                llvm
                                <div>|__ tools<br>
                                  <div>     |__ clang</div>
                                  <div>     |__ lld</div>
                                  <div>     |__ lldb</div>
                                  <div><br>
                                  </div>
                                </div>
                                <div>You will need clang because lldb
                                  needs to link against it, and you will
                                  need lld because lldb on Windows
                                  doesn't (yet) understand PDB, so you
                                  have to compile your programs with
                                  clang.exe -fuse-ld=lld</div>
                                <div><br>
                                </div>
                                <div><br>
                                </div>
                              </div>
                              <br>
                              <div class="gmail_quote">
                                <div>
                                  <div>
                                    <div dir="ltr">On Sat, Jan 9, 2016
                                      at 1:29 PM Red Skotina via
                                      lldb-dev <<a
                                        moz-do-not-send="true"
                                        href="mailto:lldb-dev@lists.llvm.org"
                                        target="_blank"><a class="moz-txt-link-abbreviated" href="mailto:lldb-dev@lists.llvm.org">lldb-dev@lists.llvm.org</a></a>>
                                      wrote:<br>
                                    </div>
                                  </div>
                                </div>
                                <blockquote class="gmail_quote"
                                  style="margin:0 0 0
                                  .8ex;border-left:1px #ccc
                                  solid;padding-left:1ex">
                                  <div>
                                    <div>
                                      <div dir="ltr">If i want compile
                                        as part of llvm then what is
                                        destination directory for lldb
                                        trunk sources ?
                                        <div>I has placed this in
                                          llvm/projects/lldb and has
                                           much errors while compiling
                                          lldb with MSVC 2015.</div>
                                        <div><br>
                                        </div>
                                        <div>
                                          <div>"d:\code\llvm\build\LLVM.sln"
                                            (целевой объект по
                                            умолчанию) (1) -></div>
                                          <div>"d:\code\llvm\build\ALL_BUILD.vcxproj.metaproj"
                                            (целевой объект по
                                            умолчанию) (</div>
                                          <div>2) -></div>
                                          <div>"d:\code\llvm\build\projects\lldb\finish_swig.vcxproj.metaproj"
                                            (целевой объект</div>
                                          <div> по умолчанию) (482)
                                            -></div>
                                          <div>"d:\code\llvm\build\projects\lldb\source\API\liblldb.vcxproj.metaproj"
                                            (целевой</div>
                                          <div> объект по умолчанию)
                                            (483) -></div>
                                          <div>"d:\code\llvm\build\projects\lldb\source\Plugins\Language\ObjC\lldbPluginObjCLa</div>
                                          <div>nguage.vcxproj.metaproj"
                                            (целевой объект по
                                            умолчанию) (570) -></div>
                                          <div>"d:\code\llvm\build\projects\lldb\source\Plugins\Language\ObjC\lldbPluginObjCLa</div>
                                          <div>nguage.vcxproj" (целевой
                                            объект по умолчанию) (571)
                                            -></div>
                                          <div> 
                                            D:\code\llvm\llvm\tools\clang\include\clang/AST/ASTFwd.h(22):
                                            fatal error C10</div>
                                          <div>83: Cannot open include
                                            file:
                                            'clang/AST/DeclNodes.inc':
                                            No such file or direct</div>
                                          <div>ory (compiling source
                                            file
                                            D:\code\llvm\llvm\projects\lldb\source\Plugins\Langu</div>
                                          <div>age\ObjC\Cocoa.cpp)
                                            [d:\code\llvm\build\projects\lldb\source\Plugins\Language\O</div>
                                          <div>bjC\lldbPluginObjCLanguage.vcxproj]</div>
                                          <div> 
                                            D:\code\llvm\llvm\tools\clang\include\clang/AST/ASTFwd.h(22):
                                            fatal error C10</div>
                                          <div>83: Cannot open include
                                            file:
                                            'clang/AST/DeclNodes.inc':
                                            No such file or direct</div>
                                          <div>ory (compiling source
                                            file
                                            D:\code\llvm\llvm\projects\lldb\source\Plugins\Langu</div>
                                          <div>age\ObjC\NSArray.cpp)
                                            [d:\code\llvm\build\projects\lldb\source\Plugins\Language</div>
                                          <div>\ObjC\lldbPluginObjCLanguage.vcxproj]</div>
                                          <div> 
                                            D:\code\llvm\llvm\tools\clang\include\clang/AST/ASTFwd.h(22):
                                            fatal error C10</div>
                                          <div>83: Cannot open include
                                            file:
                                            'clang/AST/DeclNodes.inc':
                                            No such file or direct</div>
                                          <div>ory (compiling source
                                            file
                                            D:\code\llvm\llvm\projects\lldb\source\Plugins\Langu</div>
                                          <div>age\ObjC\ObjCLanguage.cpp)
[d:\code\llvm\build\projects\lldb\source\Plugins\Lan</div>
                                          <div>guage\ObjC\lldbPluginObjCLanguage.vcxproj]</div>
                                          <div> 
                                            D:\code\llvm\llvm\tools\clang\include\clang/AST/ASTFwd.h(22):
                                            fatal error C10</div>
                                          <div>83: Cannot open include
                                            file:
                                            'clang/AST/DeclNodes.inc':
                                            No such file or direct</div>
                                          <div>ory (compiling source
                                            file
                                            D:\code\llvm\llvm\projects\lldb\source\Plugins\Langu</div>
                                          <div>age\ObjC\CF.cpp)
                                            [d:\code\llvm\build\projects\lldb\source\Plugins\Language\ObjC</div>
                                          <div>\lldbPluginObjCLanguage.vcxproj]</div>
                                          <div> 
                                            D:\code\llvm\llvm\tools\clang\include\clang/Basic/DiagnosticIDs.h(53):
                                            fatal</div>
                                          <div>error C1083: Cannot open
                                            include file:
                                            'clang/Basic/DiagnosticCommonKinds.inc':</div>
                                          <div> No such file or
                                            directory (compiling source
                                            file
                                            D:\code\llvm\llvm\projects\ll</div>
                                          <div>db\source\Plugins\Language\ObjC\NSDictionary.cpp)
[d:\code\llvm\build\projects\</div>
                                          <div>lldb\source\Plugins\Language\ObjC\lldbPluginObjCLanguage.vcxproj]</div>
                                          <div> 
                                            D:\code\llvm\llvm\tools\clang\include\clang/Basic/DiagnosticIDs.h(53):
                                            fatal</div>
                                          <div>error C1083: Cannot open
                                            include file:
                                            'clang/Basic/DiagnosticCommonKinds.inc':</div>
                                          <div> No such file or
                                            directory (compiling source
                                            file
                                            D:\code\llvm\llvm\projects\ll</div>
                                          <div>db\source\Plugins\Language\ObjC\NSError.cpp)
[d:\code\llvm\build\projects\lldb\</div>
                                          <div>source\Plugins\Language\ObjC\lldbPluginObjCLanguage.vcxproj]</div>
                                          <div> 
                                            D:\code\llvm\llvm\tools\clang\include\clang/Basic/DiagnosticIDs.h(53):
                                            fatal</div>
                                          <div>error C1083: Cannot open
                                            include file:
                                            'clang/Basic/DiagnosticCommonKinds.inc':</div>
                                          <div> No such file or
                                            directory (compiling source
                                            file
                                            D:\code\llvm\llvm\projects\ll</div>
                                          <div>db\source\Plugins\Language\ObjC\NSException.cpp)
[d:\code\llvm\build\projects\l</div>
                                          <div>ldb\source\Plugins\Language\ObjC\lldbPluginObjCLanguage.vcxproj]</div>
                                          <div> 
                                            D:\code\llvm\llvm\tools\clang\include\clang/AST/ASTFwd.h(22):
                                            fatal error C10</div>
                                          <div>83: Cannot open include
                                            file:
                                            'clang/AST/DeclNodes.inc':
                                            No such file or direct</div>
                                          <div>ory (compiling source
                                            file
                                            D:\code\llvm\llvm\projects\lldb\source\Plugins\Langu</div>
                                          <div>age\ObjC\NSIndexPath.cpp)
[d:\code\llvm\build\projects\lldb\source\Plugins\Lang</div>
                                          <div>uage\ObjC\lldbPluginObjCLanguage.vcxproj]</div>
                                          <div> 
                                            D:\code\llvm\llvm\tools\clang\include\clang/AST/ASTFwd.h(22):
                                            fatal error C10</div>
                                          <div>83: Cannot open include
                                            file:
                                            'clang/AST/DeclNodes.inc':
                                            No such file or direct</div>
                                          <div>ory (compiling source
                                            file
                                            D:\code\llvm\llvm\projects\lldb\source\Plugins\Langu</div>
                                          <div>age\ObjC\NSSet.cpp)
                                            [d:\code\llvm\build\projects\lldb\source\Plugins\Language\O</div>
                                          <div>bjC\lldbPluginObjCLanguage.vcxproj]</div>
                                          <div> 
                                            D:\code\llvm\llvm\tools\clang\include\clang/AST/ASTFwd.h(22):
                                            fatal error C10</div>
                                          <div>83: Cannot open include
                                            file:
                                            'clang/AST/DeclNodes.inc':
                                            No such file or direct</div>
                                          <div>ory (compiling source
                                            file
                                            D:\code\llvm\llvm\projects\lldb\source\Plugins\Langu</div>
                                          <div>age\ObjC\NSString.cpp)
                                            [d:\code\llvm\build\projects\lldb\source\Plugins\Languag</div>
                                          <div>e\ObjC\lldbPluginObjCLanguage.vcxproj]</div>
                                        </div>
                                        <div><br>
                                        </div>
                                      </div>
                                    </div>
                                  </div>
_______________________________________________<br>
                                  lldb-dev mailing list<br>
                                  <a moz-do-not-send="true"
                                    href="mailto:lldb-dev@lists.llvm.org"
                                    target="_blank">lldb-dev@lists.llvm.org</a><br>
                                  <a moz-do-not-send="true"
                                    href="http://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-dev"
                                    rel="noreferrer" target="_blank">http://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-dev</a><br>
                                </blockquote>
                              </div>
                            </blockquote>
                          </div>
                          <br>
                        </div>
                      </blockquote>
                    </div>
                  </div>
                </div>
              </blockquote>
            </div>
            <br>
          </div>
        </blockquote>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
lldb-dev mailing list
<a class="moz-txt-link-abbreviated" href="mailto:lldb-dev@lists.llvm.org">lldb-dev@lists.llvm.org</a>
<a class="moz-txt-link-freetext" href="http://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-dev">http://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-dev</a>
</pre>
    </blockquote>
    <br>
  </body>
</html>