[llvm-bugs] [Bug 45074] New: Unable to build OpenMP with MSVC 19.16 (VS2017)

via llvm-bugs llvm-bugs at lists.llvm.org
Mon Mar 2 04:16:40 PST 2020


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

            Bug ID: 45074
           Summary: Unable to build OpenMP with MSVC 19.16 (VS2017)
           Product: OpenMP
           Version: unspecified
          Hardware: PC
                OS: Windows NT
            Status: NEW
          Severity: release blocker
          Priority: P
         Component: Runtime Library
          Assignee: unassignedbugs at nondot.org
          Reporter: yurybura at gmail.com
                CC: llvm-bugs at lists.llvm.org

Created attachment 23192
  --> https://bugs.llvm.org/attachment.cgi?id=23192&action=edit
Build log

Hello,
I compile OpenMP (from release/10.x branch, commit
0bf4795d069642afe2a430521f3549e425f092c9), but build fails with error:

D:\libs\llvm\llvm10\openmp\runtime\src\z_Windows_NT_util.cpp(1590): warning
C4018: '<': signed/unsigned mismatch
D:\libs\llvm\llvm10\openmp\runtime\src\z_Windows_NT_util.cpp(382): error C4839:
non-standard use of class 'std::atomic<unsigned int>' as an argument to a
variadic function
D:\libs\llvm\llvm10\openmp\runtime\src\z_Windows_NT_util.cpp(382): note: the
constructor and destructor will not be called; a bitwise copy of the class will
be passed as the argument
C:\Program Files (x86)\Microsoft Visual
Studio\2017\Professional\VC\Tools\MSVC\14.16.27023\include\xxatomic(162): note:
see declaration of 'std::atomic<unsigned int>'
D:\libs\llvm\llvm10\openmp\runtime\src\z_Windows_NT_util.cpp(382): error C2280:
'std::atomic<unsigned int>::atomic(const std::atomic<unsigned int> &)':
attempting to reference a deleted function
C:\Program Files (x86)\Microsoft Visual
Studio\2017\Professional\VC\Tools\MSVC\14.16.27023\include\xxatomic(185): note:
see declaration of 'std::atomic<unsigned int>::atomic'
C:\Program Files (x86)\Microsoft Visual
Studio\2017\Professional\VC\Tools\MSVC\14.16.27023\include\xxatomic(185): note:
'std::atomic<unsigned int>::atomic(const std::atomic<unsigned int> &)':
function was explicitly deleted
D:\libs\llvm\llvm10\openmp\runtime\src\z_Windows_NT_util.cpp(446): note: see
reference to function template instantiation 'void
__kmp_suspend_template<kmp_flag_32>(int,C *)' being compiled
        with
        [
            C=kmp_flag_32
        ]

Build command:

set VSDEVCMD=C:\Program Files (x86)\Microsoft Visual
Studio\2017\Professional\Common7\Tools\VsDevCmd.bat

set "VSCMD_START_DIR=%CD%"
call "%VSDEVCMD%"

set CC=
set CXX=
set PERL=c:\tools\perl\perl\bin\perl.exe

cmake -G "Ninja" -DLLVM_ENABLE_PROJECTS="clang;openmp" -DPERL_EXECUTABLE=%PERL%
..\llvm && cmake --build . --config Debug --target omp -- -v

Build log has been attached.

-- 
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/20200302/673ce4ff/attachment.html>


More information about the llvm-bugs mailing list