Building ImageMagick-7.0.9-9 fails on Mac OS X 10.13.6

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
eiichi
Posts: 22
Joined: 2017-02-08T19:22:14-07:00
Authentication code: 1151

Building ImageMagick-7.0.9-9 fails on Mac OS X 10.13.6

Post by eiichi »

Building ImageMagick-7.0.9-9 fails with the error mentioned below:

Code: Select all

  CCLD     MagickCore/libMagickCore-7.Q16HDRI.la
Undefined symbols for architecture x86_64:
  "_aligned_alloc", referenced from:
      _AcquireAlignedMemory in libMagickCore_7_Q16HDRI_la-memory.o
      _AcquireVirtualMemory in libMagickCore_7_Q16HDRI_la-memory.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[1]: *** [MagickCore/libMagickCore-7.Q16HDRI.la] Error 1
make: *** [all] Error 2

Has anyone encountered this problem?

MY Build Environment:
---------------------------------------------------------
ProductName: Mac OS X
ProductVersion: 10.13.6
BuildVersion: 17G10021

uname -a
Darwin JSBach.local 17.7.0 Darwin Kernel Version 17.7.0
root:xnu-4570.71.63~1/RELEASE_X86_64 x86_64

pkgutil --pkg-info=com.apple.pkg.CLTools_Executables
package-id: com.apple.pkg.CLTools_Executables
version: 10.1.0.0.1.1539992718

User avatar
magick
Site Admin
Posts: 11214
Joined: 2003-05-31T11:32:55-07:00

Re: Building ImageMagick-7.0.9-9 fails on Mac OS X 10.13.6

Post by magick »

We received another similar report. The problem appears to be related to an older version of the clang compiler. We compiled with the latest release of Xcode and it the build completes without complaint. Can you try upgrading your Xcode release? In the mean-time, we'll need to add a conditional compile statement where we check the clang compiler release.

eiichi
Posts: 22
Joined: 2017-02-08T19:22:14-07:00
Authentication code: 1151

Re: Building ImageMagick-7.0.9-9 fails on Mac OS X 10.13.6

Post by eiichi »

magick wrote:
2019-12-18T05:32:21-07:00
We received another similar report. The problem appears to be related to an older version of the clang compiler. We compiled with the latest release of Xcode and it the build completes without complaint. Can you try upgrading your Xcode release? In the mean-time, we'll need to add a conditional compile statement where we check the clang compiler release.
Thanks for your quick reply.
I'm using the latest version Xcode 10.1 on on Mac OS X 10.13.6, so I can't upgrade Xcode on my old system.

User avatar
fmw42
Posts: 26261
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Building ImageMagick-7.0.9-9 fails on Mac OS X 10.13.6

Post by fmw42 »

I have the same issue (as Magick already knows). I am on Sierra.

User avatar
magick
Site Admin
Posts: 11214
Joined: 2003-05-31T11:32:55-07:00

Re: Building ImageMagick-7.0.9-9 fails on Mac OS X 10.13.6

Post by magick »

Thanks for the problem report. We can reproduce it and will have a patch to fix it in GIT master branch @ https://github.com/ImageMagick/ImageMagick later today. The patch will be available in the beta releases of ImageMagick @ https://www.imagemagick.org/download/beta/ by sometime tomorrow.

eiichi
Posts: 22
Joined: 2017-02-08T19:22:14-07:00
Authentication code: 1151

Re: Building ImageMagick-7.0.9-9 fails on Mac OS X 10.13.6

Post by eiichi »

Thanks for a quick fix.
I can confirm that this issue has been resolved on the latest ImageMagick-master.

Post Reply