<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 - Unable to build OpenMP with MSVC 19.16 (VS2017)"
href="https://bugs.llvm.org/show_bug.cgi?id=45074">45074</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>Unable to build OpenMP with MSVC 19.16 (VS2017)
</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>Windows NT
</td>
</tr>
<tr>
<th>Status</th>
<td>NEW
</td>
</tr>
<tr>
<th>Severity</th>
<td>release blocker
</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>yurybura@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=23192" name="attach_23192" title="Build log">attachment 23192</a> <a href="attachment.cgi?id=23192&action=edit" title="Build log">[details]</a></span>
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.</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>