Date: Sun, 20 Sep 2015 18:06:40 +0000 From: bugzilla-noreply@freebsd.org To: freebsd-ports-bugs@FreeBSD.org Subject: [Bug 203223] devel/llvm37: undefined references when compiling with -fopenmp=libomp Message-ID: <bug-203223-13@https.bugs.freebsd.org/bugzilla/>
next in thread | raw e-mail | index | archive | help
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@FreeBSD.org Reporter: stadtkind2@gmx.de Assignee: brooks@FreeBSD.org Flags: maintainer-feedback?(brooks@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.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-203223-13>