[llvm-bugs] [Bug 32456] New: compilation errors while static linking with openmp
via llvm-bugs
llvm-bugs at lists.llvm.org
Wed Mar 29 08:22:53 PDT 2017
https://bugs.llvm.org/show_bug.cgi?id=32456
Bug ID: 32456
Summary: compilation errors while static linking with openmp
Product: OpenMP
Version: unspecified
Hardware: PC
OS: Linux
Status: NEW
Severity: enhancement
Priority: P
Component: Runtime Library
Assignee: unassignedbugs at nondot.org
Reporter: ilia.taraban at intel.com
CC: llvm-bugs at lists.llvm.org
Problems with static linking openmp:
==============openmp.c=================
#include "omp.h"
int main(){
int a[10];
int i = 0;
#pragma omp parallel
for (i = 0; i < 10; ++i){
a[i] = i;
}
return 0;
}
=======================================
>>>clang -v
clang version 5.0.0 (trunk 298997)
...
>>>clang -o openmp.exe -static -fopenmp openmp.c
.../llvm/bin/../lib/libomp.a(ittnotify_static.c.o): In function
`__kmp_itt_fini_ittlib':
ittnotify_static.c:(.text.__kmp_itt_fini_ittlib+0x4e): undefined reference to
`dlsym'
.../llvm/bin/../lib/libomp.a(ittnotify_static.c.o): In function
`__kmp_itt_init_ittlib':
ittnotify_static.c:(.text.__kmp_itt_init_ittlib+0x14f): undefined reference to
`dlopen'
ittnotify_static.c:(.text.__kmp_itt_init_ittlib+0x16e): undefined reference to
`dlsym'
ittnotify_static.c:(.text.__kmp_itt_init_ittlib+0x187): undefined reference to
`dlsym'
ittnotify_static.c:(.text.__kmp_itt_init_ittlib+0x21d): undefined reference to
`dlerror'
ittnotify_static.c:(.text.__kmp_itt_init_ittlib+0x3a1): undefined reference to
`dlsym'
ittnotify_static.c:(.text.__kmp_itt_init_ittlib+0x405): undefined reference to
`dlsym'
clang-5.0: error: linker command failed with exit code 1 (use -v to see
invocation)
------------------------
Intel Software Engineer
Ilia Taraban
--
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/20170329/27a980a1/attachment.html>
More information about the llvm-bugs
mailing list