Is There a Port for a compiler compatible with OpenMP and Imagemagick

Ryan Schmidt ryandesign at macports.org
Wed Apr 26 00:21:16 UTC 2017


> On Apr 25, 2017, at 18:38, Fred Weinhaus <fmw at alink.net> wrote:
> 
> I am trying to install Imagemagick from source using all my delegates
> installed from MacPorts. I have been doing this for years on OSX
> SnowLeopard. But I recently bought a new Mac with OSX 10.12.4 Sierra and
> the compiler will compile Imagemagick fine, except there is not support
> for OpenMP. I have tried using gcc and gcc5 and gcc6 from MacPorts, but
> that does not seem to help. I have found a document at
> https://solarianprogrammer.com/2016/09/22/compiling- gcc-6-macos/ which
> implies that gcc6 should work with the addition of a few other delegates. I did
> install the ports for all those delegates suggested, but it still does not work.
> The following is my configure command:
> 
> 
> ./configure CC=/opt/local/lib/gcc6/gcc CXX=/opt/local/lib/gcc6/g++ \
> CPPFLAGS='-I/opt/local/include' LDFLAGS='-L/opt/local/lib' \
> --enable-openmp \
> --enable-delegate-build --enable-shared --disable-static --disable-opencl \
> --with-modules --with-quantum-depth=16 --without-wmf --with-rsvg \
> --disable-silent-rules --disable-dependency-tracking --without-pango \
> --with-lqr --with-gslib --with-gs-font-
> dir=/opt/local/share/ghostscript/fonts/
> 
> 
> 
> Can anyone recommend a compiler port that is compatible with Imagemagick and
> OpenMP?
> 
> Seems to me that the MacPorts ImageMagick port maintainer must be using something 
> to properly compile Imagemagick with OpenMP for your Imagemagick port.
> 
> Thanks.


Like most ports, the ImageMagick port uses the default compiler for the currently running macOS / Xcode version (i.e. clang on OS X 10.7 and later). The portfile doesn't contain any statements about openmp so I have no idea whether the port supports openmp. My understanding is that support for openmp was added in clang 3.8 if that helps.

Attempting to use FSF GCC C++ compilers on OS X 10.9 or later will usually result in problems, since FSF GCC C++ uses libstdc++ and any dependencies you may be trying to use, including dependencies provided by macOS or MacPorts, were built using clang++ using libc++, and you cannot mix and match C++ libraries like that.




More information about the macports-users mailing list