emerge'ing imagemagick works fine, until portage enters the "Install" phase. Then, linking of files failes with "relocation R_X86_64_32 against `a local symbol' can not be used when making a shared object; recompile with -fPIC". Also, after the install phase fails, emerge tells portage it installed successfully anyway. Reproducible: Always Steps to Reproduce: 1. emerge imagemagick 2. 3. Actual Results: normal install stuff, then: make[1]: Leaving directory `/var/tmp/portage/imagemagick-6.1.6.0/work/ImageMagick-6.1.6' >>> Test phase [not enabled]: media-gfx/imagemagick-6.1.6.0 >>> Install imagemagick-6.1.6.0 into /var/tmp/portage/imagemagick-6.1.6.0/image/ category media-gfx make install-am make[1]: Entering directory `/var/tmp/portage/imagemagick-6.1.6.0/work/ImageMagick-6.1.6' make[2]: Entering directory `/var/tmp/portage/imagemagick-6.1.6.0/work/ImageMagick-6.1.6' test -z "//usr/lib" || mkdir -p -- "/var/tmp/portage/imagemagick-6.1.6.0/image///usr/lib" /bin/sh ./libtool --silent --mode=install /bin/install -c 'ltdl/libltdl.la' '/var/tmp/portage/imagemagick-6.1.6.0/image///usr/lib/libltdl.la' libtool: install: warning: remember to run `libtool --finish //usr/lib' /bin/sh ./libtool --silent --mode=install /bin/install -c 'magick/libMagick.la' '/var/tmp/portage/imagemagick-6.1.6.0/image///usr/lib/libMagick.la' libtool: install: warning: relinking `magick/libMagick.la' libtool: link: warning: `/usr/lib64/libfreetype.la' seems to be moved /usr/lib/gcc/x86_64-pc-linux-gnu/3.4.3/../../../../x86_64-pc-linux-gnu/bin/ld: /usr/lib64/liblcms.a(liblcms_la-cmserr.o): relocation R_X86_64_32 against `a local symbol' can not be used when making a shared object; recompile with -fPIC /usr/lib64/liblcms.a: could not read symbols: Bad value collect2: ld returned 1 exit status libtool: install: error: relink `magick/libMagick.la' with the above command before installing it /bin/sh ./libtool --silent --mode=install /bin/install -c 'wand/libWand.la' '/var/tmp/portage/imagemagick-6.1.6.0/image///usr/lib/libWand.la' libtool: install: warning: relinking `wand/libWand.la' libtool: link: warning: `/usr/lib64/liblcms.la' seems to be moved libtool: link: warning: `/usr/lib64/libtiff.la' seems to be moved libtool: link: warning: `/usr/lib64/libjpeg.la' seems to be moved libtool: link: warning: `/usr/lib64/libfreetype.la' seems to be moved /usr/lib/gcc/x86_64-pc-linux-gnu/3.4.3/../../../../x86_64-pc-linux-gnu/bin/ld: cannot find -lMagick collect2: ld returned 1 exit status libtool: install: error: relink `wand/libWand.la' with the above command before installing it /bin/sh ./libtool --silent --mode=install /bin/install -c 'Magick++/lib/libMagick++.la' '/var/tmp/portage/imagemagick-6.1.6.0/image///usr/lib/libMagick++.la' libtool: install: warning: relinking `Magick++/lib/libMagick++.la' libtool: link: warning: `/usr/lib64/liblcms.la' seems to be moved libtool: link: warning: `/usr/lib64/libtiff.la' seems to be moved libtool: link: warning: `/usr/lib64/libjpeg.la' seems to be moved libtool: link: warning: `/usr/lib64/libfreetype.la' seems to be moved libtool: link: warning: `/usr/lib64/liblcms.la' seems to be moved libtool: link: warning: `/usr/lib64/libtiff.la' seems to be moved libtool: link: warning: `/usr/lib64/libjpeg.la' seems to be moved libtool: link: warning: `/usr/lib64/libfreetype.la' seems to be moved /usr/lib/gcc/x86_64-pc-linux-gnu/3.4.3/../../../../x86_64-pc-linux-gnu/bin/ld: /var/tmp/portage/imagemagick-6.1.6.0/work/ImageMagick-6.1.6/magick/.libs/libMagick.a(magick_libMagick_la-annotate.o): relocation R_X86_64_32 against `a local symbol' can not be used when making a shared object; recompile with -fPIC /var/tmp/portage/imagemagick-6.1.6.0/work/ImageMagick-6.1.6/magick/.libs/libMagick.a: could not read symbols: Bad value collect2: ld returned 1 exit status libtool: install: error: relink `Magick++/lib/libMagick++.la' with the above command before installing it make[2]: *** [install-libLTLIBRARIES] Error 1 make[2]: Leaving directory `/var/tmp/portage/imagemagick-6.1.6.0/work/ImageMagick-6.1.6' make[1]: *** [install-am] Error 2 make[1]: Leaving directory `/var/tmp/portage/imagemagick-6.1.6.0/work/ImageMagick-6.1.6' make: *** [install] Error 2 man: prepallstrip: strip: >>> Completed installing imagemagick-6.1.6.0 into /var/tmp/portage/imagemagick-6.1.6.0/image/ >>> Merging media-gfx/imagemagick-6.1.6.0 to / --- /usr/ --- /usr/lib/ >>> Safely unmerging already-installed instance... --- !empty dir /usr/lib --- !empty dir /usr >>> original instance of package unmerged safely. >>> Regenerating /etc/ld.so.cache... * Caching service dependencies ... [ ok ]>>> media-gfx/imagemagick-6.1.6.0 merged. >>> clean: No packages selected for removal. >>> Auto-cleaning packages ... >>> No outdated packages were found on your system. Expected Results: Installed successfully, or given a proper failure message. Portage 2.0.51-r8 (default-linux/amd64/2004.3, gcc-3.4.3, glibc-2.3.4.20041102-r0, 2.6.10-gentoo-r1 x86_64) ================================================================= System uname: 2.6.10-gentoo-r1 x86_64 AMD Athlon(tm) 64 Processor 3500+ Gentoo Base System version 1.6.8 Python: dev-lang/python-2.3.4 [2.3.4 (#1, Dec 22 2004, 00:51:56)] dev-lang/python: 2.3.4 sys-devel/autoconf: 2.13, 2.59-r6 sys-devel/automake: 1.4_p6, 1.8.5-r2, 1.7.9, 1.9.4, 1.5, 1.6.3 sys-devel/binutils: 2.15.92.0.2-r2 sys-devel/libtool: 1.5.10-r2 virtual/os-headers: 2.6.8.1-r3 ACCEPT_KEYWORDS="amd64 ~amd64" AUTOCLEAN="yes" CFLAGS="-march=k8 -pipe -O2" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.3/env /usr/kde/3.3/share/config /usr/kde/3.3/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb /usr/lib/mozilla/defaults/pref /usr/share/config /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-march=k8 -pipe -O2" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs autoconfig ccache distlocks sandbox" GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/Linux/distributions/gentoo" LDFLAGS="" MAKEOPTS="-j3" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="amd64 X Xaw3d aalib acl acpi aim alsa apache2 audiofile avi bash-completion berkdb bitmap-fonts bzlib calendar cdr crypt cups dga dio dvd emacs emul-linux-x86 encoder esd ethereal exif f77 fam fftw flac foomaticdb fortran ftp gd gdbm gif ginac gnome gnutls gphoto2 gpm gstreamer gtk gtk2 icq imagemagick imap imlib ipv6 joystick jp2 jpeg lcms lesstif libwww lirc lzw lzw-tiff maildir mikmod mime mmap mng mozilla mpeg msn multilib ncurses nls nptl offensive oggvorbis openal opengl oscar oss pam perl plotutils png posix ppds python quicktime readline samba sdl sharedmem sndfile sockets sox speex spell ssl svg tcltk tcpd tetex theora tiff truetype truetype-fonts type1-fonts usb userlocales wmf xine xml2 xmms xpm xrandr xv xvid yahoo zlib"
Sorry, can're reproduce on this bug on my system. I used the very same USE flags you provided, but it didn't want to show up :-/
I have the same problem -- can I help somehow? emerge info?
Any news here? Meanwhile, there appeared few files in my imagemagick package (after changing the system a bit): echelon ~ # epm -ql imagemagick /usr/lib64/libltdl.so.3.1.0 /usr/lib64/libltdl.so.3 /usr/lib64/libltdl.so /usr/lib64/libltdl.la /usr/lib64/libltdl.a build error: ------------ /usr/lib/gcc/x86_64-pc-linux-gnu/3.4.3-20050110/../../../../x86_64-pc-linux-gnu/bin/ld: /var/tmp/portage/imagemagick-6.2.0.6/work/ImageMagick-6.2.0/magick/.libs/libMagick.a(magick_libMagick_la-annotate.o): relocation R_X86_64_32 against `a local symbol' can not be used when making a shared object; recompile with -fPIC /var/tmp/portage/imagemagick-6.2.0.6/work/ImageMagick-6.2.0/magick/.libs/libMagick.a: could not read symbols: Bad value collect2: ld returned 1 exit status libtool: install: error: relink `Magick++/lib/libMagick++.la' with the above command before installing it make[2]: *** [install-libLTLIBRARIES] Error 1 make[2]: Leaving directory `/var/tmp/portage/imagemagick-6.2.0.6/work/ImageMagick-6.2.0' make[1]: *** [install-am] Error 2 make[1]: Leaving directory `/var/tmp/portage/imagemagick-6.2.0.6/work/ImageMagick-6.2.0' make: *** [install] Error 2 emerge info: ------------ Portage 2.0.51.19 (default-linux/amd64/2005.0, gcc-3.4.3-20050110, glibc-2.3.4.20050125-r1, 2.6.11-gentoo-r6 x86_64) ================================================================= System uname: 2.6.11-gentoo-r6 x86_64 AMD Athlon(tm) 64 Processor 3200+ Gentoo Base System version 1.6.10 Python: dev-lang/python-2.3.5 [2.3.5 (#1, Feb 18 2005, 10:19:43)] distcc 2.18.3 x86_64-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled] ccache version 2.4 [enabled] dev-lang/python: 2.3.5 sys-devel/autoconf: 2.13, 2.59-r6 sys-devel/automake: 1.8.5-r3, 1.6.3, 1.5, 1.4_p6, 1.9.5, 1.7.9-r1 sys-devel/binutils: 2.15.92.0.2-r8 sys-devel/libtool: 1.5.14 virtual/os-headers: 2.6.11 ACCEPT_KEYWORDS="amd64 ~amd64" AUTOCLEAN="yes" CFLAGS="-march=athlon64 -O2 -pipe" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.4/env /usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb /usr/lib/mozilla/defaults/pref /usr/share/config /var/bind /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/texmf/web2c /etc/env.d" CXXFLAGS="-march=athlon64 -O2 -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs autoconfig ccache distlocks sandbox strict" GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/Linux/distributions/gentoo" LC_ALL="cs_CZ.UTF-8" LINGUAS="cs" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="amd64 X Xaw3d a52 aac aalib acpi adns alsa apache2 arts avi bash-completion berkdb bitmap-fonts bzlib calendar cdr crypt cups curl doc dvd dvdr dvdread encode esd evo examples exif expat fam fastcgi flac font-server foomaticdb fortran ftp gcj gd gdbm geoip gif gnome gphoto2 gpm gstreamer gtk gtk2 guile hal howl iconv icq imagemagick imap imlib ipv6 jabber java jikes joystick jp2 jpeg kde kdeenablefinal kdexdeltas lcms libwww lm_sensors lzw lzw-tiff mad maildir mhash mikmod mime mmap mng mozilla mp3 mpeg nas ncurses nls nptl offensive ogg oggvorbis openal opengl oscar pam pdflib perl pic plotutils png postgres ppds python qt quicktime readline sdl slang soap speex spell sqlite ssl svg sysfs tcltk tcpd tetex tidy tiff truetype truetype-fonts type1-fonts unicode usb usepackagedmakefiles userlocales vcd videos vorbis wmf xface xml xml2 xmlrpc xmms xosd xpm xprint xrandr xsl xv xvid zlib video_cards_radeon linguas_cs" Unset: ASFLAGS, CBUILD, CTARGET, LANG, LDFLAGS
Is this relevent anymore? 6.2.0.4 is stable now and installs fine...
Yes, it is! As you can see in my last comment, I was trying to install version 6.2.0.6 (running ~amd64). Also, I have no luck with the older versions. To summarize our problem: We have no imagemagick on our systems. The package is (nearly) empty. And every dependent package also fails to build.
Okay, then I'm with Danny, I can't replicate this either. It installs fine for me.
Hello again! I did 'emerge -ev imagemagick' and after few hours... voila... imagemagick compiles well. Strange, strange. In fact the build stopped on graphviz package with some strange error. But when I did 'emerge --resume' it compiled well and the whole build finished. So, it works for me, now.
I don't either what's wrong.