PDA

View Full Version : ImageMagick Make fails due too GCC error


Hefticus
9th August 2011, 10:39 PM
I am trying to get ImageMagick up and running on my FC15 laptop. I've done this before without issue (on FC14). But now when I try to run "make" for ImageMagick it throws an error and fails. This is for ImageMagick 6.6.5, although I get the exact same error on 6.6.4 as well.

magick/xwindow.c:7491:1: internal compiler error: in new_elt_loc_list, at cselib.c:238

Here's my gcc information, from rpm -qa gcc\*

gcc-4.6.0-10.fc15.x86_64
gcc-c++-4.6.0-10.fc15.x86_64
gcc-java-4.6.0-10.fc15.x86_64

configure runs fine. I can't say if the RMagick make works or not since I can't configure it without ImageMagick installed first. I don't recall anything else having a similar problem.

It is similar to this bug: https://bugzilla.redhat.com/show_bug.cgi?id=715336 (Except that person appears to be using FC16 packages). The solution there was to update GCC to 4.6.1. It doesn't quite seem right that I would need to upgrade GCC to install an older version of ImageMagick, especially when it worked fine in FC14 (I'm assuming FC14 to FC15 didn't for some reason go backwards in the versions of its compilers). And if I do need to do that, I'm not positive how. There's a FC15 gcc 4.6.1 package here: http://s390.koji.fedoraproject.org/koji/buildinfo?buildID=74356 I'm not sure how to install that to replace 4.6.0, though.

SomeDamFool
9th August 2011, 10:48 PM
If you use yum it will install ImageMagick and all the dependencies it needs.

#yum install imagemagick

jpollard
9th August 2011, 11:01 PM

What is the optimization level?

I seem to remember that there was a bug in the compiler for high levels of optimization that sometimes occurred.

Hefticus
9th August 2011, 11:03 PM
Well, the real goal is to get RMagick installed, so I was following the instructions for that, which are to download the tar and build from that: http://rmagick.rubyforge.org/install2-linux.html

I actually need 6.6.4 installed in this case, and yum install ImageMagick will pull the latest 6.6.5. (I get the same error as above with 6.6.4 or 6.6.5, though). Unless I can find a specific name of the last 6.6.4 rpm package for FC15 (if there is one?) then a simple yum install doesn't seem like an option.

I'm not sure what the optimization level is. How would I check that?

jpollard
9th August 2011, 11:12 PM
It should be in the Make files - something like:
CFLAGS = -O<number>

Though other flags may be there as well.

Hefticus
9th August 2011, 11:18 PM
This?

CFLAGS = -fopenmp -g -O2 -Wall -pthread

jpollard
10th August 2011, 12:24 AM
Thats it.

O2 is fairly normal. I didn't think that would be a problem... (I have seen problems in the past with O4).

You might try removing it just to see what happens. Or change it to O1.

Now, another possibility is that there is a conflict with the -g option (it is used to keep debugging information).

Hefticus
10th August 2011, 03:55 AM
Removing the -g from that line seems to have allowed it work.

Thanks

JohnVV
10th August 2011, 05:01 AM
are you aware of the VERY ( 3 + years) long time running bug in IM source

you can only build it ONCE ( one time ONLY )
./configure --??option -- option2 .......
make && make install
only works one time .
re-extract the tarbal for EVERY rebuild .
Every time !
an error in the scripts for "make clean& distclean "things are not removed

it might have been fixed , it has been about a year since i last built it .