[MacPorts] #68363: soxr @0.1.3_0 build problem
MacPorts
noreply at macports.org
Mon Oct 30 02:27:01 UTC 2023
#68363: soxr @0.1.3_0 build problem
---------------------+--------------------
Reporter: ith140 | Owner: (none)
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version: 2.8.1
Resolution: | Keywords: sonoma
Port: soxr |
---------------------+--------------------
Comment (by kencu):
when libomp is built with the +top_level variant, then openmp will be
opportunistically found by soxr.
However, Xcode clang doesn't know much about openmp, and although the
-fopenmp flag is added to the build, the library is not added... you can
manually add the openmp library to the build to fix that, inelegant, but
works.
The opensource clang knows what to do with openmp -- building soxr with
macports-clang-17 works, even if libopenmp is installed with the
+top_level variant, as the library is added.
All of this requires attention to set up deterministically for builds that
might or might not want openmp. If it is decided that soxr always should
be built with openmp, then the build can be set up that way, and suitable
compilers required.
MacPorts has not fully explored how to do this correctly as yet. Some type
of unifying approach for comprehensive openmp support is needed, where
libraries can indicate to ports that request them that openmp is needed,
etc.
If you use libopenmp with the +top_level variant, it would not be
surprising to run into similar issues with other ports, possibly quite
frequently.
--
Ticket URL: <https://trac.macports.org/ticket/68363#comment:5>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list