IM 6.8.8-2 unable to compile under MacOS

Post any defects you find in the released or beta versions of the ImageMagick software here. Include the ImageMagick version, OS, and any command-line required to reproduce the problem. Got a patch for a bug? Post it here.
Post Reply
ig0rk0
Posts: 5
Joined: 2013-12-19T03:44:09-07:00
Authentication code: 6789

IM 6.8.8-2 unable to compile under MacOS

Post by ig0rk0 »

IM 6.8.8-2
MacOSX 10.7
Intel Compiler 13.0.1

Code: Select all

./configure --enable-shared --disable-static --without-pango --with-modules --disable-openmp --without-perl --with-quantum-depth=32 --without-x --with-fontconfig=yes --disable-dependency-tracking --enable-osx-universal-binary
Causes
checking for sys/ipc.h... no
checking sys/mman.h usability... no
checking sys/mman.h presence... yes
configure: WARNING: sys/mman.h: present but cannot be compiled
configure: WARNING: sys/mman.h: check for missing prerequisite headers?
configure: WARNING: sys/mman.h: see the Autoconf documentation
configure: WARNING: sys/mman.h: section "Present But Cannot Be Compiled"
configure: WARNING: sys/mman.h: proceeding with the compiler's result
configure: WARNING: ## ----------------------------------------- ##
configure: WARNING: ## Report this to http://www.imagemagick.org ##
configure: WARNING: ## ----------------------------------------- ##
...
checking size of long double... configure: error: in `/Users/User/Projects/IIS/ImageMagick-6.8.8-2':
configure: error: cannot compute sizeof (long double)
See `config.log' for more details
For a lot of headers
XCode version 4.6
Lions-Mac:ImageMagick-6.8.8-2 User$ gcc --version
i686-apple-darwin11-llvm-gcc-4.2 (GCC) 4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2336.11.00)
Copyright (C) 2007 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
Removing

Code: Select all

--disable-dependency-tracking --enable-osx-universal-binary
fixes configuration process, but I need MacOSX binaries that include both 32 and 64 bit versions

Also when using q32 instead of q16 I get unresolved externals on make stage.
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: IM 6.8.8-2 unable to compile under MacOS

Post by magick »

Use clang from the XCode development distribution. We compiled ImageMagick 6.8.8-2 yesterday with the Mac OS native compiler and it built the distribution without complaint. We do not support the Intel compiler. We tried at some point but it had numerous problems not only had compile time but it caused faults at runtime as well.
ig0rk0
Posts: 5
Joined: 2013-12-19T03:44:09-07:00
Authentication code: 6789

Re: IM 6.8.8-2 unable to compile under MacOS

Post by ig0rk0 »

After installing XCode command line tools and trying with default compiler I still can't build universal mac binaries with the same error.
Post Reply