Bug 36831 - ImageMagick does not build under 3.x without gcc 2.95
Summary: ImageMagick does not build under 3.x without gcc 2.95
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: Ade Lovett
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-04-07 03:00 UTC by julian
Modified: 2002-04-13 19:18 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description julian 2002-04-07 03:00:02 UTC
The build of ImageMagick bombs out under FreeBSD 3.5 due to the old version
of gcc.

Fix: 

Add USE_GCC295=yes to the port's Makefile. The port successfully
	builds with gcc 2.95.
How-To-Repeat: 
# cd /usr/ports/graphics/ImageMagick
# make
.
.
.
.
source='bmp.c' object='bmp.lo' libtool=yes \
depfile='.deps/bmp.Plo' tmpdepfile='.deps/bmp.TPlo' \
depmode=gcc /bin/sh ../depcomp \
/bin/sh ../libtool --silent --mode=compile cc -DHAVE_CONFIG_H -I../ -I. -I. -I..
/magick -I.. -I../magick  -I/usr/local/include/libxml2 -I/usr/local/include/free
type2 -I/usr/local/include -I/usr/local/include -I/usr/X11R6/include  -O2 -m486 
-pipe -Wall -c -o bmp.lo `test -f bmp.c || echo './'`bmp.c
bmp.c: In function `ReadBMPImage':
bmp.c:1143: internal error--insn does not satisfy its constraints:
(insn 213 212 4398 (parallel[ 
            (set (reg:DI 1 %edx)
                (plus:DI (reg:DI 0 %eax)
                    (const_int -2)))
            (clobber (scratch:SI))
        ] ) 127 {adddi3} (insn_list 212 (nil))
    (expr_list:REG_DEAD (mem:DI (plus:SI (reg:SI 6 %ebp)
                (const_int -352)))
        (expr_list:REG_UNUSED (scratch:SI)
            (nil))))
cc: Internal compiler error: program cc1 got fatal signal 6
gmake[1]: *** [bmp.lo] Error 1
gmake[1]: Leaving directory `/export/l3/dist/ports/graphics/ImageMagick/work/Ima
geMagick-5.4.4/coders'
gmake: *** [all-recursive] Error 1
*** Error code 2

Stop.
#
Comment 1 Ade Lovett freebsd_committer freebsd_triage 2002-04-13 19:18:04 UTC
State Changed
From-To: open->closed

Patch applied, thanks. 


Comment 2 Ade Lovett freebsd_committer freebsd_triage 2002-04-13 19:18:04 UTC
Responsible Changed
From-To: freebsd-ports->ade

My fault[tm]