<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 - cannot build openmp project in debug config with Ninja"
href="https://bugs.llvm.org/show_bug.cgi?id=51380">51380</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>cannot build openmp project in debug config with Ninja
</td>
</tr>
<tr>
<th>Product</th>
<td>OpenMP
</td>
</tr>
<tr>
<th>Version</th>
<td>unspecified
</td>
</tr>
<tr>
<th>Hardware</th>
<td>PC
</td>
</tr>
<tr>
<th>OS</th>
<td>other
</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>Runtime Library
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>glevner@gmail.com
</td>
</tr>
<tr>
<th>CC</th>
<td>llvm-bugs@lists.llvm.org
</td>
</tr></table>
<p>
<div>
<pre>Created <span class=""><a href="attachment.cgi?id=25112" name="attach_25112" title="error messages">attachment 25112</a> <a href="attachment.cgi?id=25112&action=edit" title="error messages">[details]</a></span>
error messages
Debug build of LLVM 11 fails on a Windows 7 machine with Visual Studio 2019
installed, using Ninja (or NMake).
Build commands:
set CXXFLAGS=/bigobj
cmake -G Ninja
-D CMAKE_BUILD_TYPE=Debug
-D LLVM_ENABLE_PROJECTS=clang;openmp
-D LLVM_TARGETS_TO_BUILD=X86
-D LIBOMP_COPY_EXPORTS=OFF
..\llvm-project\llvm
ninja
Error messages: see attachment.
There is a workaround, however. In openmp/runtime/src/kmp_config.h.cmake,
comment out the the line:
# define KMP_DEBUG 1
before running cmake. The compilation errors are triggered by calls to
KF_TRACE, which is an empty macro if KMP_DEBUG is not defined.</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>