Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 508878 - toolchain.eclass : Allow profiledbootstrap AND parallel build for gcc >=4.6
Summary: toolchain.eclass : Allow profiledbootstrap AND parallel build for gcc >=4.6
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Eclasses (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Toolchain Maintainers
URL: http://gcc.gnu.org/install/build.html
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-04-27 15:14 UTC by Eric F. GARIOUD
Modified: 2014-05-15 05:19 UTC (History)
0 users

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 Eric F. GARIOUD 2014-04-27 15:14:34 UTC
I understand that the toolchain.eclass disables parallel build when ${GCC_MAKE_TARGET} == "profiledbootstrap"
-----------
# the gcc docs state that parallel make isnt supported for the
    # profiledbootstrap target, as collisions in profile collecting may occur.
    # boundschecking also seems to introduce parallel build issues.
    if [[ ${GCC_MAKE_TARGET} == "profiledbootstrap" ]] ||
       use_if_iuse boundschecking
    then
        export MAKEOPTS="${MAKEOPTS} -j1"
    fi
--------------
I understand from Markus Trippelsdorf that the documentation grounding this decision was outdated as, "You can profilbootstrap gcc in parallel at least since 4.6."

Co-incidently, it should be noticed that the gcc documentation was updated today and no longer displays the restriction.

On a side note, I successfully tested a gcc-4.7.3, built (profiledbootstrap) -j2 on a core2 (after patching the above snippet of code)   

Reproducible: Always