Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 373181 - www-client/firefox-5.0-r1 fails to build: "collect2: ld returned 1 exit status"
Summary: www-client/firefox-5.0-r1 fails to build: "collect2: ld returned 1 exit status"
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Mozilla Gentoo Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-06-27 08:42 UTC by Dennis Schridde
Modified: 2011-07-03 01:49 UTC (History)
3 users (show)

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


Attachments
build.log (xz compressed) (build.log.xz,185.81 KB, application/x-xz)
2011-06-27 08:43 UTC, Dennis Schridde
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Dennis Schridde 2011-06-27 08:42:16 UTC
When linking libxul.so ld aborts. Build log attached.

Reproducible: Always




Portage 2.2.0_alpha41 (default/linux/amd64/10.0/desktop/kde, gcc-4.5.2, glibc-2.13-r2, 2.6.39-gentoo-r1 x86_64)
=================================================================
System uname: Linux-2.6.39-gentoo-r1-x86_64-AMD_Athlon-tm-_64_X2_Dual_Core_Processor_5000+-with-gentoo-2.0.3
Timestamp of tree: Mon, 27 Jun 2011 07:15:01 +0000
distcc 3.1 x86_64-pc-linux-gnu [disabled]
app-shells/bash:          4.2_p10
dev-java/java-config:     2.1.11-r3
dev-lang/python:          2.7.1-r1, 3.1.3-r1, 3.2
dev-util/cmake:           2.8.4-r1
dev-util/pkgconfig:       0.26
sys-apps/baselayout:      2.0.3
sys-apps/openrc:          0.8.3
sys-apps/sandbox:         2.5
sys-devel/autoconf:       2.13, 2.68
sys-devel/automake:       1.9.6-r3, 1.10.3, 1.11.1-r1
sys-devel/binutils:       2.21
sys-devel/gcc:            4.5.2
sys-devel/gcc-config:     1.4.1-r1
sys-devel/libtool:        2.4-r1
sys-devel/make:           3.82-r1
sys-kernel/linux-headers: 2.6.38 (virtual/os-headers)
sys-libs/glibc:           2.13-r2
Repositories: gentoo kde pcsx2 oss-overlay sunrise qt-symbian-overlay gamerlay-stable local
Installed sets: @kdebase
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-pipe -O2 -march=athlon64-sse3 -ftree-vectorize"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt /usr/share/themes/oxygen-gtk/gtk-2.0 /var/lib/neatx/home"
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.3/ext-active/ /etc/php/cgi-php5.3/ext-active/ /etc/php/cli-php5.3/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /e
tc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-pipe -O2 -march=athlon64-sse3 -ftree-vectorize"
DISTDIR="/var/cache/portage/distfiles"
EMERGE_DEFAULT_OPTS="--depclean-lib-check n --with-bdeps y --keep-going"
FEATURES="assume-digests binpkg-logs distlocks ebuild-locks fixlafiles fixpackages news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync"
FFLAGS=""
GENTOO_MIRRORS="ftp://linux.rz.ruhr-uni-bochum.de/gentoo-mirror/ ftp://linux.rz.ruhr-uni-bochum.de/gentoo-mirror/ http://distfiles.gentoo.org"
LANG="en_GB.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,--hash-style=gnu -Wl,--hash-style=gnu"
LINGUAS="de"
MAKEOPTS="-j3"
PKGDIR="/var/cache/portage/packages"
PORTAGE_COMPRESS="xz"
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="/var/cache/portage/gentoo"
PORTDIR_OVERLAY="/var/cache/portage/layman/kde /var/cache/portage/layman/pcsx2 /var/cache/portage/layman/oss-overlay /var/cache/portage/layman/sunrise /var/cache/portage/layman/qt-symbian-overlay /var/cache/portage/layman/gamerlay /var/cache/portage/local"
[...]
Unset:  CPPFLAGS, CTARGET, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Dennis Schridde 2011-06-27 08:43:07 UTC
Created attachment 278327 [details]
build.log (xz compressed)
Comment 2 Ferry 2011-06-27 12:06:19 UTC
Same issue here on my laptop. Oddly enough it built fine on my workstation, which is quite similar in regards to portage config / packages but much less frequently updated.
Comment 3 Ferry 2011-06-27 12:34:04 UTC
Do you see these messages too?

scanelf: rpath_security_checks(): Maybe? sec problem with DT_RPATH='lib64:/usr/lib64/xulrunner-devel-2.0/lib' in /usr/lib64/libproxy.so
scanelf: rpath_security_checks(): Maybe? sec problem with DT_RUNPATH='lib64:/usr/lib64/xulrunner-devel-2.0/lib' in /usr/lib64/libproxy.so
scanelf: rpath_security_checks(): Maybe? sec problem with DT_RPATH='lib64:/usr/lib64/xulrunner-devel-2.0/lib' in /usr/lib64/libproxy.so.1.0.0
scanelf: rpath_security_checks(): Maybe? sec problem with DT_RUNPATH='lib64:/usr/lib64/xulrunner-devel-2.0/lib' in /usr/lib64/libproxy.so.1.0.0
scanelf: rpath_security_checks(): Maybe? sec problem with DT_RPATH='lib64:/usr/lib64/xulrunner-devel-2.0/lib' in /usr/lib64/libproxy.so.1
scanelf: rpath_security_checks(): Maybe? sec problem with DT_RUNPATH='lib64:/usr/lib64/xulrunner-devel-2.0/lib' in /usr/lib64/libproxy.so.1
scanelf: rpath_security_checks(): Maybe? sec problem with DT_RPATH='lib64:/usr/lib64/xulrunner-devel-2.0/lib' in /usr/lib64/libproxy.so
scanelf: rpath_security_checks(): Maybe? sec problem with DT_RUNPATH='lib64:/usr/lib64/xulrunner-devel-2.0/lib' in /usr/lib64/libproxy.so
scanelf: rpath_security_checks(): Maybe? sec problem with DT_RPATH='lib64:/usr/lib64/xulrunner-devel-2.0/lib' in /usr/lib64/libproxy.so.1.0.0
scanelf: rpath_security_checks(): Maybe? sec problem with DT_RUNPATH='lib64:/usr/lib64/xulrunner-devel-2.0/lib' in /usr/lib64/libproxy.so.1.0.0
scanelf: rpath_security_checks(): Maybe? sec problem with DT_RPATH='lib64:/usr/lib64/xulrunner-devel-2.0/lib' in /usr/lib64/libproxy.so.1
scanelf: rpath_security_checks(): Maybe? sec problem with DT_RUNPATH='lib64:/usr/lib64/xulrunner-devel-2.0/lib' in /usr/lib64/libproxy.so.1
scanelf: rpath_security_checks(): Maybe? sec problem with DT_RPATH='lib64:/usr/lib64/xulrunner-devel-2.0/lib' in /usr/lib64/libproxy.so
scanelf: rpath_security_checks(): Maybe? sec problem with DT_RUNPATH='lib64:/usr/lib64/xulrunner-devel-2.0/lib' in /usr/lib64/libproxy.so
scanelf: rpath_security_checks(): Maybe? sec problem with DT_RPATH='lib64:/usr/lib64/xulrunner-devel-2.0/lib' in /usr/lib64/libproxy.so.1.0.0
scanelf: rpath_security_checks(): Maybe? sec problem with DT_RUNPATH='lib64:/usr/lib64/xulrunner-devel-2.0/lib' in /usr/lib64/libproxy.so.1.0.0
scanelf: rpath_security_checks(): Maybe? sec problem with DT_RPATH='lib64:/usr/lib64/xulrunner-devel-2.0/lib' in /usr/lib64/libproxy.so.1
scanelf: rpath_security_checks(): Maybe? sec problem with DT_RUNPATH='lib64:/usr/lib64/xulrunner-devel-2.0/lib' in /usr/lib64/libproxy.so.1


I'm running portage 2.2... Stupid thing is, equery b /usr/lib/libproxy.so and equery b /usr/lib64/libproxy.so don't find any packages to which this file should belong.
Comment 4 Ferry 2011-06-27 12:35:26 UTC
Beh no edit. Forgot to ask, can you check if you
a) have the files (/usr/lib(64)/libproxy.so(.1(.0.0)))?
b) if a, if equery b <filename> can find them (probably wise to use both /usr/lib/libproxy.so and /usr/lib64/libproxy.so as paths).

Thanks
Comment 5 Agostino Sarubbo gentoo-dev 2011-06-27 13:10:11 UTC
have you enough space to disk/tmpfs?
Comment 6 Ferry 2011-06-27 13:43:05 UTC
Yes on the diskspace. It was tight in my /var/tmp/portage tmpfs, but unmounting it (and thus using local disk) yielded same results.

This solved it for me (use at your OWN risk, I do not have a complete idea on what the removal breaks, revdep-rebuild should give you some indications, maybe better to move them... since libproxy.so files couldn't be found by equery I just deleted them as they're probably left over from some old package)

rm /usr/lib64/libproxy.so*
revdep-rebuild
emerge -1 xulrunner 
# (doubt this is necessary, but I already had it running because the ld error status was on libxul.so)
emerge firefox
Comment 7 Dennis Schridde 2011-06-27 14:05:35 UTC
(In reply to comment #6)
> emerge -1 xulrunner 
> # (doubt this is necessary, but I already had it running because the ld error
> status was on libxul.so)
I think firefox-5.0 contains xulrunner internally. At least the compiletime and the missing DEPEND=xulrunner suggest this.
Comment 8 Dennis Schridde 2011-06-27 15:36:10 UTC
(In reply to comment #4)
> Beh no edit. Forgot to ask, can you check if you
> a) have the files (/usr/lib(64)/libproxy.so(.1(.0.0)))?
> b) if a, if equery b <filename> can find them (probably wise to use both
> /usr/lib/libproxy.so and /usr/lib64/libproxy.so as paths).
$ q file -v /usr/lib/libproxy.so
net-libs/libproxy-0.4.6-r3 (/usr/lib64/libproxy.so)
Comment 9 Ferry 2011-06-28 07:44:42 UTC
libproxy is (no longer) installed here:
~/ eix libproxy
* net-libs/libproxy
     Available versions:  0.4.6 (~)0.4.6-r2 (~)0.4.6-r3 {gnome kde mono networkmanager perl python test vala webkit xulrunner}
     Homepage:            http://code.google.com/p/libproxy/
     Description:         Library for automatic proxy configuration management


I recently ran depclean/prune (emerge --depclean; emerge -DP). Proxy settings here seem to work fine (usually don't use proxies but currently at a customer where it's required).
Comment 10 Dennis Schridde 2011-06-29 07:03:03 UTC
(In reply to comment #5)
> have you enough space to disk/tmpfs?
I resized /var/tmp/portage from 2G to 4G and now firefox builds.
Comment 11 onip 2011-06-29 08:25:35 UTC
I don't have a different partition for /var/tmp/portage, but it saturates both ram and swap for a total of about 8G. Also 5.0 was built correctly so there's something wrong with the new patches.
Comment 12 Jory A. Pratt gentoo-dev 2011-06-29 12:55:11 UTC
(In reply to comment #11)
> I don't have a different partition for /var/tmp/portage, but it saturates both
> ram and swap for a total of about 8G. Also 5.0 was built correctly so there's
> something wrong with the new patches.

There is nothing wrong with the patches, the problem is space, we need to add a check to ensure there is enough space left on device to link libxul, if we were to allow the build to strip during install it would save a ton of space on the device during src_install.
Comment 13 Nirbheek Chauhan (RETIRED) gentoo-dev 2011-07-03 01:49:50 UTC
If you guys have problems with space and/or RAM, use the -bin version. The compiled version isn't really be that much faster, seriously.

Besides, there's no separate xulrunner anymore which means you don't have to compile it for anything else.

We think about adding some warnings to pkg_pretend or pkg_setup, but it's not guaranteed.