Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 52465 - libpng 1.2.5-r6 fails to compile -- misuse of ld?
Summary: libpng 1.2.5-r6 fails to compile -- misuse of ld?
Status: RESOLVED DUPLICATE of bug 49363
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Library (show other bugs)
Hardware: All All
: High normal (vote)
Assignee: Gentoo Graphics Project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-05-30 08:03 UTC by Ben Anderson
Modified: 2005-07-17 13:06 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 Ben Anderson 2004-05-30 08:03:03 UTC
this looks very similar to a GCC miscompile I reported last night. Either someone's submitting bad ebuilds or there's something seriously wrong with the current ~x86 binutils.

here's the compile error:
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.3/../../../../i686-pc-linux-gnu/bin/ld: unrecognized option '--as-needed'
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.3/../../../../i686-pc-linux-gnu/bin/ld: use the --help option for usage information
collect2: ld returned 1 exit status
make: *** [pngtest-static] Error 1
make: *** Waiting for unfinished jobs....

!!! ERROR: media-libs/libpng-1.2.5-r6 failed.
!!! Function src_compile, Line 37, Exitcode 2
!!! Make failed

emerge info:
Portage 2.0.50-r7 (default-x86-2004.0, gcc-3.3.3, glibc-2.3.3_pre20040420-r0, 2.6.5-gentoo)
=================================================================
System uname: 2.6.5-gentoo i686 AMD Athlon(tm) processor
Gentoo Base System version 1.4.10
Autoconf: sys-devel/autoconf-2.59-r3
Automake: sys-devel/automake-1.8.3
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CFLAGS="-O3 -mcpu=athlon -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
COMPILER="gcc3"
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3/share/config /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="-O3 -mcpu=athlon -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache sandbox"
GENTOO_MIRRORS="http://gentoo.oregonstate.edu http://distro.ibiblio.org/pub/Linux/distributions/gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="3dnow X aalib acpi alsa audiofile avi berkdb cdr cjk crypt dga dvd encode flac gdbm gif gmp gphoto2 gtk imagemagick imlib java jpeg libg++ libwww mad mikmod mmx motif mozilla mpeg ncurses nls offensive oggvorbis opengl pam pdflib perl png python quicktime readline sdl slang spell ssl tcpd tetex tiff truetype unicode usb x86 xml2 xmms xv zlib"
Comment 1 Sven Wegener gentoo-dev 2004-05-30 08:15:25 UTC
might be a dup of bug 50211

sys-devel/binutils-2.14.90.0.8-r1 is the last version not hard-masked in ~x86
Comment 2 Stephen Bennett (RETIRED) gentoo-dev 2004-05-30 10:25:57 UTC
It is #50211. There's a long thread about it in the forums with a fix:
http://forums.gentoo.org/viewtopic.php?t=166696
Comment 3 SpanKY gentoo-dev 2004-05-30 22:58:40 UTC
it's not Bug 50211

it's actually Bug 49363

*** This bug has been marked as a duplicate of 49363 ***
Comment 4 Stephen Bennett (RETIRED) gentoo-dev 2004-05-31 05:10:50 UTC
Nope, it's not 50211. It's the problem mentioned in the comments on 50211. My bad.