[Bug 223678] devel/cmake: find_package(OpenMP) doesn't find the openmp package (when base clang compiler is used)

2023-05-01 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=223678 --- Comment #31 from Adriaan de Groot --- Create a sample project that needs OpenMP: [adridg@beastie /tmp/openmp]$ cat > CMakeLists.txt cmake_minimum_required(VERSION 3.20 FATAL_ERROR) project(derp VERSION 1.0 LANGUAGES C CXX) find_package

[Bug 223678] devel/cmake: find_package(OpenMP) doesn't find the openmp package (when base clang compiler is used)

2023-05-01 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=223678 John Hein changed: What|Removed |Added CC||jcfyecr...@liamekaens.com --- Comment

[Bug 223678] devel/cmake: find_package(OpenMP) doesn't find the openmp package (when base clang compiler is used)

2019-04-05 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=223678 Adriaan de Groot changed: What|Removed |Added Status|Open|Closed Resolution|---

[Bug 223678] devel/cmake: find_package(OpenMP) doesn't find the openmp package (when base clang compiler is used)

2019-04-05 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=223678 --- Comment #29 from commit-h...@freebsd.org --- A commit references this bug: Author: adridg Date: Fri Apr 5 11:46:46 UTC 2019 New revision: 497948 URL: https://svnweb.freebsd.org/changeset/ports/497948 Log: Update CMake to latest rele

[Bug 223678] devel/cmake: find_package(OpenMP) doesn't find the openmp package (when base clang compiler is used)

2019-03-30 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=223678 Tobias C. Berner changed: What|Removed |Added Flags|maintainer-feedback?(kde@Fr |maintainer-feedback+

[Bug 223678] devel/cmake: find_package(OpenMP) doesn't find the openmp package (when base clang compiler is used)

2019-03-10 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=223678 --- Comment #28 from Yuri Victorovich --- (In reply to Adriaan de Groot from comment #27) Hi Adriaan, I tried several ports that were breaking because of OpenMP. With this patch they detect OpenMP okay now. Thank you for fixing this! Yur

[Bug 223678] devel/cmake: find_package(OpenMP) doesn't find the openmp package (when base clang compiler is used)

2019-03-10 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=223678 --- Comment #27 from Adriaan de Groot --- @yuri in particular: please replace /usr/local/share/cmake/Modules/FindOpenMP.cmake with the one attached (or apply the diff) and do your testing. These changes aren't really upstreamable, but could

[Bug 223678] devel/cmake: find_package(OpenMP) doesn't find the openmp package (when base clang compiler is used)

2019-03-10 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=223678 Adriaan de Groot changed: What|Removed |Added Attachment #202774|0 |1 is obsolete|

[Bug 223678] devel/cmake: find_package(OpenMP) doesn't find the openmp package (when base clang compiler is used)

2019-03-10 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=223678 Adriaan de Groot changed: What|Removed |Added Attachment #202773|0 |1 is obsolete|

[Bug 223678] devel/cmake: find_package(OpenMP) doesn't find the openmp package (when base clang compiler is used)

2019-03-10 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=223678 --- Comment #24 from Adriaan de Groot --- A couple of things need(ed) doing: - -fopenmp also needs to be passed as a link flag for all variants - -L needs to be passed to base clang - -I needs to be passed to base clang With a non-base

[Bug 223678] devel/cmake: find_package(OpenMP) doesn't find the openmp package (when base clang compiler is used)

2019-03-10 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=223678 --- Comment #23 from Adriaan de Groot --- *** Bug 234050 has been marked as a duplicate of this bug. *** -- You are receiving this mail because: You are the assignee for the bug.

[Bug 223678] devel/cmake: find_package(OpenMP) doesn't find the openmp package (when base clang compiler is used)

2019-03-10 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=223678 --- Comment #22 from Adriaan de Groot --- Yuri, here's a patched-up FindOpenMP.cmake (and the diff between the one included with cmake-3.13.3 and the patch-up version). It basically hits things with a hammer again until stuff works. - Whe

[Bug 223678] devel/cmake: find_package(OpenMP) doesn't find the openmp package (when base clang compiler is used)

2019-03-10 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=223678 --- Comment #21 from Adriaan de Groot --- Created attachment 202774 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=202774&action=edit Diff from installed FindOpenMP -- You are receiving this mail because: You are the assignee f

[Bug 223678] devel/cmake: find_package(OpenMP) doesn't find the openmp package (when base clang compiler is used)

2019-03-10 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=223678 Adriaan de Groot changed: What|Removed |Added Attachment #202773|text/x-cmake|text/plain mime type|

[Bug 223678] devel/cmake: find_package(OpenMP) doesn't find the openmp package (when base clang compiler is used)

2018-12-24 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=223678 --- Comment #19 from Adriaan de Groot --- Both PR 234050 and PR 223678 need someone to chase what CMake is doing exactly -- you may find the cmake flags --debug-trycompile and --trace useful -- and to propose a patch. This isn't something w

[Bug 223678] devel/cmake: find_package(OpenMP) doesn't find the openmp package (when base clang compiler is used)

2018-12-16 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=223678 --- Comment #18 from Yuri Victorovich --- See also: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=234050 -- You are receiving this mail because: You are the assignee for the bug.

[Bug 223678] devel/cmake: find_package(OpenMP) doesn't find the openmp package (when base clang compiler is used)

2018-12-16 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=223678 Yuri Victorovich changed: What|Removed |Added Summary|devel/cmake:|devel/cmake:

[Bug 223678] devel/cmake: find_package(OpenMP) doesn't find the openmp package

2018-08-31 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=223678 Yuri Victorovich changed: What|Removed |Added Resolution|FIXED |--- Status|Closed

[Bug 223678] devel/cmake: find_package(OpenMP) doesn't find the openmp package

2018-08-31 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=223678 --- Comment #16 from Yuri Victorovich --- For some reason, find_package(OpenMP) still doesn't work: -- Could NOT find OpenMP_C (missing: OpenMP_C_FLAGS OpenMP_C_LIB_NAMES) -- Could NOT find OpenMP_CXX (missing: OpenMP_CXX_FLAGS OpenMP_CXX_

[Bug 223678] devel/cmake: find_package(OpenMP) doesn't find the openmp package

2018-04-17 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=223678 Adriaan de Groot changed: What|Removed |Added Resolution|--- |FIXED Status|In Pro

[Bug 223678] devel/cmake: find_package(OpenMP) doesn't find the openmp package

2018-04-15 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=223678 --- Comment #14 from commit-h...@freebsd.org --- A commit references this bug: Author: adridg Date: Sun Apr 15 21:43:58 UTC 2018 New revision: 467437 URL: https://svnweb.freebsd.org/changeset/ports/467437 Log: Update CMake to 3.11.0. Tha

[Bug 223678] devel/cmake: find_package(OpenMP) doesn't find the openmp package

2018-04-08 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=223678 Adriaan de Groot changed: What|Removed |Added Status|New |In Progress -- You are receivi

[Bug 223678] devel/cmake: find_package(OpenMP) doesn't find the openmp package

2018-04-07 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=223678 --- Comment #13 from Adriaan de Groot --- For CMake 3.11, a new issue is introduced where `find_package(OpenMP)` does the right thing and finds -fopenmp as the right flag, and then it goes looking for supporting libraries. With CMake 3.11,

[Bug 223678] devel/cmake: find_package(OpenMP) doesn't find the openmp package

2017-11-17 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=223678 --- Comment #12 from Christian Pfeiffer --- @adriaan I had a look through the cmake ports description and noticed you generally replace `/usr/local` with $LOCALBASE using sed and applied some patches. >From what I explained above, it's in

[Bug 223678] devel/cmake: find_package(OpenMP) doesn't find the openmp package

2017-11-17 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=223678 --- Comment #11 from Christian Pfeiffer --- Okay, that was my understanding of it as well. I couldn't check myself yesterday since I didn't have my FreeBSD box at hand, but I do now. I think the solution would be to try the current compile

[Bug 223678] devel/cmake: find_package(OpenMP) doesn't find the openmp package

2017-11-17 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=223678 --- Comment #10 from Adriaan de Groot --- I've looked more closely at the `devel/openmp` port: - it installs ${LOCALBASE}/include/omp.h - it installs ${LOCALBASE}/lib/libomp.so So doing a find_file and find_library with /usr/local and $E

[Bug 223678] devel/cmake: find_package(OpenMP) doesn't find the openmp package

2017-11-16 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=223678 --- Comment #9 from Christian Pfeiffer --- >To know if the flag itself works, `-fopenmp -Werror` could be used (assuming >clang), without needing to `#include `. That would weed out base clang >on 10.x. `OpenMP_FOUND` should however impl

[Bug 223678] devel/cmake: find_package(OpenMP) doesn't find the openmp package

2017-11-16 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=223678 --- Comment #8 from Adriaan de Groot --- @christian, clang -fopenmp itself works, e.g.: ``` $ echo "int main() { return 0; }" > t.c $ cc -fopenmp -c t.c ``` To know if the flag itself works, `-fopenmp -Werror` could be used (assum

[Bug 223678] devel/cmake: find_package(OpenMP) doesn't find the openmp package

2017-11-16 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=223678 Christian Pfeiffer changed: What|Removed |Added CC||cpfeif...@live.de --- Comment

[Bug 223678] devel/cmake: find_package(OpenMP) doesn't find the openmp package

2017-11-16 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=223678 --- Comment #6 from Adriaan de Groot --- On 12-CURRENT amd64, base clang will find OpenMP if I add `-DCMAKE_CXX_FLAGS="-I/usr/local/include -L/usr/local/lib"` (which makes sense, given that OpenMP is found in $LOCALBASE). So it may be suffi

[Bug 223678] devel/cmake: find_package(OpenMP) doesn't find the openmp package

2017-11-16 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=223678 --- Comment #5 from Adriaan de Groot --- Does base clang support OpenMP (ever?). I just tried on a 10.4 box; complete logs are in the upstream bug report, but basically: - using base clang doesn't find OpenMP - using clang40 (e.g. settin

[Bug 223678] devel/cmake: find_package(OpenMP) doesn't find the openmp package

2017-11-15 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=223678 --- Comment #4 from Yuri Victorovich --- (In reply to Adriaan de Groot from comment #3) Standalone port worked, but I had to set CMAKE_REQUIRED_LIBRARIES for check_c_source_compiles that was there. Now FindOpenMP.cmake doesn't have check_c

[Bug 223678] devel/cmake: find_package(OpenMP) doesn't find the openmp package

2017-11-15 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=223678 --- Comment #3 from Adriaan de Groot --- *did* it actually work before? Because a simple `find_package(OpenMP)` doesn't find it on my 12-current system, either with CMake 3.8.2 (before the merge) or CMake 3.9 (after). The module itself was

[Bug 223678] devel/cmake: find_package(OpenMP) doesn't find the openmp package

2017-11-15 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=223678 Yuri Victorovich changed: What|Removed |Added CC||adr...@freebsd.org --- Comment

[Bug 223678] devel/cmake: find_package(OpenMP) doesn't find the openmp package

2017-11-14 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=223678 Yuri Victorovich changed: What|Removed |Added CC||y...@freebsd.org --- Comment #1

[Bug 223678] devel/cmake: find_package(OpenMP) doesn't find the openmp package

2017-11-14 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=223678 Bug ID: 223678 Summary: devel/cmake: find_package(OpenMP) doesn't find the openmp package Product: Ports & Packages Version: Latest Hardware: Any OS:

maintainer-feedback requested: [Bug 223678] devel/cmake: find_package(OpenMP) doesn't find the openmp package

2017-11-14 Thread bugzilla-noreply
Yuri Victorovich has reassigned Bugzilla Automation 's request for maintainer-feedback to k...@freebsd.org: Bug 223678: devel/cmake: find_package(OpenMP) doesn't find the openmp package https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=223678 --- Description --- I put 'find