<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 - Is -DLIBOMP_USE_VERSION_SYMBOLS=ON build broken?"
href="https://bugs.llvm.org/show_bug.cgi?id=44121">44121</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>Is -DLIBOMP_USE_VERSION_SYMBOLS=ON build broken?
</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>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>Runtime Library
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>lebedev.ri@gmail.com
</td>
</tr>
<tr>
<th>CC</th>
<td>llvm-bugs@lists.llvm.org
</td>
</tr></table>
<p>
<div>
<pre>I was seeing that for some time now, but only now did i take a detailed look.
With -DLIBOMP_USE_VERSION_SYMBOLS=OFF `ninja libomp.so` passes.
But with -DLIBOMP_USE_VERSION_SYMBOLS=ON i get:
[33/33] Linking C shared library lib/libomp.so
FAILED: lib/libomp.so
: && /usr/bin/clang-9 -fPIC -O2 -march=native -g -ggdb -DDEBUG -UNDEBUG -gz
-fPIC -Werror=date-time -Werror=unguarded-availability-new -Wall -Wextra
-Wno-unused-parameter -Wwrite-strings -Wmissing-field-initializers -pedantic
-Wno-long-long -Wimplicit-fallthrough -Wcovered-switch-default
-Wdelete-non-virtual-dtor -Wstring-conversion -fdiagnostics-color
-ffunction-sections -fdata-sections -Wall -Wcast-qual -Wformat-pedantic
-Wimplicit-fallthrough -Wsign-compare -Wno-extra -Wno-pedantic -O2
-march=native -g -ggdb -DDEBUG -UNDEBUG -gz -Wl,--compress-debug-sections=zlib
-Wl,--gdb-index -Wl,-z,defs -Wl,-z,nodelete -Wl,--color-diagnostics -shared
-Wl,-soname,libomp.so -o lib/libomp.so
projects/openmp/runtime/src/CMakeFiles/omp.dir/kmp_alloc.cpp.o
projects/openmp/runtime/src/CMakeFiles/omp.dir/kmp_atomic.cpp.o
projects/openmp/runtime/src/CMakeFiles/omp.dir/kmp_csupport.cpp.o
projects/openmp/runtime/src/CMakeFiles/omp.dir/kmp_debug.cpp.o
projects/openmp/runtime/src/CMakeFiles/omp.dir/kmp_itt.cpp.o
projects/openmp/runtime/src/CMakeFiles/omp.dir/kmp_environment.cpp.o
projects/openmp/runtime/src/CMakeFiles/omp.dir/kmp_error.cpp.o
projects/openmp/runtime/src/CMakeFiles/omp.dir/kmp_global.cpp.o
projects/openmp/runtime/src/CMakeFiles/omp.dir/kmp_i18n.cpp.o
projects/openmp/runtime/src/CMakeFiles/omp.dir/kmp_io.cpp.o
projects/openmp/runtime/src/CMakeFiles/omp.dir/kmp_runtime.cpp.o
projects/openmp/runtime/src/CMakeFiles/omp.dir/kmp_settings.cpp.o
projects/openmp/runtime/src/CMakeFiles/omp.dir/kmp_str.cpp.o
projects/openmp/runtime/src/CMakeFiles/omp.dir/kmp_tasking.cpp.o
projects/openmp/runtime/src/CMakeFiles/omp.dir/kmp_threadprivate.cpp.o
projects/openmp/runtime/src/CMakeFiles/omp.dir/kmp_utility.cpp.o
projects/openmp/runtime/src/CMakeFiles/omp.dir/kmp_barrier.cpp.o
projects/openmp/runtime/src/CMakeFiles/omp.dir/kmp_wait_release.cpp.o
projects/openmp/runtime/src/CMakeFiles/omp.dir/kmp_affinity.cpp.o
projects/openmp/runtime/src/CMakeFiles/omp.dir/kmp_dispatch.cpp.o
projects/openmp/runtime/src/CMakeFiles/omp.dir/kmp_lock.cpp.o
projects/openmp/runtime/src/CMakeFiles/omp.dir/kmp_sched.cpp.o
projects/openmp/runtime/src/CMakeFiles/omp.dir/z_Linux_util.cpp.o
projects/openmp/runtime/src/CMakeFiles/omp.dir/kmp_gsupport.cpp.o
projects/openmp/runtime/src/CMakeFiles/omp.dir/thirdparty/ittnotify/ittnotify_static.cpp.o
projects/openmp/runtime/src/CMakeFiles/omp.dir/kmp_taskdeps.cpp.o
projects/openmp/runtime/src/CMakeFiles/omp.dir/kmp_cancel.cpp.o
projects/openmp/runtime/src/CMakeFiles/omp.dir/kmp_ftn_cdecl.cpp.o
projects/openmp/runtime/src/CMakeFiles/omp.dir/kmp_ftn_extra.cpp.o
projects/openmp/runtime/src/CMakeFiles/omp.dir/kmp_version.cpp.o
projects/openmp/runtime/src/CMakeFiles/omp.dir/ompt-general.cpp.o
projects/openmp/runtime/src/CMakeFiles/omp.dir/z_Linux_asm.S.o -lpthread -ldl
&& cd /builddirs/llvm-project/build-Clang9-unknown/lib && /usr/bin/cmake -E
create_symlink libomp.so libgomp.so && /usr/bin/cmake -E create_symlink
libomp.so libiomp5.so && cd
/builddirs/llvm-project/build-Clang9-unknown/projects/openmp/runtime/src &&
/usr/bin/cmake -E make_directory
/repositories/llvm-project/openmp/runtime/exports/common.ompt.optional/include
&& /usr/bin/cmake -E copy omp.h
/repositories/llvm-project/openmp/runtime/exports/common.ompt.optional/include
&& cd /builddirs/llvm-project/build-Clang9-unknown/projects/openmp/runtime/src
&& /usr/bin/cmake -E copy omp-tools.h
/repositories/llvm-project/openmp/runtime/exports/common.ompt.optional/include
&& cd /builddirs/llvm-project/build-Clang9-unknown/projects/openmp/runtime/src
&& /usr/bin/cmake -E make_directory
/repositories/llvm-project/openmp/runtime/exports/lin_32e.ompt.optional/lib &&
/usr/bin/cmake -E copy
/builddirs/llvm-project/build-Clang9-unknown/lib/libomp.so
/repositories/llvm-project/openmp/runtime/exports/lin_32e.ompt.optional/lib
ld: error: projects/openmp/runtime/src/CMakeFiles/omp.dir/kmp_gsupport.cpp.o:
symbol GOMP_atomic_end@@VERSION has undefined version VERSION
ld: error: projects/openmp/runtime/src/CMakeFiles/omp.dir/kmp_gsupport.cpp.o:
symbol <a href="mailto:GOMP_atomic_end@GOMP_1.0">GOMP_atomic_end@GOMP_1.0</a> has undefined version GOMP_1.0
ld: error: projects/openmp/runtime/src/CMakeFiles/omp.dir/kmp_gsupport.cpp.o:
symbol GOMP_atomic_start@@VERSION has undefined version VERSION
ld: error: projects/openmp/runtime/src/CMakeFiles/omp.dir/kmp_gsupport.cpp.o:
symbol <a href="mailto:GOMP_atomic_start@GOMP_1.0">GOMP_atomic_start@GOMP_1.0</a> has undefined version GOMP_1.0
ld: error: projects/openmp/runtime/src/CMakeFiles/omp.dir/kmp_gsupport.cpp.o:
symbol GOMP_barrier@@VERSION has undefined version VERSION
ld: error: projects/openmp/runtime/src/CMakeFiles/omp.dir/kmp_gsupport.cpp.o:
symbol <a href="mailto:GOMP_barrier@GOMP_1.0">GOMP_barrier@GOMP_1.0</a> has undefined version GOMP_1.0
ld: error: projects/openmp/runtime/src/CMakeFiles/omp.dir/kmp_gsupport.cpp.o:
symbol GOMP_barrier_cancel@@VERSION has undefined version VERSION
ld: error: projects/openmp/runtime/src/CMakeFiles/omp.dir/kmp_gsupport.cpp.o:
symbol <a href="mailto:GOMP_barrier_cancel@GOMP_4.0">GOMP_barrier_cancel@GOMP_4.0</a> has undefined version GOMP_4.0
ld: error: projects/openmp/runtime/src/CMakeFiles/omp.dir/kmp_gsupport.cpp.o:
symbol GOMP_cancel@@VERSION has undefined version VERSION
ld: error: projects/openmp/runtime/src/CMakeFiles/omp.dir/kmp_gsupport.cpp.o:
symbol <a href="mailto:GOMP_cancel@GOMP_4.0">GOMP_cancel@GOMP_4.0</a> has undefined version GOMP_4.0
ld: error: projects/openmp/runtime/src/CMakeFiles/omp.dir/kmp_gsupport.cpp.o:
symbol GOMP_cancellation_point@@VERSION has undefined version VERSION
ld: error: projects/openmp/runtime/src/CMakeFiles/omp.dir/kmp_gsupport.cpp.o:
symbol <a href="mailto:GOMP_cancellation_point@GOMP_4.0">GOMP_cancellation_point@GOMP_4.0</a> has undefined version GOMP_4.0
ld: error: projects/openmp/runtime/src/CMakeFiles/omp.dir/kmp_gsupport.cpp.o:
symbol GOMP_critical_end@@VERSION has undefined version VERSION
ld: error: projects/openmp/runtime/src/CMakeFiles/omp.dir/kmp_gsupport.cpp.o:
symbol <a href="mailto:GOMP_critical_end@GOMP_1.0">GOMP_critical_end@GOMP_1.0</a> has undefined version GOMP_1.0
ld: error: projects/openmp/runtime/src/CMakeFiles/omp.dir/kmp_gsupport.cpp.o:
symbol GOMP_critical_name_end@@VERSION has undefined version VERSION
ld: error: projects/openmp/runtime/src/CMakeFiles/omp.dir/kmp_gsupport.cpp.o:
symbol <a href="mailto:GOMP_critical_name_end@GOMP_1.0">GOMP_critical_name_end@GOMP_1.0</a> has undefined version GOMP_1.0
ld: error: projects/openmp/runtime/src/CMakeFiles/omp.dir/kmp_gsupport.cpp.o:
symbol GOMP_critical_name_start@@VERSION has undefined version VERSION
ld: error: projects/openmp/runtime/src/CMakeFiles/omp.dir/kmp_gsupport.cpp.o:
symbol <a href="mailto:GOMP_critical_name_start@GOMP_1.0">GOMP_critical_name_start@GOMP_1.0</a> has undefined version GOMP_1.0
ld: error: projects/openmp/runtime/src/CMakeFiles/omp.dir/kmp_gsupport.cpp.o:
symbol GOMP_critical_start@@VERSION has undefined version VERSION
ld: error: projects/openmp/runtime/src/CMakeFiles/omp.dir/kmp_gsupport.cpp.o:
symbol <a href="mailto:GOMP_critical_start@GOMP_1.0">GOMP_critical_start@GOMP_1.0</a> has undefined version GOMP_1.0
ld: error: too many errors emitted, stopping now (use -error-limit=0 to see all
errors)
clang: error: linker command failed with exit code 1 (use -v to see invocation)
ninja: build stopped: subcommand failed.
I did not bisect it yet.</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>