Apple Clang and port:libomp
Eric Borisch
eborisch at macports.org
Wed Nov 10 22:35:10 UTC 2021
Jason,
You want to set:
compiler.openmp_version 3.0
(or whatever version of openmp you need.)
And the short answer is yes, this means you will build with something other
than Apple's clang, where they don't have the OpenMP support enabled for
some reason.
Thanks,
- Eric
On Wed, Nov 10, 2021 at 4:08 PM Jason Liu <jasonliu at umich.edu> wrote:
> Hi all,
>
> I feel like I should already know the answer to this question, but my
> brain is too tired at the moment to try to dig it out from my memory banks.
>
> If a MacPorts build is using Apple Clang, then does that mean that it will
> be unable to see port:libomp for OpenMP support? I've got a port that I'm
> working on that is giving the following messages:
>
> :info:configure -- Could NOT find OpenMP_C (missing: OpenMP_C_FLAGS
> OpenMP_C_LIB_NAMES)
> :info:configure -- Could NOT find OpenMP_CXX (missing: OpenMP_CXX_FLAGS
> OpenMP_CXX_LIB_NAMES)
> :info:configure -- Could NOT find OpenMP (missing: OpenMP_C_FOUND
> OpenMP_CXX_FOUND)
>
> (Note: I do already have depends_lib-append port:libomp in my Portfile.)
>
> Does this mean that I need to blacklist Apple Clang in order for the build
> to be able to see libomp? Or is there something like a PortGroup that I'm
> missing?
>
> --
> Jason Liu
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macports.org/pipermail/macports-dev/attachments/20211110/99a3096f/attachment.htm>
More information about the macports-dev
mailing list