[llvm-bugs] [Bug 45978] New: Build error when using MSVC generator

via llvm-bugs llvm-bugs at lists.llvm.org
Mon May 18 07:31:52 PDT 2020


https://bugs.llvm.org/show_bug.cgi?id=45978

            Bug ID: 45978
           Summary: Build error when using MSVC generator
           Product: Build scripts
           Version: trunk
          Hardware: PC
                OS: Windows NT
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: cmake
          Assignee: unassignedbugs at nondot.org
          Reporter: zahira.ammarguellat at intel.com
                CC: llvm-bugs at lists.llvm.org

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.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20200518/91c23fcc/attachment.html>


More information about the llvm-bugs mailing list