[MacPorts] #57009: ImageMagick @6.9.9-40_1: has broken libomp detection logic, and when built with a macports-clang compiler inserts -lgomp into pkgconfig files, which breaks builds as -lgomp can't be found
MacPorts
noreply at macports.org
Wed Nov 6 15:12:33 UTC 2019
#57009: ImageMagick @6.9.9-40_1: has broken libomp detection logic, and when built
with a macports-clang compiler inserts -lgomp into pkgconfig files, which
breaks builds as -lgomp can't be found
--------------------------+------------------------
Reporter: kencu | Owner: ryandesign
Type: defect | Status: assigned
Priority: Normal | Milestone:
Component: ports | Version:
Resolution: | Keywords:
Port: ImageMagick |
--------------------------+------------------------
Comment (by kencu):
In [changeset:"d86e7e1adc21d0aa50370306f404253350dd93fb/macports-ports"
d86e7e1adc21d0aa50370306f404253350dd93fb/macports-ports] (master):
{{{
#!ConfigurableCommitTicketReference repository="macports-ports"
revision="d86e7e1adc21d0aa50370306f404253350dd93fb"
ImageMagick: explicity disable openmp
ImageMagick's openmp detection is not working correctly with clang,
particularly with llvm clang versions newer than 4.0.
see: https://trac.macports.org/ticket/57009
Although Apple's clang just indicates openmp is not supported,
llvm's newer clang versions pass the openmp test, but in the end
are misconfigured by inserting -gomp into the pkg-config link flags.
Even when this is corrected to -lomp, the implementation is flawed, and
the
libomp libraries cannot be found by the default ImageMagick pkg-config
libs.
Finally, if ImageMagick were built with an openmp-supporting clang, such
as
macports-clang-8.0, and if the link issues were properly sorted out, the
implementation and support is compiler dependent and the pkg-config files
may not match the capabilities of the compiler that attempts to compile
against
openmp in ImageMagick if it is not the same or a similar compiler.
Until this is properly sorted out, explicitly disable openmp on
ImageMagick,
which prevents incorrect pkg-config link libraries from being specified
when the compiler is a mp-clang compiler.
Once a workable plan is in place, a variant to enable openmp can be
considered.
see: https://trac.macports.org/ticket/24944
}}}
--
Ticket URL: <https://trac.macports.org/ticket/57009#comment:8>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list