Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 348235 - emerge of =www-client/chromium -7.0.517.44 failed
Summary: emerge of =www-client/chromium -7.0.517.44 failed
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Chromium Project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-12-09 06:29 UTC by dio
Modified: 2016-10-15 01:51 UTC (History)
1 user (show)

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


Attachments
emerge --info (emerge.info,4.37 KB, text/plain)
2010-12-09 06:32 UTC, dio
Details
emerge -pqv (emerge.pqv,94 bytes, text/plain)
2010-12-09 06:35 UTC, dio
Details
Build log (build.log.gz,235.04 KB, text/plain)
2010-12-09 06:48 UTC, dio
Details

Note You need to log in before you can comment on or make changes to this bug.
Description dio 2010-12-09 06:29:21 UTC
As part of a long-distance upgrade of more than 200 packages on a Pentium4 machine, emerge of =www-client/chromium -7.0.517.44 failed.  Rebooting and re-emerging did not help.  The problem persists.

Reproducible: Always

Steps to Reproduce:
1. emerge -puND world (or emerge chromium)
2.
3.

Actual Results:  
ld failed

Expected Results:  
ld successful
Comment 1 dio 2010-12-09 06:32:59 UTC
Created attachment 256709 [details]
emerge --info
Comment 2 dio 2010-12-09 06:35:20 UTC
Created attachment 256710 [details]
emerge -pqv
Comment 3 dio 2010-12-09 06:48:38 UTC
Created attachment 256712 [details]
Build log
Comment 4 Bernard Cafarelli gentoo-dev 2010-12-09 14:18:08 UTC
> collect2: ld terminated with signal 9 [Killed]

Looks like you ran out of memory when linking the final binary?
Comment 5 Mike Gilbert gentoo-dev 2010-12-10 02:10:53 UTC
(In reply to comment #4)
> > collect2: ld terminated with signal 9 [Killed]
> 
> Looks like you ran out of memory when linking the final binary?
> 

If that's the case, I suggest building without debug symbols (-ggdb). That will cut the linker's memory usage by 50-75%.
Comment 6 dio 2010-12-10 22:51:33 UTC
> ... I suggest building without debug symbols (-ggdb). That will
> cut the linker's memory usage by 50-75%.

Makes sense, I'm going to try that and will report on the effect.

The reason why I set CFLAGS="... -ggdb" is that I would want to build KDE with -ggdb and FEATURES="splitdebug" so that I am able to contribute via DrKonqi.  Is there a way to switch between different CFLAGS settings (you know what I mean when I say "/etc/portage/package.cflags"), or do I seem to fight windmills here?
Comment 7 Mike Gilbert gentoo-dev 2010-12-10 23:18:27 UTC
(In reply to comment #6)

> Is there a way to switch between different CFLAGS settings (you know what I
> mean when I say "/etc/portage/package.cflags"), or do I seem to fight windmills
> here?
> 

You can do this by utilizing package.env. For example:

mkdir -p /etc/portage/env
echo 'CFLAGS="..."' > /etc/portage/env/nodebug
echo 'CXXFLAGS=${CFLAGS}' >> /etc/portage/env/nodebug
echo "www-client/chromium nodebug" >> /etc/portage/package.env

See portage(5) for more info.
Comment 8 dio 2010-12-11 11:40:38 UTC
Thanks for all the advice!  Removing "-ggdd" for the compilation did do the job.

I will use the /etc/portage/env trick.

Closing the “bug”.
Comment 9 Mike Gilbert gentoo-dev 2016-10-15 01:51:33 UTC
*** Bug 597144 has been marked as a duplicate of this bug. ***