[llvm-bugs] [Bug 51380] New: cannot build openmp project in debug config with Ninja

via llvm-bugs llvm-bugs at lists.llvm.org
Fri Aug 6 04:50:36 PDT 2021


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: unassignedbugs at nondot.org
          Reporter: glevner at gmail.com
                CC: llvm-bugs at lists.llvm.org

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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20210806/fbfc152d/attachment.html>


More information about the llvm-bugs mailing list