Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 300257 - media-gfx/imagemagick-6.5.7.0 fails to compile
Summary: media-gfx/imagemagick-6.5.7.0 fails to compile
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Unspecified (show other bugs)
Hardware: x86 Linux
: High normal
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-01-09 06:39 UTC by lonicerae
Modified: 2010-01-10 12:09 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description lonicerae 2010-01-09 06:39:46 UTC
after i'd updated my portage, i tried to upgrade my system, imagemagick failed to build.


Reproducible: Always

Steps to Reproduce:
1, i upgrade my system with:
emerge -auvDN world
>>>>SYSTEM OUTPUT
These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild     U ] media-gfx/imagemagick-6.5.7.0 [6.5.2.9] USE="X bzip2 corefonts fontconfig graphviz jpeg jpeg2k openmp perl png raw svg tiff truetype xml zlib -autotrace% -djvu -doc -fftw% -fpx -gs -hdri -jbig -lcms -lqr% -nocxx -openexr -q32 -q8 -wmf" 0 kB

Total: 1 package (1 upgrade), Size of downloads: 0 kB

2, i acceptted and then imagemagick was compiling.
Actual Results:  
after a while, it said:
>>> Failed to emerge media-gfx/imagemagick-6.5.7.0, Log file:

>>>  '/var/tmp/portage/media-gfx/imagemagick-6.5.7.0/temp/build.log'

 * Messages for package media-gfx/imagemagick-6.5.7.0:

 * 
 * ERROR: media-gfx/imagemagick-6.5.7.0 failed.
 * Call stack:
 *               ebuild.sh, line   49:  Called src_compile
 *             environment, line 2897:  Called perl-app_src_compile
 *             environment, line 2568:  Called perl-module_src_compile
 *             environment, line 2606:  Called die
 * The specific snippet of code:
 *               emake OTHERLDFLAGS="${LDFLAGS}" ${mymake} || die "compilation failed";
 *  The die message:
 *   compilation failed
 * 
 * If you need support, post the topmost build error, and the call stack if relevant.
 * A complete build log is located at '/var/tmp/portage/media-gfx/imagemagick-6.5.7.0/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/media-gfx/imagemagick-6.5.7.0/temp/environment'.
Comment 1 Patrick Lauer gentoo-dev 2010-01-09 12:31:16 UTC
Ok, your paste is missing the actual error, you only added the message that an error happened. So please add that so we can see what fails, and emerge --info would be nice too :)
Comment 2 lonicerae 2010-01-09 12:56:50 UTC
(In reply to comment #1)
> Ok, your paste is missing the actual error, you only added the message that an
> error happened. So please add that so we can see what fails, and emerge --info
> would be nice too :)
> 

Hi Patrick,

thanks for your reply! here is the last content of the build.log.
>>>>>>
  CCLD   coders/ps2.la
  CCLD   coders/ps3.la
  CCLD   coders/psd.la
  CCLD   coders/pwp.la
  CCLD   coders/raw.la
  CCLD   coders/rgb.la
  CCLD   coders/rla.la
  CCLD   coders/rle.la
  CCLD   coders/scr.la
  CCLD   coders/sct.la
  CCLD   coders/sfw.la
  CCLD   coders/sgi.la
  CCLD   coders/stegano.la
  CCLD   coders/sun.la
  CCLD   wand/libMagickWand.la
  CCLD   coders/tga.la
/usr/bin/nm: wand/.libs/wand_libMagickWand_la-composite.o: File format not recognized
/usr/lib/gcc/i686-pc-linux-gnu/4.3.4/../../../../i686-pc-linux-gnu/bin/ld:wand/.libs/wand_libMagickWand_la-composite.o: file format not recognized; treating as linker script
/usr/lib/gcc/i686-pc-linux-gnu/4.3.4/../../../../i686-pc-linux-gnu/bin/ld:wand/.libs/wand_libMagickWand_la-composite.o:1: syntax error
collect2: ld returned 1 exit status
make[1]: *** [wand/libMagickWand.la] 错误 1
make[1]: *** 正在等待未完成的任务....
make[1]: Leaving directory `/var/tmp/portage/media-gfx/imagemagick-6.5.7.0/work/ImageMagick-6.5.7-0'
make: *** [all] 错误 2

---------------
my 'emerge --info' is:
>>>>>>
localhost shine # emerge --info
Portage 2.1.6.13 (default/linux/x86/10.0/desktop, gcc-4.3.4, glibc-2.9_p20081201-r2, 2.6.30-gentoo-r8-s3e i686)
=================================================================
System uname: Linux-2.6.30-gentoo-r8-s3e-i686-Pentium_III_-Coppermine-with-gentoo-1.12.13
Timestamp of tree: Fri, 08 Jan 2010 15:15:02 +0000
distcc 3.1 i686-pc-linux-gnu [disabled]
ccache version 2.4 [enabled]
app-shells/bash:     4.0_p35
dev-java/java-config: 2.1.9-r2
dev-lang/python:     2.6.4
dev-util/ccache:     2.4-r7
dev-util/cmake:      2.6.4-r3
sys-apps/baselayout: 1.12.13
sys-apps/sandbox:    1.6-r2
sys-devel/autoconf:  2.13, 2.63-r1
sys-devel/automake:  1.8.5-r3, 1.9.6-r2, 1.10.2
sys-devel/binutils:  2.18-r3
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.6b
virtual/os-headers:  2.6.27-r2
ACCEPT_KEYWORDS="x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=i686 -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/X11/xkb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/revdep-rebuild /etc/sandbox.d /etc/splash /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-O2 -march=i686 -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="ccache distlocks fixpackages parallel-fetch protect-owned sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="ftp://gentoo.anheng.com.cn/gentoo/ http://ftp.twaren.net/Linux/Gentoo/ http://mirror.averse.net/pub/gentoo/ http://mirrors.acm.cs.rpi.edu/gentoo/ http://gentoo.139pay.com/ http://ftp.gentoo.or.kr/ http://mymirror.asiaosc.org/gentoo/"
LANG="zh_CN.UTF-8"
LDFLAGS="-Wl,-O1"
LINGUAS="zh_CN zh_TW en_US"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://mirror.averse.net/gentoo-portage"
USE="X a52 aac aalib acl acpi alsa bash-completion berkdb bluetooth branding bzip2 cairo cdb cddb cdparanoia cdr cjk cli consolekit cracklib crypt cscope css cups cxx dbus dri dts dvd dvdr eds emboss encode evo exif expat fam ffmpeg firefox flac fontconfig fortran gd gdbm gif gimp gpm graphviz gtk gtkhtml hal iconv imagemagick imlib javascript jpeg jpeg2k lame lash ldap libnotify m17n-lib mad mikmod mime mmap mmx mng modules mp3 mp4 mpeg mplayer mudflap musepack nas ncurses networkmanager nls nptl nptlonly nsplugin ogg opengl openmp pam pcre pdf perl png ppds pppd python qt3support qt4 quicktime raw rdesktop readline reflection sasl sdl session sockets spell spl sse ssl startup-notification subversion svg sysfs syslog tcltk tcpd thunar tiff timidity truetype unicode upnp usb v4l v4l2 vcd vim-syntax vorbis wavpack win32codecs x264 x86 xml xorg xpm xulrunner xv xvid zh_CN zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="zh_CN zh_TW en_US" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="fbdev glint intel mach64 mga neomagic nv r128 radeon savage sis tdfx trident vesa via vmware voodoo"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

-------------
Cheers,

Flos
Comment 3 Rafał Mużyło 2010-01-09 13:23:47 UTC
Either this is a parallel make/ccache problem
or somehow you're running out of disk space (quite
unlikely in this context).
If it's the former, standard solution applies 
(try purging cache/setting to '-j1').
Comment 4 lonicerae 2010-01-09 17:53:47 UTC
(In reply to comment #3)
> Either this is a parallel make/ccache problem
> or somehow you're running out of disk space (quite
> unlikely in this context).
> If it's the former, standard solution applies 
> (try purging cache/setting to '-j1').
> 
Hi Rafał,
i change my make opt to '-j1' in /etc/make.conf, then run 'env-update', and emerge again. the same result i get.
part of my config log is:
>>>>>>
config.status: executing Wand-config.in commands
config.status: executing Magick++-config.in commands
config.status: executing PerlMagick/check.sh.in commands

ImageMagick is configured as follows. Please verify that this configuration
matches your expectations.

Host system type: i686-pc-linux-gnu
Build system type: i686-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
High Dynamic Range Imagery
                  --enable-hdri=no		no

Delegate Configuration:
BZLIB             --with-bzlib=yes		yes
Autotrace         --with-autotrace=no		no
DJVU              --with-djvu=no		no
DPS               --with-dps=no		no
FFTW              --with-fftw=no		no
FlashPIX          --with-fpx=no		no
FontConfig        --with-fontconfig=yes		yes
FreeType          --with-freetype=yes		yes
GhostPCL          None				pcl6 (unknown)
GhostXPS          None				gxps (unknown)
Ghostscript       None				gs (8.64)
Ghostscript fonts --with-gs-font-dir=/usr/share/fonts/default/ghostscript	/usr/share/fonts/default/ghostscript/
Ghostscript lib   --with-gslib=no		no
Graphviz          --with-gvc=yes		yes
JBIG              --with-jbig=no		no
JPEG v1           --with-jpeg=yes		yes
JPEG-2000         --with-jp2=yes		yes
LCMS              --with-lcms=no		no
LQR               --with-lqr=yes		no
Magick++          --with-magick-plus-plus=yes	yes
OpenEXR           --with-openexr=no		no
PERL              --with-perl=yes		/usr/bin/perl
PNG               --with-png=yes		yes
RSVG              --with-rsvg=yes		yes
TIFF              --with-tiff=yes		yes
Windows fonts     --with-windows-font-dir=/usr/share/fonts/corefonts	/usr/share/fonts/corefonts/
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.5.7
  CC              = i686-pc-linux-gnu-gcc -std=gnu99
  CFLAGS          = -fopenmp -O2 -march=i686 -pipe -fomit-frame-pointer -Wall -W -pthread
  MAGICK_CFLAGS   = -fopenmp -O2 -march=i686 -pipe -fomit-frame-pointer -Wall -W -pthread
  CPPFLAGS        = -I/usr/include/ImageMagick
  PCFLAGS         = -fopenmp
  DEFS            = -DHAVE_CONFIG_H
  LDFLAGS         = -Wl,-O1
  MAGICK_LDFLAGS  = -L/usr/lib -Wl,-O1
  LIBS            = -lMagickCore -ltiff -lfreetype -ljpeg -lfontconfig -lXext -lSM -lICE -lX11 -lXt -lbz2 -lz -lm -lgomp -lpthread -lltdl
  CXX             = i686-pc-linux-gnu-g++
  CXXFLAGS        = -O2 -march=i686 -pipe -fomit-frame-pointer -Wall -W -pthread

>>> Source configured.
>>> Compiling source in /var/tmp/portage/media-gfx/imagemagick-6.5.7.0/work/ImageMagick-6.5.7-0 ...
make -j1 OTHERLDFLAGS=-Wl,-O1 
make  all-am
make[1]: Entering directory `/var/tmp/portage/media-gfx/imagemagick-6.5.7.0/work/ImageMagick-6.5.7-0'
  CC     coders/coders_art_la-art.lo
...

------------------------------------------------
error reported as follows:
>>>>>>
  CC     wand/wand_libMagickWand_la-pixel-iterator.lo
  CC     wand/wand_libMagickWand_la-pixel-view.lo
  CC     wand/wand_libMagickWand_la-pixel-wand.lo
  CC     wand/wand_libMagickWand_la-stream.lo
  CC     wand/wand_libMagickWand_la-wand.lo
  CCLD   wand/libMagickWand.la
/usr/bin/nm: wand/.libs/wand_libMagickWand_la-composite.o: File format not recognized
/usr/lib/gcc/i686-pc-linux-gnu/4.3.4/../../../../i686-pc-linux-gnu/bin/ld:wand/.libs/wand_libMagickWand_la-composite.o: file format not recognized; treating as linker script
/usr/lib/gcc/i686-pc-linux-gnu/4.3.4/../../../../i686-pc-linux-gnu/bin/ld:wand/.libs/wand_libMagickWand_la-composite.o:1: syntax error
collect2: ld returned 1 exit status
make[1]: *** [wand/libMagickWand.la] \u9519\u8bef 1
make[1]: Leaving directory `/var/tmp/portage/media-gfx/imagemagick-6.5.7.0/work/ImageMagick-6.5.7-0'
make: *** [all] \u9519\u8bef 2
 * 
 * ERROR: media-gfx/imagemagick-6.5.7.0 failed.
 * Call stack:
 *               ebuild.sh, line   49:  Called src_compile
 *             environment, line 2897:  Called perl-app_src_compile
 *             environment, line 2568:  Called perl-module_src_compile
 *             environment, line 2606:  Called die
 * The specific snippet of code:
 *               emake OTHERLDFLAGS="${LDFLAGS}" ${mymake} || die "compilation failed";
 *  The die message:
 *   compilation failed
 * 
 * If you need support, post the topmost build error, and the call stack if relevant.
 * A complete build log is located at '/var/tmp/portage/media-gfx/imagemagick-6.5.7.0/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/media-gfx/imagemagick-6.5.7.0/temp/environment'.

------------------------------------------------
i think that my disk free space should be enough:
localhost etc # df -h
>>>>>>
/dev/hda1              20G   10G  9.6G  52% / <--- system
udev                   10M  168K  9.9M   2% /dev
/dev/hda2              20G   19G  1.1G  95% /pub <--- for my sharing files
/dev/hda3             9.8G  8.2G  1.7G  84% /mnt/win_c <--- m$
/dev/hda5              20G   20G  509M  98% /mnt/win_d <--- m$

any ideas?

Flos
Comment 5 Rafał Mużyło 2010-01-09 20:03:57 UTC
What about purging the ccache ?
That's 'CCACHE_DIR=/var/tmp/ccache ccache -C'
(then check with '-s').
Comment 6 lonicerae 2010-01-10 12:09:39 UTC
(In reply to comment #5)
> What about purging the ccache ?
> That's 'CCACHE_DIR=/var/tmp/ccache ccache -C'
> (then check with '-s').
> 
Hahaha!!! Thank you very much Rafał! It works! :D
Cheers,

Flos