Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 108321 - media-gfx/imagemagick 6.2.4.2 fails to emerge
Summary: media-gfx/imagemagick 6.2.4.2 fails to emerge
Status: RESOLVED DUPLICATE of bug 30482
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Karol Wojtaszek (RETIRED)
URL:
Whiteboard:
Keywords:
: 111674 (view as bug list)
Depends on:
Blocks:
 
Reported: 2005-10-06 15:06 UTC by El Fabre
Modified: 2005-12-27 01:54 UTC (History)
5 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
Complete building process output (output.txt,115.56 KB, text/plain)
2005-10-06 15:08 UTC, El Fabre
Details
emerge info output (emerge.info,2.20 KB, text/plain)
2005-10-10 23:07 UTC, Dirk Heinrichs
Details

Note You need to log in before you can comment on or make changes to this bug.
Description El Fabre 2005-10-06 15:06:06 UTC
media-gfx/imagemagick 6.2.4.2 fails to emerge.

Here are my USE settings:
[ebuild  N    ] media-gfx/imagemagick-6.2.4.2  +X +cups +doc -fpx -graphviz
+jbig +jpeg -lcms +mpeg +perl +png +tiff +truetype -wmf +xml2 0 kB
 
Here are the build settings:
Host system type : i586-pc-linux-gnu

                  Option                        Value
-------------------------------------------------------------------------
Shared libraries  --enable-shared=yes		yes
Static libraries  --enable-static=yes		yes
Module support    --with-modules=yes		yes
GNU ld            --with-gnu-ld=yes		yes
Quantum depth     --with-quantum-depth=16	16

Delegate Configuration:
BZLIB             --with-bzlib=yes		yes
DPS               --with-dps=yes		yes
FlashPIX          --with-fpx=no		no
FreeType 2.0      --with-ttf=yes		yes
GhostPCL          None				pcl6 (unknown)
Ghostscript       None				gs (7.07.1)
Ghostscript fonts --with-gs-font-dir=/usr/share/fonts/default/ghostscript
/usr/share/fonts/default/ghostscript/
Ghostscript lib   --with-gslib=yes		no (failed tests)
Graphviz          --with-gvc=yes		yes
JBIG              --with-jbig=yes		yes
JPEG v1           --with-jpeg=yes		yes
JPEG-2000         --with-jp2=yes		yes
LCMS              --with-lcms=no		no
Magick++          --with-magick-plus-plus=yes	yes
PERL              --with-perl=no		no
PNG               --with-png=yes		yes
TIFF              --with-tiff=yes		yes
Windows fonts     --with-windows-font-dir=	none
WMF               --with-wmf=no		no
X11               --with-x=yes			yes
XML               --with-xml=yes		yes
ZLIB              --with-zlib=yes		yes

X11 Configuration:
  X_CFLAGS     = 
  X_PRE_LIBS   = -lSM -lICE
  X_LIBS       = 
  X_EXTRA_LIBS = 

Options used to compile and link:
  PREFIX      = /usr
  EXEC-PREFIX = /usr
  VERSION     = 6.2.4
  CC          = i586-pc-linux-gnu-gcc
  CFLAGS      = -march=k6-2 -mfpmath=387 -mmmx -m3dnow -O3 -pipe
-fomit-frame-pointer -Wall -pthread
  CPPFLAGS    = -I/usr/include
  PCFLAGS     = 
  DEFS        = -DHAVE_CONFIG_H
  LDFLAGS     = -L/usr/lib -L/usr/lib/graphviz -lfreetype -lz -L/usr/lib
  LIBS        = -lMagick -ltiff -lfreetype -ljpeg -lXext -lSM -lICE -lX11 -lXt
-lbz2 -lz -lpthread -lm -lpthread
  CXX         = i586-pc-linux-gnu-g++
  CXXFLAGS    = -march=k6-2 -mfpmath=387 -mmmx -m3dnow -O3 -pipe
-fomit-frame-pointer -pthread


Reproducible: Always
Steps to Reproduce:
1. emerge imagemagick
2.
3.

Actual Results:  
(comlete building process output, see attachment output.txt)
...
if /bin/sh ./libtool --silent --tag=CC --mode=compile i586-pc-linux-gnu-gcc
-DHAVE_CONFIG_H -I. -I. -I./magick -I./wand  -I./ltdl -I./ltdl 
-I/usr/include/freetype2 -I/X11 -I/usr/include/graphviz -I/usr/include/libxml2 
-march=k6-2 -mfpmath=387 -mmmx -m3dnow -O3 -pipe -fomit-frame-pointer -Wall
-pthread -MT magick/magick_libMagick_la-PreRvIcccm.lo -MD -MP -MF
"magick/.deps/magick_libMagick_la-PreRvIcccm.Tpo" -c -o
magick/magick_libMagick_la-PreRvIcccm.lo `test -f 'magick/PreRvIcccm.c' || echo
'./'`magick/PreRvIcccm.c; \
then mv -f "magick/.deps/magick_libMagick_la-PreRvIcccm.Tpo"
"magick/.deps/magick_libMagick_la-PreRvIcccm.Plo"; else rm -f
"magick/.deps/magick_libMagick_la-PreRvIcccm.Tpo"; exit 1; fi

{standard input}: Assembler messages:
{standard input}:17534: Error: value of ffffffffffffff7e too large for field of
1 bytes at 000000000000d5f6
make[1]: *** [magick/magick_libMagick_la-pixel.lo] Error 1
make[1]: *** Waiting for unfinished jobs....
make[1]: Leaving directory
`/var/tmp/portage/imagemagick-6.2.4.2/work/ImageMagick-6.2.4'
make: *** [all] Error 2

Error message does not help me out much. Maybe somebody more familiar with the
Imagemagick building process has some clue. Gentoo just installed. 

Expected Results:  
No compilation errors!


Gentoo Base System version 1.12.0_pre8
Portage 2.0.53_rc4 (default-linux/x86/2005.0, gcc-3.3.6, glibc-2.3.5-r2,
2.6.13-elfabre-13 i586)
=================================================================
System uname: 2.6.13-elfabre-13 i586 AMD-K6(tm) 3D processor
ccache version 2.4 [disabled]
dev-lang/python:     2.3.4-r1, 2.4.2
sys-apps/sandbox:    1.2.13
sys-devel/autoconf:  2.13, 2.59-r7
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1
sys-devel/binutils:  2.16.1
sys-devel/libtool:   1.5.20
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CBUILD="i586-pc-linux-gnu"
CFLAGS="-march=k6-2 -mfpmath=387 -mmmx -m3dnow -O3 -pipe -fomit-frame-pointer"
CHOST="i586-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config
/usr/lib/X11/xkb /usr/lib/mozilla/defaults/pref /usr/share/config
/var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-march=k6-2 -mfpmath=387 -mmmx -m3dnow -O3 -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks sandbox sfperms strict"
GENTOO_MIRRORS="ftp://mirror.iawnet.sandia.gov/pub/gentoo
http://distfiles.gentoo.org http://www.ibiblio.org/pub/Linux/distributions/gentoo"
LC_ALL="en_US.utf8"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.namerica.gentoo.org/gentoo-portage"
USE="x86 16bit 3dnow X Xaw3d a52 aac aalib acpi activefilter alsa amd amr ao
apache apache2 applet asm athena audiofile avi bash-completion beep berkdb
bitmap-fonts bl bzip2 cap cardbus cdda cddb cdio cdparanoia cdr cgi chroot
ck-server corba cpudetection crypt css ctype cups custom-cflags devfs26 devmap
dga dhcp disk-cache distcache distribution divx4linux dnd dnsdb doc dpms dts dv
dvb dvd dvdr dvdread edl eds elf emacs emacs-w3 emoticon encode enscript epson
esd ethereal extraengine fam fame fax finger flac flash floppyd font-server
foomaticdb ftp gd gdbm gif gimp gimpprint gnome gnome-print gnustep gnutls
gphoto2 gpm gs gsm gsnd gstreamer gtk gtk2 h323 id3 idn imap innodb ipalias irda
irmc java javacomm javascript jbig jpeg kerberos lame largeterminal
layout-from-conf-file ldap leim lesstif libcaca libg++ libsamplerate libvisual
libwww lirc live logrotate ltsp lynxkeymap lzo lzw lzw-tiff mad make-symlinks
mem-cache menubar mgetty mikmod mime mjpeg mmx motif mozilla mp3 mp4live mpeg
mpeg2 mpeg4 mpi mplayer mule mysql mysqli mythtv nas ncurses netboot network nfs
nis nls nptl nptlonly nsplugin ofx ogg oggvorbis on-the-fly-crypt openal openexr
opengl osc oss pam passfile password pcap pcapnav pcmcia pdflib perl php physfs
player playlist png pnp portaudio posix python qt quicktime readline real rsh
rtc sblive scanner screen sdl serial session sharedmem shorten slang slp
smartcard smtp sndfile snmp sockets softfax sox speex spell spl src ssh ssl
stream svga symlink sysfs sysvipc szip t1lib tcltk tcpd test tga theora tiff
timidity toolbar tos transcode transparent-proxy truetype truetype-fonts type1
type1-fonts underscores unicode usb userlocales vcd vcdimager vidix vlm vorbis
wifi win32codecs wma123 wsconvert xanim xim xinerama xml2 xmms xpm xprint xv
xvid xvmc yahoo zlib userland_GNU kernel_linux elibc_glibc"
Unset:  ASFLAGS, CTARGET, LANG, LDFLAGS, LINGUAS
Comment 1 El Fabre 2005-10-06 15:08:25 UTC
Created attachment 70017 [details]
Complete building process output
Comment 2 Dirk Heinrichs 2005-10-10 00:26:39 UTC
I get the same error on a K6 system for imagemagick, as well as for jpeg-6b-r6: 
 
./libtool-wrap --mode=compile i586-pc-linux-gnu-gcc -march=k6-2 -O3 
-fomit-frame-pointer -pipe  -I. -c ./jdcolor.c 
 i586-pc-linux-gnu-gcc -march=k6-2 -O3 -fomit-frame-pointer -pipe -I. 
-c ./jdcolor.c  -fPIC -DPIC -o .libs/jdcolor.o 
 {standard input}: Assembler messages: 
 {standard input}:106: Error: value of ffffffffffffff7f too large for field of 
1 bytes at 0000000000000156 
 make: *** [jdcolor.lo] Error 1 
 
Comment 3 El Fabre 2005-10-10 19:17:35 UTC
(In reply to comment #2)
> I get the same error on a K6 system for imagemagick, as well as for jpeg-6b-r6: 
>  

Nope! I only get it on imagemagick.
I just recompiled jpeg-6b-r6 again on purpose. It went through just fine.
Can you pls post "emerge --info" and "emerge --verbose --pretend jpeg"
so I can try to recompile it with your Useflag settings? Tx.

 El Fabre
Comment 4 Dirk Heinrichs 2005-10-10 23:07:12 UTC
Created attachment 70338 [details]
emerge info output
Comment 5 Dirk Heinrichs 2005-10-10 23:08:07 UTC
jpeg doesn't have any use flags. However, emerge info output is attached. 
 
Comment 6 El Fabre 2005-10-11 17:39:49 UTC
(In reply to comment #5)
> jpeg doesn't have any use flags. However, emerge info output is attached. 
>  
You are right! no use flags.
I see a huge gcc version difference. Wondering where you got that gcc 3.4.4.
Explanation at http://bugs.gentoo.org/show_bug.cgi?id=104953 is a cryptic one.

Comment 7 Dirk Heinrichs 2005-10-11 23:17:28 UTC
GCC 3.4.4 comes out of portage. Concerning the other bug: I've seen it before, 
but it doesn't have any useful information. 
Comment 8 Anthony Metcalf 2005-10-31 06:41:58 UTC
I can confirm this happens on my machine too. Any workaround/fix?
Comment 9 SpanKY gentoo-dev 2005-11-04 22:59:53 UTC
real easy workaround, dont use -march=k6-2
Comment 10 Jakub Moc (RETIRED) gentoo-dev 2005-11-06 03:22:38 UTC
*** Bug 111674 has been marked as a duplicate of this bug. ***
Comment 11 El Fabre 2005-12-26 16:08:39 UTC
Obviously,
this is not an ImageMagick problem but a much more general issue related to gcc optimizations on AMD K6.

I got it on ImageMagick but Dirk gets it on jpeg-6b-r6 (I don't) and now I found that somebody had already noticed it under gimp (bug #30482) back in 2003!

Aside from disabling the optimizations, as suggested (it does work), it looks like there is no solution for this, yet.



*** This bug has been marked as a duplicate of 30482 ***
Comment 12 El Fabre 2005-12-27 01:54:33 UTC
Actually,
looks like the resolution is coming up: GCC 4.1.x onward
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20653