<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 - Cmake configuration fails on windows"
href="https://bugs.llvm.org/show_bug.cgi?id=41540">41540</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>Cmake configuration fails on windows
</td>
</tr>
<tr>
<th>Product</th>
<td>lld
</td>
</tr>
<tr>
<th>Version</th>
<td>unspecified
</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>All Bugs
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>markus.boeck02@gmail.com
</td>
</tr>
<tr>
<th>CC</th>
<td>llvm-bugs@lists.llvm.org, peter.smith@linaro.org
</td>
</tr></table>
<p>
<div>
<pre>Created <span class=""><a href="attachment.cgi?id=21801" name="attach_21801" title="CMakeCache">attachment 21801</a> <a href="attachment.cgi?id=21801&action=edit" title="CMakeCache">[details]</a></span>
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.</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>