Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 255615 - dev-python/pythonmagick-0.8 compile error (collect2: ld returned 1 exit status)
Summary: dev-python/pythonmagick-0.8 compile error (collect2: ld returned 1 exit status)
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Library (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Python Gentoo Team
URL:
Whiteboard:
Keywords:
: 256546 (view as bug list)
Depends on:
Blocks:
 
Reported: 2009-01-20 12:29 UTC by Roman Karshiev
Modified: 2009-02-26 10:23 UTC (History)
2 users (show)

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


Attachments
SConstruct Patch (python-PythonMagick-sconstruct.patch,886 bytes, patch)
2009-01-31 14:44 UTC, Chris Mayo
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Roman Karshiev 2009-01-20 12:29:51 UTC
Error while compile.

Reproducible: Always

Steps to Reproduce:
emerge -av1 dev-python/pythonmagick
Actual Results:  
/bin/sh ../libtool --tag=CXX   --mode=link g++ -fopenmp -I/usr/include/ImageMagick   -O2 -march=native -fomit-frame-pointer -pipe -s -I/usr/include/python2.5 -I/usr/include/python2.5 -DBOOST_PYTHON_DYNAMIC_LIB  -Wl,-O1 -o libhelper.la  libhelper_la-Blob.lo  
libtool: link: i686-pc-linux-gnu-ar cru .libs/libhelper.a .libs/libhelper_la-Blob.o 
libtool: link: i686-pc-linux-gnu-ranlib .libs/libhelper.a
libtool: link: ( cd ".libs" && rm -f "libhelper.la" && ln -s "../libhelper.la" "libhelper.la" )
make[2]: Leaving directory `/var/tmp/portage/dev-python/pythonmagick-0.8/work/PythonMagick-0.8/helpers_src'
make[2]: Entering directory `/var/tmp/portage/dev-python/pythonmagick-0.8/work/PythonMagick-0.8'
/bin/sh ./libtool --tag=CXX   --mode=link g++  -O2 -march=native -fomit-frame-pointer -pipe -s -I/usr/include/python2.5 -I/usr/include/python2.5 -DBOOST_PYTHON_DYNAMIC_LIB -avoid-version -module -Wl,-O1 -o _PythonMagick.la -rpath /usr/lib/python2.5/site-packages/PythonMagick  pythonmagick_src/libpymagick.la helpers_src/libhelper.la -l -L/usr/lib -lMagick++ -lMagickCore    -lpython2.5 
libtool: link: g++ -shared -nostdlib /usr/lib/gcc/i686-pc-linux-gnu/4.3.2/../../../crti.o /usr/lib/gcc/i686-pc-linux-gnu/4.3.2/crtbeginS.o  -Wl,--whole-archive pythonmagick_src/.libs/libpymagick.a helpers_src/.libs/libhelper.a -Wl,--no-whole-archive  -l -L/usr/lib /usr/lib/libMagick++.so -L/usr/lib/gcc/i686-pc-linux-gnu/4.3.2 /usr/lib/libMagickWand.so /usr/lib/libMagickCore.so /usr/lib/liblcms.so /usr/lib/libtiff.so -ljbig /usr/lib/libjpeg.so /usr/lib/liblqr-1.so /usr/lib/libglib-2.0.so /usr/lib/libfontconfig.so /usr/lib/libfreetype.so /usr/lib/libexpat.so /usr/lib/libXext.so /usr/lib/libXt.so /usr/lib/libSM.so /usr/lib/libICE.so -luuid /usr/lib/libX11.so /usr/lib/libxcb-xlib.so /usr/lib/libxcb.so /usr/lib/libXau.so /usr/lib/libXdmcp.so -lbz2 -lz /usr/lib/gcc/i686-pc-linux-gnu/4.3.2/libgomp.so -lrt -lpthread /usr/lib/libltdl.so -ldl -lpython2.5 -L/usr/lib/gcc/i686-pc-linux-gnu/4.3.2/../../../../i686-pc-linux-gnu/lib -L/usr/lib/gcc/i686-pc-linux-gnu/4.3.2/../../.. -lstdc++ -lm -lc -lgcc_s /usr/lib/gcc/i686-pc-linux-gnu/4.3.2/crtendS.o /usr/lib/gcc/i686-pc-linux-gnu/4.3.2/../../../crtn.o  -march=native -Wl,-O1   -pthread -Wl,-soname -Wl,_PythonMagick.so -o .libs/_PythonMagick.so
/usr/lib/gcc/i686-pc-linux-gnu/4.3.2/../../../../i686-pc-linux-gnu/bin/ld: cannot find -l-L/usr/lib
collect2: ld returned 1 exit status
make[2]: *** [_PythonMagick.la] Error 1
make[2]: Leaving directory `/var/tmp/portage/dev-python/pythonmagick-0.8/work/PythonMagick-0.8'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/dev-python/pythonmagick-0.8/work/PythonMagick-0.8'
make: *** [all] Error 2
 * 
 * ERROR: dev-python/pythonmagick-0.8 failed.
 * Call stack:
 *               ebuild.sh, line   49:  Called src_compile
 *             environment, line 3110:  Called _eapi2_src_compile
 *               ebuild.sh, line  629:  Called die
 * The specific snippet of code:
 *              emake || die "emake failed"
 *  The die message:
 *   emake 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/dev-python/pythonmagick-0.8/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/dev-python/pythonmagick-0.8/temp/environment'.



# emerge --info
Portage 2.2_rc20 (default/linux/x86/2008.0/desktop, gcc-4.3.2, glibc-2.6.1-r0, 2.6.27-tuxonice-r7 i686)
=================================================================
System uname: Linux-2.6.27-tuxonice-r7-i686-Intel-R-_Core-TM-2_Quad_CPU_Q6600_@_2.40GHz-with-glibc2.0
Timestamp of tree: Tue, 20 Jan 2009 10:30:01 +0000
distcc 3.1 i686-pc-linux-gnu [disabled]
ccache version 2.4 [enabled]
app-shells/bash:     3.2_p39
dev-java/java-config: 1.3.7-r1, 2.1.6-r1
dev-lang/python:     2.5.2-r8
dev-python/pycrypto: 2.0.1-r6
dev-util/ccache:     2.4-r7
dev-util/cmake:      2.6.2
dev-util/confcache:  0.4.2-r1
sys-apps/baselayout: 2.0.0
sys-apps/openrc:     0.4.2
sys-apps/sandbox:    1.2.18.1-r2
sys-devel/autoconf:  2.13, 2.63
sys-devel/automake:  1.4_p6, 1.5, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.2
sys-devel/binutils:  2.18-r3
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   2.2.6a
virtual/os-headers:  2.6.27-r2
ACCEPT_KEYWORDS="x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=native -fomit-frame-pointer -pipe -s"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/kde/4.1/env /usr/kde/4.1/share/config /usr/kde/4.1/shutdown /usr/share/config"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/splash /etc/terminfo /etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-O2 -march=native -fomit-frame-pointer -pipe -s"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs autoconfig ccache confcache distlocks fixpackages parallel-fetch prelink preserve-libs protect-owned sandbox sfperms strict unmerge-orphans userfetch xdistcc xkeeptemp xkeepwork"
GENTOO_MIRRORS="http://ftp.ds.karen.hj.se/gentoo/ http://ftp.ing.umu.se/linux/gentoo/ http://trumpetti.atm.tut.fi/gentoo/ http://mirror.gentoo.no/"
LANG="ru_RU.UTF-8"
LC_ALL="ru_RU.UTF-8"
LDFLAGS="-Wl,-O1"
LINGUAS="ru"
MAKEOPTS="-j5"
PKGDIR="/usr/portage/packages"
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://rsync.gentoo.org/gentoo-portage"
USE="3ds 7zip X a52 aac acl acpi additions admin alsa amarok amazon ansi ape apm applet arts artworkextra asf audiofile avahi bash-completion beagle berkdb bjam bluetooth bonobo branding bsf bzip2 cairo cal3d calendar cdaudio cdda cddb cdio cdr cdrom cegui cg chardet chm cli colordiff cpudetection cracklib crypt ctype cups curl cursors custom-cflags custom-optimization cvs cxx d daap dbus devil dirac directfb disk-partition divx djvu dmi dri dts dvd dvdr dvdread dvi eds elfio emboss emerald encode epiphany esd evo examples exif exiv2 expat extrafilters fam fame fbcon fbcondecor fbsplash ffmpeg fftw filter_default firefox flac flash flatfile fltk fmod fontconfig foomaticdb fortran freeimage ftp fuse gajim gammu gcl gd gdbm gdm gedit gif gimp glib glitz glut gnome gnomecanvas gnutella gphoto2 gpm grammar graphviz gs gsf gstreamer gtk gtk2 gtkhtml guile gvim hal haskell hddtemp hdri httpd hyperestraier iceweasel icons iconv icq icu id3tag ide idn ieee1394 imagemagick imap imlib inotify ip4100 irc irda isdnlog jabber java java5 java6 javascript jbig jce jingle joystick jpeg jpeg2k jython kde kdeenablefinal kdehiddenvisibility kdepim kdeprefix kipi kqemu lame latex lcd lcms ldap lde libburn libnotify lj lm_sensors logrotate lua lyrics lzo lzw mad magic maildir math matroska maxoptimization memlimit menubar mhash midi mikmod mime mixer mjpeg mmkeys mmx mmxext mng mod modplug mono mozbranding mozcalendar mozdevelop moznopango mozsvg mp2 mp3 mp4 mpeg mpeg1 mpeg2 mplayer msn mtp mudflap muine musepack music musicbrainz mysql nano-syntax nautilus ncurses network networking newspr nfs nls nntp nolog4j nptl nptlonly nsplugin nspr ntfs ntfs3g nvidia obex ocaml ode offensive ogg ole openal openexr opengl openmp oscar paludis pam pango pch pcntl pcre pda pdf pear-db perl php pic pidgin plasma plotutils plugins png portaudio posix povray ppds pppd print psyco pyste python qt qt3 qt3support qt4 quicktime rar raw rdesktop readline reflection regex reiserfs remix rss ruby samba sasl scanner schroedinger screenshot scrobbler sdl seamonkey sensord server servicetools session simplexml skins slang smarty smp sms sound sounds spell spellcheck spl sql sqlite sqlite3 srt srv sse sse2 sse3 ssl ssse3 startup-notification stream subversion svg sysfs syslog taglib tagwriting takushipatch tcpd tetex tga themes theora thesaurus threads thumbnailing thunderbird tiff timidity toolbar tools totem trayicon truetype twolame unicode upnp urandom usb v4l v4l2 vcd vcdinfo vcdx vhosts vim vim-syntax vim-with-x voice vorbis wavpack webdav webkit wifi win32codecs wma wmf wxwindows x264 x86 xattr xcb xcomposite xine xinetd xml xmlrpc xmp xorg xosd xpm xprint xrandr xscreensaver xsl xulrunner xv xvid yaz zip zlib zsh-completion" ALSA_CARDS="hda-intel" 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" CAMERAS="canon" ELIBC="glibc" INITNG_PLUGINS="also bash_launcher chdir chroot conflict cpout critical ctrlaltdel daemon_clean debug_commands envparser find fmon fstat history idleprobe initctl interactive iparser last limit lockfile logfile netdev netprobe ngc4 ngcs nge pause provide reload renice rlparser simple_launcher stcmd stdout suid syncron syslog sysreq unneeded usplash" INPUT_DEVICES="keyboard mouse joystick evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="ru" LIRC_DEVICES="samsung" USERLAND="GNU" VIDEO_CARDS="nvidia vesa"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Wormo (RETIRED) gentoo-dev 2009-01-21 08:22:09 UTC
Look at that '-l' without any name:  
pythonmagick_src/libpymagick.la helpers_src/libhelper.la **-l** -L/usr/lib

Could you attach the full build log and the config.log as well? Can't really tell from this excerpt what the missing library name was supposed to be 

Comment 2 Roman Karshiev 2009-01-22 00:47:46 UTC
> Could you attach the full build log and the config.log as well?

This full build.log: http://balancer.ru/files/0901/build.log.bz2
Comment 3 Sébastien Fabbro (RETIRED) gentoo-dev 2009-01-23 17:52:19 UTC
Upstream changed their tar ball but the problem was still present only when you don't specify LDFLAGS. All should be fixed in 0.8-r1.
Thanks.
Comment 4 Helmut Jarausch 2009-01-26 11:44:06 UTC
(In reply to comment #3)
> Upstream changed their tar ball but the problem was still present only when you
> don't specify LDFLAGS. All should be fixed in 0.8-r1.

Unfortunately, Not here

Comment 5 Sébastien Fabbro (RETIRED) gentoo-dev 2009-01-29 19:16:11 UTC
*** Bug 256546 has been marked as a duplicate of this bug. ***
Comment 6 Sébastien Fabbro (RETIRED) gentoo-dev 2009-01-29 19:19:03 UTC
Folks,

Please test the pythonmagick-0.8-r1 from a new synced tree.
Comment 7 Chris Mayo 2009-01-30 17:20:53 UTC
Version 1.2 doesn't fix #256546 for me
Comment 8 Roman Karshiev 2009-01-31 05:21:11 UTC
(In reply to comment #6)
> Please test the pythonmagick-0.8-r1 from a new synced tree.

does not compile: http://balancer.ru/files/0901/build-2.log.bz2
Comment 9 Sébastien Fabbro (RETIRED) gentoo-dev 2009-01-31 12:55:58 UTC

(In reply to comment #7)
> Version 1.2 doesn't fix #256546 for me
I tried your setup (LDFLAGS, CXXFLAGS) and could not reproduce it.

(In reply to comment #8)
> does not compile: http://balancer.ru/files/0901/build-2.log.bz2
Bad link.

Which version of boost do you use?


Comment 10 Roman Karshiev 2009-01-31 13:21:26 UTC
> > does not compile: http://balancer.ru/files/0901/build-2.log.bz2
> Bad link.

Works for me :)

Try another please: http://pics.aviaport.ru/avias/build-2.log.bz2


> Which version of boost do you use?

dev-libs/boost
Installed versions:  1.35.0-r2
Comment 11 Clemmitt M. Sigler 2009-01-31 13:28:31 UTC
(In reply to comment #6)
> Please test the pythonmagick-0.8-r1 from a new synced tree.

The new pythonmagick-0.8-r1.ebuild dated Jan 27 05:35 (UTC+5 time) seems to have fixed this "-l-L" build error for me.  My versions of boost are:

[I--] [  ] dev-libs/boost-1.34.1-r2 (0)
[I--] [  ] dev-util/boost-build-1.34.1 (0)

Thx very much for the fix :^)

Clemmitt
Comment 12 Roman Karshiev 2009-01-31 13:37:43 UTC
> I tried your setup (LDFLAGS, CXXFLAGS) and could not reproduce it.

This package is not compiling and at my second computer. I later check logs, and if they differ, upload it too.
Comment 13 Chris Mayo 2009-01-31 14:44:34 UTC
Created attachment 180416 [details, diff]
SConstruct Patch

I've tried dev-libs/boost-1.35.0-r2 and dev-libs/boost-1.37.0
(dev-libs/boost-1.34.1-r2 won't compile for me with gcc-4.3.2)

I can get it compile for me using just "scons" instead of make with the attached patch to SConstruct.
Comment 14 Roman Karshiev 2009-02-02 11:17:37 UTC
> [I--] [  ] dev-libs/boost-1.34.1-r2 (0)
> [I--] [  ] dev-util/boost-build-1.34.1 (0)

I can't compile it with gcc-4.3.3
Comment 15 Sébastien Fabbro (RETIRED) gentoo-dev 2009-02-02 12:31:46 UTC
(In reply to comment #10)

> Try another please: http://pics.aviaport.ru/avias/build-2.log.bz2

Different problem: linking to the openmp gcc library. Probably as-needed, which I can't reproduce either.

I've just committed a fix for python-2.6 to pythonmagick-0-8-r2.
Anyone still can reproduce the initial problem: i.e. "cannot find -l-L/usr/lib
"?
Comment 16 Roman Karshiev 2009-02-02 12:49:09 UTC
> I can get it compile for me using just "scons" instead of make with the
> attached patch to SConstruct.

Thanx! It worked.
Comment 17 Chris Mayo 2009-02-02 19:27:53 UTC
Comment on attachment 180416 [details, diff]
SConstruct Patch

pythonmagick-0-8-r2 has fixed it for me
Comment 18 Sébastien Fabbro (RETIRED) gentoo-dev 2009-02-26 10:23:53 UTC
(In reply to comment #17)
> (From update of attachment 180416 [details, diff] [edit])
> pythonmagick-0-8-r2 has fixed it for me
> 

I'm closing this one. Please re-open if it is not the case.