Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 744088 - dev-python/graph-tool takes ages for build because of -j1
Summary: dev-python/graph-tool takes ages for build because of -j1
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal minor
Assignee: Python Gentoo Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-09-22 11:52 UTC by Agostino Sarubbo
Modified: 2020-09-27 22:32 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 Agostino Sarubbo gentoo-dev 2020-09-22 11:52:04 UTC
From ebuild:

src_compile() {
        # most machines don't have enough ram for parallel builds
        python_foreach_impl run_in_build_dir emake -j1
}


Since it doesn't fail because of broken parallel build but instead for missing ram, I'd suggest to workvaround and manage the parallel jobs according to the available ram.
Comment 1 David Seifert gentoo-dev 2020-09-22 13:19:02 UTC
graph-tool is a humongous memory hog, and easily goes above 2GB per $CC process. The best option would be to set -j to total_memory / 4GiB, but I'm not aware of a non-terrible way to specify that.
Comment 2 Larry the Git Cow gentoo-dev 2020-09-27 22:32:34 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7f67a3f792c780157aa926693d3d28f57eb870f9

commit 7f67a3f792c780157aa926693d3d28f57eb870f9
Author:     David Seifert <soap@gentoo.org>
AuthorDate: 2020-09-27 22:32:19 +0000
Commit:     David Seifert <soap@gentoo.org>
CommitDate: 2020-09-27 22:32:19 +0000

    dev-python/graph-tool: Do not build with -j1
    
    Closes: https://bugs.gentoo.org/744088
    Package-Manager: Portage-3.0.8, Repoman-3.0.1
    Signed-off-by: David Seifert <soap@gentoo.org>

 dev-python/graph-tool/graph-tool-2.35.ebuild | 2 +-
 dev-python/graph-tool/graph-tool-9999.ebuild | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)