[Bug 234050] devel/cmake: find_package(OpenMP) doesn't find the openmp package (when clang from devel/llvm70 is used)

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Sun Dec 16 08:25:38 GMT 2018


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=234050

            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 at FreeBSD.org
          Reporter: yuri at freebsd.org
                CC: brooks at FreeBSD.org, kde at FreeBSD.org
                CC: brooks at FreeBSD.org, kde at 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+=...

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 
-fstack-protector -L/usr/local/lib
ReleaseTests/CMakeFiles/IndexingTest.dir/IndexingTest.cpp.o  -o
ReleaseTests/IndexingTest 
-Wl,-rpath,/usr/ports/math/combblas/work/.build:/usr/ports/math/combblas/work/.build/usort:/usr/ports/math/combblas/work/.build/graph500-1.2/generator
libCombBLAS.so.1.16.0 -Wl,-rpath=/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'

-- 
You are receiving this mail because:
You are on the CC list for the bug.


More information about the kde-freebsd mailing list