<html>
<head>
<base href="https://bugs.llvm.org/">
</head>
<body><table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Bug ID</th>
<td><a class="bz_bug_link
bz_status_NEW "
title="NEW - Build error when using MSVC generator"
href="https://bugs.llvm.org/show_bug.cgi?id=45978">45978</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>Build error when using MSVC generator
</td>
</tr>
<tr>
<th>Product</th>
<td>Build scripts
</td>
</tr>
<tr>
<th>Version</th>
<td>trunk
</td>
</tr>
<tr>
<th>Hardware</th>
<td>PC
</td>
</tr>
<tr>
<th>OS</th>
<td>Windows NT
</td>
</tr>
<tr>
<th>Status</th>
<td>NEW
</td>
</tr>
<tr>
<th>Severity</th>
<td>enhancement
</td>
</tr>
<tr>
<th>Priority</th>
<td>P
</td>
</tr>
<tr>
<th>Component</th>
<td>cmake
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>zahira.ammarguellat@intel.com
</td>
</tr>
<tr>
<th>CC</th>
<td>llvm-bugs@lists.llvm.org
</td>
</tr></table>
<p>
<div>
<pre>cmake fails when using MSVC generator, using this command:
cmake -G "Visual Studio 15 2017 Win64" -Thost=x64 -DLLVM_ENABLE_PROJECTS=clang
-DLLVM_BUILD_TESTS=ON -DCMAKE_COLOR_MAKEFILE=0 -DLLVM_ENABLE_ASSERTIONS=ON
-DLLVM_TARGETS_TO_BUILD="X86" -DCMAKE_C_COMPILER="c:/Program files
(x86)/Microsoft Visual
Studio/2017/Professional/VC/Tools/MSVC/14.16.27023/bin/HostX64/x64/cl.exe"
-DCMAKE_CXX_COMPILER="c:/Program files (x86)/Microsoft Visual
Studio/2017/Professional/VC/Tools/MSVC/14.16.27023/bin/HostX64/x64/cl.exe"
"d:/llorg_ws/llvm/llvm"
with this:
CMake Error at d:/llorg_ws/llvm/llvm/cmake/modules/AddLLVM.cmake:1609
(message):
PATHS lengths got confused
Call Stack (most recent call first):
d:/llorg_ws/llorg_ws/llvm/clang/test/CMakeLists.txt:33
(configure_lit_site_cfg)
CMake Error at d:/llorg_ws/llvm/llvm/cmake/modules/AddLLVM.cmake:1618 (list):
list GET given empty list
Call Stack (most recent call first):
d:/llorg_ws/llvm/clang/test/CMakeLists.txt:33 (configure_lit_site_cfg)
And in the CMakeError.log
cl /c /Zi /W3 /WX- /diagnostics:classic /Od /Ob0 /D WIN32 /D _WINDOWS /D
"CMAKE_INTDIR=\"Debug\"" /D _MBCS /Gm- /RTC1 /MDd /GS /fp:precise /Zc:wchar_t
/Zc:forScope /Zc:inline /Fo"cmTC_d80c9.dir\Debug\\"
/Fd"cmTC_d80c9.dir\Debug\vc141.pdb" /Gd /TC /FC /errorReport:queue
d:\llorg_ws\builds\llorgefi2win_debug\llvm\CMakeFiles\CMakeTmp\CheckIncludeFile.c
CheckIncludeFile.c
d:\builds\llvm\cmakefiles\cmaketmp\checkincludefile.c(1): fatal error C1083:
Cannot open include file: 'dlfcn.h': No such file or directory
[d:\llorg_ws\builds\llorgefi2win_debug\llvm\CMakeFiles\CMakeTmp\cmTC_d80c9.vcxproj]
Done Building Project
"d:\llorg_ws\builds\llorgefi2win_debug\llvm\CMakeFiles\CMakeTmp\cmTC_d80c9.vcxproj"
(default targets) -- FAILED.</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are on the CC list for the bug.</li>
</ul>
</body>
</html>