Is There a Port for a compiler compatible with OpenMP and Imagemagick
Richard L. Hamilton
rlhamil at smart.net
Wed Apr 26 06:11:08 UTC 2017
Is this the sort of version cross-reference you're looking for?
https://gist.github.com/yamaya/2924292 <https://gist.github.com/yamaya/2924292>
> On Apr 26, 2017, at 00:38, Ryan Schmidt <ryandesign at macports.org> wrote:
>
>
>> On Apr 25, 2017, at 22:11, Fred Weinhaus <fmw at alink.net> wrote:
>>
>>
>>> On Apr 25, 2017, at 5:21 PM, Ryan Schmidt <ryandesign at macports.org> wrote:
>>>
>>>
>>>> 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.
>>
>> My apologies if I am replying the wrong way. I do not know how to post again to the same topic. This is my first topic on this forum. If replying like this is wrong, please point me in the right direction for this forum usages.
>
> Well it's a mailing list, not a forum. To reply to a message, press the Reply All button in your email program, that way you send your reply to both the sender's address and the list address. I've re-added the list address to this reply.
>
>
>> I can compile ImageMagick from source using MacPorts delegates by the following:
>>
>> ./configure 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/
>>
>>
>> But it does not enable OpenMP.
>
> I don't know much about openmp, sorry. You might need to ask the developers of ImageMagick.
>
>
>> I tried to check my versions of clang and gcc and get the following:
>>
>> clang --version
>> Apple LLVM version 8.1.0 (clang-802.0.42)
>> Target: x86_64-apple-darwin16.5.0
>> Thread model: posix
>> InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin
>>
>> and
>>
>> gcc --version
>> Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr --with-gxx-include-dir=/usr/include/c++/4.2.1
>> Apple LLVM version 8.1.0 (clang-802.0.42)
>> Target: x86_64-apple-darwin16.5.0
>> Thread model: posix
>> InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin
>>
>>
>> I do not see any clang version that is like 3.8 or 3.9.
>
> Yes, Apple assigns their own version numbers to the fork of clang they ship with Xcode and the command line tools. They used to tell us what FSF versions of clang those correspond to, but they don't anymore. I don't know what FSF version of clang Apple LLVM 8.1 corresponds to. Jeremy Sequoia probably knows.
>
>
>> Sorry, I am not a software or unix expert. Can you tell me how I can verify if the Xcode compilers are correct for enabling openmp?
>
> I don't know; maybe someone else on the list does.
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macports.org/pipermail/macports-users/attachments/20170426/f55f4844/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 842 bytes
Desc: Message signed with OpenPGP
URL: <http://lists.macports.org/pipermail/macports-users/attachments/20170426/f55f4844/attachment.sig>
More information about the macports-users
mailing list