Failed to compile graphics/ImageMagick

Code:
[/usr/home/alie]$ uname -smr
FreeBSD 9.0-STABLE amd64

Code:
make  check-TESTS check-local
PASS: tests/validate-compare.sh
PASS: tests/validate-composite.sh
PASS: tests/validate-convert.sh
PASS: tests/validate-identify.sh
PASS: tests/validate-import.sh
PASS: tests/validate-montage.sh
PASS: tests/validate-pipe.sh
PASS: tests/validate-stream.sh
PASS: tests/validate-formats-in-memory.sh
PASS: tests/validate-formats-on-disk.sh
FAIL: Magick++/tests/exceptions.sh
.
.
.
===========================================
1 of 48 tests failed                                                                                                                                                                                      
See ./test-suite.log                                                                                                                                                                                      
Please report to http://www.imagemagick.org                                                                                                                                                               
===========================================                                                                                                                                                               
*** Error code 1                                                                                                                                                                                          

Stop in /usr/ports/graphics/ImageMagick/work/ImageMagick-6.7.4-4.
*** Error code 1

Stop in /usr/ports/graphics/ImageMagick/work/ImageMagick-6.7.4-4.
*** Error code 1

Stop in /usr/ports/graphics/ImageMagick/work/ImageMagick-6.7.4-4.
*** Error code 1

Stop in /usr/ports/graphics/ImageMagick/work/ImageMagick-6.7.4-4.
*** Error code 1

Stop in /usr/ports/graphics/ImageMagick.
*** Error code 1

Stop in /usr/ports/graphics/ImageMagick.
** Command failed [exit code 1]: /usr/bin/script -qa /tmp/portupgrade20120113-5061-wasc01-0 env
 UPGRADE_TOOL=portupgrade UPGRADE_PORT=ImageMagick-6.7.3.4 UPGRADE_PORT_VER=6.7.3.4 make

From test-suite.log
Code:
=========================================
   ImageMagick 6.7.4: ./test-suite.log
=========================================

1 of 48 tests failed.

.. contents:: :depth: 2


FAIL: Magick++/tests/exceptions.sh (exit: 139)
==============================================

Segmentation fault (core dumped)
Anyone got same issue?
 
There was a mention of problems with either GCC 4.6 or FreeBSD-10 and ImageMagic on the -ports mailing list recently. Are either of those involved?
 
wblock@ said:
There was a mention of problems with either GCC 4.6 or FreeBSD-10 and ImageMagic on the -ports mailing list recently. Are either of those involved?

I am using FreeBSD 9.0-STABLE and I am unsure about GCC version.

Code:
[/usr/ports]$ gcc -v
Using built-in specs.
Target: amd64-undermydesk-freebsd
Configured with: FreeBSD/amd64 system compiler
Thread model: posix
gcc version 4.2.1 20070831 patched [FreeBSD]
 
Same context here - plain vanilla FreeBSD 9.0, ImageMagick fails a different test though:

Code:
=========================================
   ImageMagick 6.7.4: ./test-suite.log   
=========================================

1 of 48 tests failed.  

.. contents:: :depth: 2


FAIL: Magick++/tests/coderInfo.sh (exit: 1)
===========================================

Caught exception: coderInfo: unable to load module `/usr/ports/graphics/ImageMagick/work/ImageMagick-6.7.4-4/coders/url.la': file not found @ error/module.c/OpenModule/1278

don't even know where to start looking for the cause :-(
 
Prize! 5 of 48 fail.

Code:
ImageMagick-nox11
ImageMagick-6.7.4-4
FreeBSD 8.2-RELEASE
gcc-4.4.7.20120117 
CFLAGS="-O2 -pipe -funroll-loops -march=nocona

explicit make.conf test to disable -march=core2 and -O3 optimizations

Code:
=========================================
   ImageMagick 6.7.4: ./test-suite.log
=========================================

5 of 48 tests failed.

.. contents:: :depth: 2


FAIL: tests/validate-formats-in-memory.sh (exit: 132)
=====================================================

Illegal instruction (core dumped)

FAIL: tests/validate-formats-on-disk.sh (exit: 132)
===================================================

Illegal instruction (core dumped)

FAIL: Magick++/tests/exceptions.sh (exit: 134)
==============================================

terminate called after throwing an instance of 'int'
Abort trap (core dumped)

FAIL: Magick++/tests/attributes.sh (exit: 134)
==============================================

terminate called after throwing an instance of 'Magick::ErrorMissingDelegate'
  what():  attributes: no decode delegate for this image format `foo' @ error/constitute.c/ReadImage/532
Abort trap (core dumped)

FAIL: Magick++/demo/analyze.sh (exit: 134)
==========================================

terminate called after throwing an instance of 'Magick::ErrorModule'
  what():  analyze: unable to load module `analyze.la': /usr/local/lib/ImageMagick-6.7.4/modules-Q16/filters/analyze.la
 @ error/module.c/InvokeDynamicImageFilter/983
Abort trap (core dumped)
 
OK, removed make.conf exception and am down to these 2 fails:
(I guess core2/O3 optimizations work now)
Code:
FAIL: tests/validate-formats-in-memory.sh
FAIL: tests/validate-formats-on-disk.sh
 
Worked for me:

Run make config (if needed) deselect JPEG2000 and SVG (which requires X11 and is on by default in the -nox11 package for some reason). Otherwise accept defaults although the default of having both LCMS2 and LCMS selected triggers a warning.
 
No dice with JPEG2000 and SVG unselected. Build still failing on analyze.sh. A quick peek at /usr/ports/graphics/ImageMagick/work/Magic++/demo/analyze.log shows:

Code:
FAIL: Magick++/demo/analyze.sh (exit: 134)
==========================================

Assertion failed: ((*images)->signature == MagickSignature), function analyzeImage, file filters/analyze.c, line 113.
Abort trap (core dumped)

This is on FreeBSD 9.0 STABLE amd64 (compiled world on 20120523) and gcc 4.2.1. I only have this problem on my amd64 boxes.
 
Same problem here...
Code:
=========================================
   ImageMagick 6.7.7: ./test-suite.log
=========================================

1 of 49 tests failed.

.. contents:: :depth: 2


FAIL: Magick++/demo/analyze.sh (exit: 134)
==========================================

Assertion failed: ((*images)->signature == MagickSignature), function analyzeImage, file filters/analyze.c, line 113.
Abort trap (core dumped)
FreeBSD 8.2-STABLE amd64
 
I suppose we can agree that something is broken with ImageMagick right now, but just to add to the "me too": FreeBSD 7.2-RELEASE i386, so it's not only possible to break it on amd64.
 
I added this information to a PR that was already open on this issue. Hopefully the maintainer can solve it or kick it upstream.
 
Back
Top