[MacPorts] #57009: ImageMagick @6.9.9-40_1: inserts -lgomp into pkgconfig files, which breaks build when using clang
MacPorts
noreply at macports.org
Tue Aug 21 16:04:52 UTC 2018
#57009: ImageMagick @6.9.9-40_1: inserts -lgomp into pkgconfig files, which breaks
build when using clang
--------------------+-------------------------
Reporter: kencu | Owner: ryandesign
Type: defect | Status: assigned
Priority: Normal | Milestone:
Component: ports | Version:
Keywords: | Port: ImageMagick
--------------------+-------------------------
In the process of trying to upgrade `virtuoso-7` on my SnowLeopard system
that is configured to LibcxxOnOlderSystems, the rebuild of `virtuoso-7`
with `clang-3.9` fails due to:
{{{
CCLD im.la
ld: library not found for -lgomp
clang: error: linker command failed with exit code 1 (use -v to see
invocation)
make[3]: *** [im.la] Error 1
}}}
it appears that this build is picking up this library from `ImageMagick`'s
`pkgconfig` files:
{{{
$ pwd
/opt/local/lib/pkgconfig
$ ag lgomp .
ImageMagick++-6.Q16.pc
13:Libs.private: -L${libdir} -l${libname} -L/opt/local/lib -llcms2
-L/opt/local/lib -lfreetype -L/opt/local/lib -lfftw3 -L/opt/local/lib
-lxml2 -L/opt/local/lib -lfontconfig -lfreetype -lXext -lSM -lICE -lX11
-lXt -L/opt/local/lib -llzma -lbz2 -L/opt/local/lib -lz -lltdl -lm -lgomp
-lm
ImageMagick++.pc
13:Libs.private: -L${libdir} -l${libname} -L/opt/local/lib -llcms2
-L/opt/local/lib -lfreetype -L/opt/local/lib -lfftw3 -L/opt/local/lib
-lxml2 -L/opt/local/lib -lfontconfig -lfreetype -lXext -lSM -lICE -lX11
-lXt -L/opt/local/lib -llzma -lbz2 -L/opt/local/lib -lz -lltdl -lm -lgomp
-lm
ImageMagick-6.Q16.pc
14:Libs.private: -L${libdir} -l${libname} -L/opt/local/lib -llcms2
-L/opt/local/lib -lfreetype -L/opt/local/lib -lfftw3 -L/opt/local/lib
-lxml2 -L/opt/local/lib -lfontconfig -lfreetype -lXext -lSM -lICE -lX11
-lXt -L/opt/local/lib -llzma -lbz2 -L/opt/local/lib -lz -lltdl -lm -lgomp
-lm
ImageMagick.pc
14:Libs.private: -L${libdir} -l${libname} -L/opt/local/lib -llcms2
-L/opt/local/lib -lfreetype -L/opt/local/lib -lfftw3 -L/opt/local/lib
-lxml2 -L/opt/local/lib -lfontconfig -lfreetype -lXext -lSM -lICE -lX11
-lXt -L/opt/local/lib -llzma -lbz2 -L/opt/local/lib -lz -lltdl -lm -lgomp
-lm
Magick++-6.Q16.pc
13:Libs.private: -L${libdir} -l${libname} -L/opt/local/lib -llcms2
-L/opt/local/lib -lfreetype -L/opt/local/lib -lfftw3 -L/opt/local/lib
-lxml2 -L/opt/local/lib -lfontconfig -lfreetype -lXext -lSM -lICE -lX11
-lXt -L/opt/local/lib -llzma -lbz2 -L/opt/local/lib -lz -lltdl -lm -lgomp
-lm
Magick++.pc
13:Libs.private: -L${libdir} -l${libname} -L/opt/local/lib -llcms2
-L/opt/local/lib -lfreetype -L/opt/local/lib -lfftw3 -L/opt/local/lib
-lxml2 -L/opt/local/lib -lfontconfig -lfreetype -lXext -lSM -lICE -lX11
-lXt -L/opt/local/lib -llzma -lbz2 -L/opt/local/lib -lz -lltdl -lm -lgomp
-lm
MagickCore-6.Q16.pc
15:Libs.private: -L${libdir} -l${libname} -L/opt/local/lib -llcms2
-L/opt/local/lib -lfreetype -L/opt/local/lib -lfftw3 -L/opt/local/lib
-lxml2 -L/opt/local/lib -lfontconfig -lfreetype -lXext -lSM -lICE -lX11
-lXt -L/opt/local/lib -llzma -lbz2 -L/opt/local/lib -lz -lltdl -lm -lgomp
-lm
MagickCore.pc
15:Libs.private: -L${libdir} -l${libname} -L/opt/local/lib -llcms2
-L/opt/local/lib -lfreetype -L/opt/local/lib -lfftw3 -L/opt/local/lib
-lxml2 -L/opt/local/lib -lfontconfig -lfreetype -lXext -lSM -lICE -lX11
-lXt -L/opt/local/lib -llzma -lbz2 -L/opt/local/lib -lz -lltdl -lm -lgomp
-lm
MagickWand-6.Q16.pc
15:Libs.private: -L${libdir} -l${libname} -L/opt/local/lib -llcms2
-L/opt/local/lib -lfreetype -L/opt/local/lib -lfftw3 -L/opt/local/lib
-lxml2 -L/opt/local/lib -lfontconfig -lfreetype -lXext -lSM -lICE -lX11
-lXt -L/opt/local/lib -llzma -lbz2 -L/opt/local/lib -lz -lltdl -lm -lgomp
-lm
MagickWand.pc
15:Libs.private: -L${libdir} -l${libname} -L/opt/local/lib -llcms2
-L/opt/local/lib -lfreetype -L/opt/local/lib -lfftw3 -L/opt/local/lib
-lxml2 -L/opt/local/lib -lfontconfig -lfreetype -lXext -lSM -lICE -lX11
-lXt -L/opt/local/lib -llzma -lbz2 -L/opt/local/lib -lz -lltdl -lm -lgomp
-lm
Wand-6.Q16.pc
15:Libs.private: -L${libdir} -l${libname} -L/opt/local/lib -llcms2
-L/opt/local/lib -lfreetype -L/opt/local/lib -lfftw3 -L/opt/local/lib
-lxml2 -L/opt/local/lib -lfontconfig -lfreetype -lXext -lSM -lICE -lX11
-lXt -L/opt/local/lib -llzma -lbz2 -L/opt/local/lib -lz -lltdl -lm -lgomp
-lm
Wand.pc
15:Libs.private: -L${libdir} -l${libname} -L/opt/local/lib -llcms2
-L/opt/local/lib -lfreetype -L/opt/local/lib -lfftw3 -L/opt/local/lib
-lxml2 -L/opt/local/lib -lfontconfig -lfreetype -lXext -lSM -lICE -lX11
-lXt -L/opt/local/lib -llzma -lbz2 -L/opt/local/lib -lz -lltdl -lm -lgomp
-lm
}}}
AFAIK, `lgomp` is only available when using `gcc` and as above, errors out
when using `clang`. I am not certain why `ImageMagick` is inserting
`lgomp` into it's recommended link libraries.
--
Ticket URL: <https://trac.macports.org/ticket/57009>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list