https://bugs.llvm.org/show_bug.cgi?id=51380
Bug ID: 51380
Summary: cannot build openmp project in debug config with Ninja
Product: OpenMP
Version: unspecified
Hardware: PC
OS: other
Status: NEW
Severity: enhancement
Priority: P
Component: Runtime Library
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected]
Created attachment 25112
--> https://bugs.llvm.org/attachment.cgi?id=25112&action=edit
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.
--
You are receiving this mail because:
You are on the CC list for the bug._______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs