[llvm-bugs] [Bug 41540] New: Cmake configuration fails on windows

via llvm-bugs llvm-bugs at lists.llvm.org
Fri Apr 19 04:08:09 PDT 2019


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

            Bug ID: 41540
           Summary: Cmake configuration fails on windows
           Product: lld
           Version: unspecified
          Hardware: PC
                OS: Windows NT
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: All Bugs
          Assignee: unassignedbugs at nondot.org
          Reporter: markus.boeck02 at gmail.com
                CC: llvm-bugs at lists.llvm.org, peter.smith at linaro.org

Created attachment 21801
  --> https://bugs.llvm.org/attachment.cgi?id=21801&action=edit
CMakeCache

Hello everyone, 
I am trying to build LLD without using the LLVM mono repo since I already have
LLVM installed. I am using following cmake command and get the following error
at configure time.


C:\Tools\cmake-3.13.1-win64-x64\bin\cmake.exe .. -G "CodeBlocks - MinGW
Makefiles" -DCMAKE_BUILD_TYPE=Release -DCMAKE_PREFIX_PATH=C:/MGPKG/LLVM-8.0.0
-DCMAKE_INSTALL_PREFIX=C:/MGPKG/LLD-8.0.0 -DBUILD_SHARED_LIBS=OFF
-- The C compiler identification is GNU 8.1.0
-- The CXX compiler identification is GNU 8.1.0
-- Check for working C compiler: C:/mingw-w64/8.1/bin/gcc.exe
-- Check for working C compiler: C:/mingw-w64/8.1/bin/gcc.exe -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: C:/mingw-w64/8.1/bin/g++.exe
-- Check for working CXX compiler: C:/mingw-w64/8.1/bin/g++.exe -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Performing Test C_SUPPORTS_WERROR_DATE_TIME
CMake Error at
C:/Users/Markus/Documents/lld-8.0.0.src/build/CMakeFiles/CMakeTmp/CMakeLists.txt:2
(set):
  Syntax error in cmake code at

   
C:/Users/Markus/Documents/lld-8.0.0.src/build/CMakeFiles/CMakeTmp/CMakeLists.txt:2

  when parsing string

    C:\MGPKG\LLVM-8.0.0/lib/cmake/llvm

  Invalid character escape '\M'.


CMake Error at
C:/Tools/cmake-3.13.1-win64-x64/share/cmake-3.13/Modules/CheckCSourceCompiles.cmake:98
(try_compile):
  Failed to configure test project build system.
Call Stack (most recent call first):
 
C:/Tools/cmake-3.13.1-win64-x64/share/cmake-3.13/Modules/CheckCCompilerFlag.cmake:50
(CHECK_C_SOURCE_COMPILES)
  C:/MGPKG/LLVM-8.0.0/lib/cmake/llvm/HandleLLVMOptions.cmake:172
(check_c_compiler_flag)
  C:/MGPKG/LLVM-8.0.0/lib/cmake/llvm/HandleLLVMOptions.cmake:416
(add_flag_if_supported)
  CMakeLists.txt:56 (include)


-- Configuring incomplete, errors occurred!
See also
"C:/Users/Markus/Documents/lld-8.0.0.src/build/CMakeFiles/CMakeOutput.log".

I have also attached CMakeCache.txt file. If I am doing something wrong when
building please tell me. Building Clang like that has worked for me so far.

-- 
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/20190419/fa2a02cb/attachment.html>


More information about the llvm-bugs mailing list