<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 - libomp fails to build on 32-bit with clang-cl"
href="https://bugs.llvm.org/show_bug.cgi?id=46863">46863</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>libomp fails to build on 32-bit with clang-cl
</td>
</tr>
<tr>
<th>Product</th>
<td>new-bugs
</td>
</tr>
<tr>
<th>Version</th>
<td>trunk
</td>
</tr>
<tr>
<th>Hardware</th>
<td>PC
</td>
</tr>
<tr>
<th>OS</th>
<td>Linux
</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>new bugs
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>hans@chromium.org
</td>
</tr>
<tr>
<th>CC</th>
<td>htmldeveloper@gmail.com, llvm-bugs@lists.llvm.org, martin@martin.st
</td>
</tr>
<tr>
<th>Blocks</th>
<td>46725
</td>
</tr></table>
<p>
<div>
<pre>From trying to build the 32-bit windows package:
LINK: command
"C:\PROGRA~2\MIB055~1\2019\PROFES~1\VC\Tools\MSVC\1423~1.281\bin\Hostx86\x86\link.exe
/nologo projects\openmp\runtime\src\CMakeFiles\omp.dir\kmp_alloc.cpp.obj
projects\openmp\runtime\src\CMakeFiles\omp.dir\kmp_atomic.cpp.obj
projects\openmp\runtime\src\CMakeFiles\omp.dir\kmp_csupport.cpp.obj
projects\openmp\runtime\src\CMakeFiles\omp.dir\kmp_debug.cpp.obj
projects\openmp\runtime\src\CMakeFiles\omp.dir\kmp_itt.cpp.obj
projects\openmp\runtime\src\CMakeFiles\omp.dir\kmp_environment.cpp.obj
projects\openmp\runtime\src\CMakeFiles\omp.dir\kmp_error.cpp.obj
projects\openmp\runtime\src\CMakeFiles\omp.dir\kmp_global.cpp.obj
projects\openmp\runtime\src\CMakeFiles\omp.dir\kmp_i18n.cpp.obj
projects\openmp\runtime\src\CMakeFiles\omp.dir\kmp_io.cpp.obj
projects\openmp\runtime\src\CMakeFiles\omp.dir\kmp_runtime.cpp.obj
projects\openmp\runtime\src\CMakeFiles\omp.dir\kmp_settings.cpp.obj
projects\openmp\runtime\src\CMakeFiles\omp.dir\kmp_str.cpp.obj
projects\openmp\runtime\src\CMakeFiles\omp.dir\kmp_tasking.cpp.obj
projects\openmp\runtime\src\CMakeFiles\omp.dir\kmp_threadprivate.cpp.obj
projects\openmp\runtime\src\CMakeFiles\omp.dir\kmp_utility.cpp.obj
projects\openmp\runtime\src\CMakeFiles\omp.dir\kmp_barrier.cpp.obj
projects\openmp\runtime\src\CMakeFiles\omp.dir\kmp_wait_release.cpp.obj
projects\openmp\runtime\src\CMakeFiles\omp.dir\kmp_affinity.cpp.obj
projects\openmp\runtime\src\CMakeFiles\omp.dir\kmp_dispatch.cpp.obj
projects\openmp\runtime\src\CMakeFiles\omp.dir\kmp_lock.cpp.obj
projects\openmp\runtime\src\CMakeFiles\omp.dir\kmp_sched.cpp.obj
projects\openmp\runtime\src\CMakeFiles\omp.dir\z_Windows_NT_util.cpp.obj
projects\openmp\runtime\src\CMakeFiles\omp.dir\z_Windows_NT-586_util.cpp.obj
projects\openmp\runtime\src\CMakeFiles\omp.dir\thirdparty\ittnotify\ittnotify_static.cpp.obj
projects\openmp\runtime\src\CMakeFiles\omp.dir\kmp_taskdeps.cpp.obj
projects\openmp\runtime\src\CMakeFiles\omp.dir\kmp_cancel.cpp.obj
projects\openmp\runtime\src\CMakeFiles\omp.dir\kmp_ftn_cdecl.cpp.obj
projects\openmp\runtime\src\CMakeFiles\omp.dir\kmp_ftn_extra.cpp.obj
projects\openmp\runtime\src\CMakeFiles\omp.dir\kmp_version.cpp.obj
projects\openmp\runtime\src\CMakeFiles\omp.dir\z_Windows_NT-586_asm.asm.obj
projects\openmp\runtime\src\CMakeFiles\omp.dir\libomp.rc.res
/out:bin\libomp.dll /implib:lib\libomp.dll.lib /pdb:bin\libomp.dll.pdb /dll
/version:5.0 /machine:X86 /INCREMENTAL:NO
/DEF:C:/src/llvm_package_1100-rc1/build32/projects/openmp/runtime/src/libomp.def
/SAFESEH -msse2 kernel32.lib user32.lib gdi32.lib winspool.lib shell32.lib
ole32.lib oleaut32.lib uuid.lib comdlg32.lib advapi32.lib /MANIFEST
/MANIFESTFILE:bin\libomp.dll.manifest" failed (exit code 1120) with the
following output:
LINK : warning LNK4044: unrecognized option '/msse2'; ignored
libomp.def : error LNK2001: unresolved external symbol OMP_GET_DEVICE_NUM
libomp.def : error LNK2001: unresolved external symbol OMP_GET_INITIAL_DEVICE
libomp.def : error LNK2001: unresolved external symbol OMP_GET_NUM_DEVICES
libomp.def : error LNK2001: unresolved external symbol OMP_IS_INITIAL_DEVICE
libomp.def : error LNK2001: unresolved external symbol omp_get_device_num
libomp.def : error LNK2001: unresolved external symbol omp_get_initial_device
libomp.def : error LNK2001: unresolved external symbol omp_get_num_devices
libomp.def : error LNK2001: unresolved external symbol omp_is_initial_device
lib\libomp.dll.lib : fatal error LNK1120: 8 unresolved externals
Martin: I'm guessing (but not sure) that this is related to <a class="bz_bug_link
bz_status_RESOLVED bz_closed"
title="RESOLVED FIXED - libomp.dll fails to link when using clang-cl to compile: kmp_ftn_cdecl.cpp.obj : fatal error LNK1143: invalid or corrupt file: no symbol for COMDAT section 0x4A"
href="show_bug.cgi?id=46779">Bug 46779</a>. Please
take a look if you feel inclined, but I'll take openmp out of the release
builds for now.</pre>
</div>
</p>
<div id="referenced">
<hr style="border: 1px dashed #969696">
<b>Referenced Bugs:</b>
<ul>
<li>
[<a class="bz_bug_link
bz_status_NEW "
title="NEW - [meta] 11.0.0 Release Blockers"
href="https://bugs.llvm.org/show_bug.cgi?id=46725">Bug 46725</a>] [meta] 11.0.0 Release Blockers
</li>
</ul>
</div>
<br>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are on the CC list for the bug.</li>
</ul>
</body>
</html>