[lldb-dev] [Bug 26102] New: msbuild: MSB5004: The solution file has two projects named 'lldb tests'

2016-01-10 Thread via lldb-dev
https://llvm.org/bugs/show_bug.cgi?id=26102

Bug ID: 26102
   Summary: msbuild: MSB5004: The solution file has two projects
named 'lldb tests'
   Product: lldb
   Version: unspecified
  Hardware: PC
OS: Windows NT
Status: NEW
  Severity: normal
  Priority: P
 Component: All Bugs
  Assignee: lldb-dev@lists.llvm.org
  Reporter: red.skot...@gmail.com
CC: llvm-b...@lists.llvm.org
Classification: Unclassified

while compile lldb as part of llvm i have error MSB5004: The solution file has
two projects named 'lldb tests' in LLVM.sln

-- 
You are receiving this mail because:
You are the assignee for the bug.
___
lldb-dev mailing list
lldb-dev@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-dev


Re: [lldb-dev] LLDB build at windows

2016-01-10 Thread Red Skotina via lldb-dev
thanks.
i still have 5 errors while linking
"d:\code\llvm\build\LLVM.sln" (целевой объект по умолчанию) (1) ->
"d:\code\llvm\build\tools\lldb\unittests\LLDBUnitTests.vcxproj.metaproj"
(целев
ой объект по умолчанию) (741) ->
"d:\code\llvm\build\tools\lldb\unittests\Utility\UtilityTests.vcxproj.metaproj"
 (целевой объект по умолчанию) (742) ->
"d:\code\llvm\build\tools\lldb\unittests\Utility\UtilityTests.vcxproj"
(целевой
 объект по умолчанию) (743) ->
  LINK : fatal error LNK1181: cannot open input file 'gtest.lib'
[d:\code\llvm\
build\tools\lldb\unittests\Utility\UtilityTests.vcxproj]

my commands:

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= ..\llvm

msbuild LLVM.sln /p:Configuration=Release;Platform=Win32

i look to llvm\tools\lldb\gtest and cant find any file. here is only empty
directories.
should i download something or should skip unittests ?

2016-01-10 6:28 GMT+03:00 Zachary Turner :

> Should look like this:
>
> llvm
> |__ tools
>  |__ clang
>  |__ lld
>  |__ lldb
>
> 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
>
>
>
> On Sat, Jan 9, 2016 at 1:29 PM Red Skotina via lldb-dev <
> lldb-dev@lists.llvm.org> wrote:
>
>> If i want compile as part of llvm then what is destination directory for
>> lldb trunk sources ?
>> I has placed this in llvm/projects/lldb and has  much errors while
>> compiling lldb with MSVC 2015.
>>
>> "d:\code\llvm\build\LLVM.sln" (целевой объект по умолчанию) (1) ->
>> "d:\code\llvm\build\ALL_BUILD.vcxproj.metaproj" (целевой объект по
>> умолчанию) (
>> 2) ->
>> "d:\code\llvm\build\projects\lldb\finish_swig.vcxproj.metaproj" (целевой
>> объект
>>  по умолчанию) (482) ->
>> "d:\code\llvm\build\projects\lldb\source\API\liblldb.vcxproj.metaproj"
>> (целевой
>>  объект по умолчанию) (483) ->
>>
>> "d:\code\llvm\build\projects\lldb\source\Plugins\Language\ObjC\lldbPluginObjCLa
>> nguage.vcxproj.metaproj" (целевой объект по умолчанию) (570) ->
>>
>> "d:\code\llvm\build\projects\lldb\source\Plugins\Language\ObjC\lldbPluginObjCLa
>> nguage.vcxproj" (целевой объект по умолчанию) (571) ->
>>   D:\code\llvm\llvm\tools\clang\include\clang/AST/ASTFwd.h(22): fatal
>> error C10
>> 83: Cannot open include file: 'clang/AST/DeclNodes.inc': No such file or
>> direct
>> ory (compiling source file
>> D:\code\llvm\llvm\projects\lldb\source\Plugins\Langu
>> age\ObjC\Cocoa.cpp)
>> [d:\code\llvm\build\projects\lldb\source\Plugins\Language\O
>> bjC\lldbPluginObjCLanguage.vcxproj]
>>   D:\code\llvm\llvm\tools\clang\include\clang/AST/ASTFwd.h(22): fatal
>> error C10
>> 83: Cannot open include file: 'clang/AST/DeclNodes.inc': No such file or
>> direct
>> ory (compiling source file
>> D:\code\llvm\llvm\projects\lldb\source\Plugins\Langu
>> age\ObjC\NSArray.cpp)
>> [d:\code\llvm\build\projects\lldb\source\Plugins\Language
>> \ObjC\lldbPluginObjCLanguage.vcxproj]
>>   D:\code\llvm\llvm\tools\clang\include\clang/AST/ASTFwd.h(22): fatal
>> error C10
>> 83: Cannot open include file: 'clang/AST/DeclNodes.inc': No such file or
>> direct
>> ory (compiling source file
>> D:\code\llvm\llvm\projects\lldb\source\Plugins\Langu
>> age\ObjC\ObjCLanguage.cpp)
>> [d:\code\llvm\build\projects\lldb\source\Plugins\Lan
>> guage\ObjC\lldbPluginObjCLanguage.vcxproj]
>>   D:\code\llvm\llvm\tools\clang\include\clang/AST/ASTFwd.h(22): fatal
>> error C10
>> 83: Cannot open include file: 'clang/AST/DeclNodes.inc': No such file or
>> direct
>> ory (compiling source file
>> D:\code\llvm\llvm\projects\lldb\source\Plugins\Langu
>> age\ObjC\CF.cpp)
>> [d:\code\llvm\build\projects\lldb\source\Plugins\Language\ObjC
>> \lldbPluginObjCLanguage.vcxproj]
>>   D:\code\llvm\llvm\tools\clang\include\clang/Basic/DiagnosticIDs.h(53):
>> fatal
>> error C1083: Cannot open include file:
>> 'clang/Basic/DiagnosticCommonKinds.inc':
>>  No such file or directory (compiling source file
>> D:\code\llvm\llvm\projects\ll
>> db\source\Plugins\Language\ObjC\NSDictionary.cpp)
>> [d:\code\llvm\build\projects\
>> lldb\source\Plugins\Language\ObjC\lldbPluginObjCLanguage.vcxproj]
>>   D:\code\llvm\llvm\tools\clang\include\clang/Basic/DiagnosticIDs.h(53):
>> fatal
>> error C1083: Cannot open include file:
>> 'clang/Basic/DiagnosticCommonKinds.inc':
>>  No such file or directory (compiling source file
>> D:\code\llvm\llvm\projects\ll
>> db\source\Plugins\Language\ObjC\NSError.cpp)
>> [d:\code\llvm\build\projects\lldb\
>> source\Plugins\Language\ObjC\lldbPluginObjCLanguage.vcxproj]
>>   D:\code\llvm\llvm\tools\clang\include\clang/Basic/DiagnosticIDs.h(53):
>> fatal
>> error C1083: Cannot open include file:
>> 'clang/Basic/DiagnosticCommonKinds.inc':
>>  No such file or directory (compiling source file
>> D:\code\llvm\llvm\projects\ll
>> db\source\Plugins\Language\Obj

Re: [lldb-dev] LLDB build at windows

2016-01-10 Thread Zachary Turner via lldb-dev
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?

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:

cmake -G Ninja  -DCMAKE_BUILD_TYPE=Release -DPYTHON_HOME= ..\llvm

ninja


On Sun, Jan 10, 2016 at 4:02 AM Red Skotina  wrote:

> thanks.
> i still have 5 errors while linking
> "d:\code\llvm\build\LLVM.sln" (целевой объект по умолчанию) (1) ->
> "d:\code\llvm\build\tools\lldb\unittests\LLDBUnitTests.vcxproj.metaproj"
> (целев
> ой объект по умолчанию) (741) ->
>
> "d:\code\llvm\build\tools\lldb\unittests\Utility\UtilityTests.vcxproj.metaproj"
>  (целевой объект по умолчанию) (742) ->
> "d:\code\llvm\build\tools\lldb\unittests\Utility\UtilityTests.vcxproj"
> (целевой
>  объект по умолчанию) (743) ->
>   LINK : fatal error LNK1181: cannot open input file 'gtest.lib'
> [d:\code\llvm\
> build\tools\lldb\unittests\Utility\UtilityTests.vcxproj]
>
> my commands:
>
> 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= ..\llvm
>
> msbuild LLVM.sln /p:Configuration=Release;Platform=Win32
>
> i look to llvm\tools\lldb\gtest and cant find any file. here is only empty
> directories.
> should i download something or should skip unittests ?
>
> 2016-01-10 6:28 GMT+03:00 Zachary Turner :
>
>> Should look like this:
>>
>> llvm
>> |__ tools
>>  |__ clang
>>  |__ lld
>>  |__ lldb
>>
>> 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
>>
>>
>>
>> On Sat, Jan 9, 2016 at 1:29 PM Red Skotina via lldb-dev <
>> lldb-dev@lists.llvm.org> wrote:
>>
>>> If i want compile as part of llvm then what is destination directory for
>>> lldb trunk sources ?
>>> I has placed this in llvm/projects/lldb and has  much errors while
>>> compiling lldb with MSVC 2015.
>>>
>>> "d:\code\llvm\build\LLVM.sln" (целевой объект по умолчанию) (1) ->
>>> "d:\code\llvm\build\ALL_BUILD.vcxproj.metaproj" (целевой объект по
>>> умолчанию) (
>>> 2) ->
>>> "d:\code\llvm\build\projects\lldb\finish_swig.vcxproj.metaproj" (целевой
>>> объект
>>>  по умолчанию) (482) ->
>>> "d:\code\llvm\build\projects\lldb\source\API\liblldb.vcxproj.metaproj"
>>> (целевой
>>>  объект по умолчанию) (483) ->
>>>
>>> "d:\code\llvm\build\projects\lldb\source\Plugins\Language\ObjC\lldbPluginObjCLa
>>> nguage.vcxproj.metaproj" (целевой объект по умолчанию) (570) ->
>>>
>>> "d:\code\llvm\build\projects\lldb\source\Plugins\Language\ObjC\lldbPluginObjCLa
>>> nguage.vcxproj" (целевой объект по умолчанию) (571) ->
>>>   D:\code\llvm\llvm\tools\clang\include\clang/AST/ASTFwd.h(22): fatal
>>> error C10
>>> 83: Cannot open include file: 'clang/AST/DeclNodes.inc': No such file or
>>> direct
>>> ory (compiling source file
>>> D:\code\llvm\llvm\projects\lldb\source\Plugins\Langu
>>> age\ObjC\Cocoa.cpp)
>>> [d:\code\llvm\build\projects\lldb\source\Plugins\Language\O
>>> bjC\lldbPluginObjCLanguage.vcxproj]
>>>   D:\code\llvm\llvm\tools\clang\include\clang/AST/ASTFwd.h(22): fatal
>>> error C10
>>> 83: Cannot open include file: 'clang/AST/DeclNodes.inc': No such file or
>>> direct
>>> ory (compiling source file
>>> D:\code\llvm\llvm\projects\lldb\source\Plugins\Langu
>>> age\ObjC\NSArray.cpp)
>>> [d:\code\llvm\build\projects\lldb\source\Plugins\Language
>>> \ObjC\lldbPluginObjCLanguage.vcxproj]
>>>   D:\code\llvm\llvm\tools\clang\include\clang/AST/ASTFwd.h(22): fatal
>>> error C10
>>> 83: Cannot open include file: 'clang/AST/DeclNodes.inc': No such file or
>>> direct
>>> ory (compiling source file
>>> D:\code\llvm\llvm\projects\lldb\source\Plugins\Langu
>>> age\ObjC\ObjCLanguage.cpp)
>>> [d:\code\llvm\build\projects\lldb\source\Plugins\Lan
>>> guage\ObjC\lldbPluginObjCLanguage.vcxproj]
>>>   D:\code\llvm\llvm\tools\clang\include\clang/AST/ASTFwd.h(22): fatal
>>> error C10
>>> 83: Cannot open include file: 'clang/AST/DeclNodes.inc': No such file or
>>> direct
>>> ory (compiling source file
>>> D:\code\llvm\llvm\projects\lldb\source\Plugins\Langu
>>> age\ObjC\CF.cpp)
>>> [d:\code\llvm\build\projects\lldb\source\Plugins\Language\ObjC
>>> \lldbPluginObjCLanguage.vcxproj]
>>>   D:\code\llvm\llvm\tools\clang\include\clang/Basic/DiagnosticIDs.h(53):
>>> fatal
>>> error C1083: Cannot open include file:
>>> 'clang/Basic/DiagnosticCommonKinds.inc':
>>>  No such file or directory (compiling source file
>>> D:\code\llvm\llvm\projects\ll
>>> db\source\Plugins\Language\ObjC\NSDictionary.cpp)
>>> [d:\code\llvm\build\projects\
>>> lldb\source\Plugins\Languag