[Bug 203223] devel/llvm37: undefined references when compiling with -fopenmp=libomp
bugzilla-noreply at freebsd.org
bugzilla-noreply at freebsd.org
Sun Sep 20 18:06:41 UTC 2015
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=203223
Bug ID: 203223
Summary: devel/llvm37: undefined references when compiling with
-fopenmp=libomp
Product: Ports & Packages
Version: Latest
Hardware: amd64
OS: Any
Status: New
Severity: Affects Only Me
Priority: ---
Component: Individual Port(s)
Assignee: brooks at FreeBSD.org
Reporter: stadtkind2 at gmx.de
Assignee: brooks at FreeBSD.org
Flags: maintainer-feedback?(brooks at FreeBSD.org)
Hi,
I'm trying to compile a "hello world" OpenMP program, as per
http://llvm.org/releases/3.7.0/tools/clang/docs/ReleaseNotes.html#openmp-support
"OpenMP 3.1 is fully supported, but disabled by default. To enable it, please
use the -fopenmp=libomp command line option."
but all I get is (same with -fopenmp=libiomp5 and -fopenmp=libgomp):
$ clang37 -O -fopenmp=libomp omp.c
/tmp/omp-ada729.o: In function `main':
omp.c:(.text+0xb): undefined reference to `omp_set_dynamic'
omp.c:(.text+0x10): undefined reference to `omp_get_max_threads'
omp.c:(.text+0x51): undefined reference to `__kmpc_fork_call'
/tmp/omp-ada729.o: In function `.omp_outlined.':
omp.c:(.text+0x81): undefined reference to `omp_get_thread_num'
omp.c:(.text+0xa6): undefined reference to `__kmpc_critical'
omp.c:(.text+0xbc): undefined reference to `__kmpc_end_critical'
omp.c:(.text+0xc6): undefined reference to `omp_get_num_threads'
omp.c:(.text+0xf4): undefined reference to `__kmpc_cancel_barrier'
clang-3.7: error: linker command failed with exit code 1 (use -v to see
invocation)
$ pkg info llvm37
Name : llvm37
Version : 3.7.0_2
Installed on : Sun Sep 13 16:00:11 CEST 2015
Origin : devel/llvm37
Architecture : freebsd:10:x86:64
...
Options :
...
OPENMP : on
FreeBSD 10.2/amd64, llvm37 installed via pkg install.
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the freebsd-ports-bugs
mailing list