[MacPorts] #57009: ImageMagick @6.9.9-40_1: inserts -lgomp into pkgconfig files, which breaks build when using clang

MacPorts noreply at macports.org
Thu Sep 12 05:50:28 UTC 2019


#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:
Resolution:               |   Keywords:
      Port:  ImageMagick  |
--------------------------+------------------------

Comment (by kencu):

 The `libomp` library directory is not in the default library search path
 {{{
 $ port contents libomp | grep libomp.dylib
   /opt/local/lib/libomp/libomp.dylib
 }}}

 so `libtool` doesn't find it.
 {{{
 '/opt/local/bin/clang-mp-5.0 -bundle  -arch x86_64 -arch x86_64  -o
 .libs/im.so  .libs/im_la-im.o .libs/im_la-import_gate_virtuoso.o
 -L/opt/local/lib/openssl-1.0 -L/opt/local/lib
 /opt/local/lib/libMagickWand-6.Q16.dylib
 /opt/local/lib/libMagickCore-6.Q16.dylib /opt/local/lib/liblcms2.dylib
 /opt/local/lib/libfftw3.dylib /opt/local/lib/libxml2.dylib
 /opt/local/lib/libfontconfig.dylib /opt/local/lib/libfreetype.dylib
 /opt/local/lib/libXext.dylib /opt/local/lib/libSM.dylib
 /opt/local/lib/libICE.dylib /opt/local/lib/libX11.dylib
 /opt/local/lib/libXt.dylib /opt/local/lib/liblzma.dylib -lbz2 -lz
 /opt/local/lib/libltdl.dylib -lomp -lm -Wl,-headerpad_max_install_names'
 + eval '/opt/local/bin/clang-mp-5.0 -bundle  -arch x86_64 -arch x86_64  -o
 .libs/im.so  .libs/im_la-im.o .libs/im_la-import_gate_virtuoso.o
 -L/opt/local/lib/openssl-1.0 -L/opt/local/lib
 /opt/local/lib/libMagickWand-6.Q16.dylib
 /opt/local/lib/libMagickCore-6.Q16.dylib /opt/local/lib/liblcms2.dylib
 /opt/local/lib/libfftw3.dylib /opt/local/lib/libxml2.dylib
 /opt/local/lib/libfontconfig.dylib /opt/local/lib/libfreetype.dylib
 /opt/local/lib/libXext.dylib /opt/local/lib/libSM.dylib
 /opt/local/lib/libICE.dylib /opt/local/lib/libX11.dylib
 /opt/local/lib/libXt.dylib /opt/local/lib/liblzma.dylib -lbz2 -lz
 /opt/local/lib/libltdl.dylib -lomp -lm -Wl,-headerpad_max_install_names'
 ++ /opt/local/bin/clang-mp-5.0 -bundle -arch x86_64 -arch x86_64 -o
 .libs/im.so .libs/im_la-im.o .libs/im_la-import_gate_virtuoso.o
 -L/opt/local/lib/openssl-1.0 -L/opt/local/lib
 /opt/local/lib/libMagickWand-6.Q16.dylib
 /opt/local/lib/libMagickCore-6.Q16.dylib /opt/local/lib/liblcms2.dylib
 /opt/local/lib/libfftw3.dylib /opt/local/lib/libxml2.dylib
 /opt/local/lib/libfontconfig.dylib /opt/local/lib/libfreetype.dylib
 /opt/local/lib/libXext.dylib /opt/local/lib/libSM.dylib
 /opt/local/lib/libICE.dylib /opt/local/lib/libX11.dylib
 /opt/local/lib/libXt.dylib /opt/local/lib/liblzma.dylib -lbz2 -lz
 /opt/local/lib/libltdl.dylib -lomp -lm -Wl,-headerpad_max_install_names
 ld: library not found for -lomp
 clang: error: linker command failed with exit code 1 (use -v to see
 invocation)
 }}}
 explicitly adding it to the LDFLAGS works.

-- 
Ticket URL: <https://trac.macports.org/ticket/57009#comment:5>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list