Date: Sun, 16 Dec 2018 08:25:38 +0000 From: bugzilla-noreply@freebsd.org To: ports-bugs@FreeBSD.org Subject: [Bug 234050] devel/cmake: find_package(OpenMP) doesn't find the openmp package (when clang from devel/llvm70 is used) Message-ID: <bug-234050-7788@https.bugs.freebsd.org/bugzilla/>
next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D234050 Bug ID: 234050 Summary: devel/cmake: find_package(OpenMP) doesn't find the openmp package (when clang from devel/llvm70 is used) Product: Ports & Packages Version: Latest Hardware: Any OS: Any Status: New Severity: Affects Only Me Priority: --- Component: Individual Port(s) Assignee: ports-bugs@FreeBSD.org Reporter: yuri@freebsd.org CC: brooks@FreeBSD.org, kde@FreeBSD.org CC: brooks@FreeBSD.org, kde@FreeBSD.org llvm70 contains OpenMP, and it isn't properly found by find_package(OpenMP). Testcase: In the port math/combblas of rev.487559 remove the line LDFLAGS+= =3D... Build of the port now fails because libomp.so isn't found, see log below. I think this is a regression with llbm70, I don't recall this happening with llvm60. ---log--- && /usr/local/bin/clang++70 -O2 -pipe -fno-omit-frame-pointer -fstack-protector -isystem /usr/local/include -fno-strict-aliasing -fno-omit-frame-pointer -isystem /usr/local/include -O2 -pipe -fno-omit-frame-pointer -fstack-protector -isystem /usr/local/include -fno-strict-aliasing -fno-omit-frame-pointer -isystem /usr/local/include=20 -fstack-protector -L/usr/local/lib ReleaseTests/CMakeFiles/IndexingTest.dir/IndexingTest.cpp.o -o ReleaseTests/IndexingTest=20 -Wl,-rpath,/usr/ports/math/combblas/work/.build:/usr/ports/math/combblas/wo= rk/.build/usort:/usr/ports/math/combblas/work/.build/graph500-1.2/generator libCombBLAS.so.1.16.0 -Wl,-rpath=3D/usr/local/lib/gcc7 -Wl,-rpath -Wl,/usr/local/lib -L/usr/local/lib/gcc7 /usr/local/lib/libmpicxx.so /usr/local/lib/libmpi.so usort/libUsortlib.so graph500-1.2/generator/libGraphGenlib.so && : ReleaseTests/CMakeFiles/IndexingTest.dir/IndexingTest.cpp.o: In function `.omp_outlined.': IndexingTest.cpp:(.text+0x35d3): undefined reference to `__kmpc_global_thread_num' IndexingTest.cpp:(.text+0x362b): undefined reference to `__kmpc_for_static_init_4' --=20 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-234050-7788>