Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 373233 - sys-devel/gcc[graphite]: build spends a lot of time polling ipc_in FIFO
Summary: sys-devel/gcc[graphite]: build spends a lot of time polling ipc_in FIFO
Status: RESOLVED DUPLICATE of bug 401919
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] GCC Porting (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-06-27 18:01 UTC by walt
Modified: 2012-02-24 16:52 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 walt 2011-06-27 18:01:48 UTC
When the graphite useflag is set, the ebuild for >=gcc-4.4.x
wastes 50% of cpu cycles with useless polling of the .ipc_in FIFO.

This has nothing to do with gcc itself, or whether gcc was built
with graphite enabled.  I think maybe it's a bug in toolchain.eclass?

To reproduce:  set the graphite useflag and emerge any >=gcc-4.4.x.
You should see the 'emerge' process hogging half the cpu constantly
during the emerge.

Run strace on the 'emerge' process and you should see it doing nothing
but polling /dev/ptmx and the '.ipc_in' FIFO.
Comment 1 walt 2011-06-27 18:10:00 UTC
Sorry, forgot to mention I'm running portage-2.1.10.3 on ~amd64
and ~x86 and see the same problem on both machines.
Comment 2 Zac Medico gentoo-dev 2011-06-29 22:52:15 UTC
The symptom seems similar to bug 339976. I doubt that it's any fault of the ebuild or eclass, though it's interesting that you're observing a correlation.
Comment 3 walt 2012-02-24 14:32:16 UTC
I'm happy to report that I'm now compiling gcc-4.5.3-r2/graphite on x86 and amd64 with normal speed -- in fact the build seems supersonic compared to the last time I built gcc.

I guess this bug can be closed as FIXED, though I don't know who or what
fixed it :)
Comment 4 Zac Medico gentoo-dev 2012-02-24 16:52:07 UTC
Thanks for reporting. It's the same as bug 401919, which is fixed in 2.1.10.46 and 2.2.0_alpha86.
Comment 5 Zac Medico gentoo-dev 2012-02-24 16:52:42 UTC

*** This bug has been marked as a duplicate of bug 401919 ***