Red Hat Bugzilla – Bug 690315
python occasionally fails to build on machines with more than one core
Last modified: 2016-05-31 21:47:17 EDT
Description of problem: There's a race condition in python Makefile.pre.in, which sometimes leads to compile/link errors on machines with more than one core. See e.g. http://bugs.python.org/issue10013 Fix is trivial and in Fedora: http://pkgs.fedoraproject.org/gitweb/?p=python.git;a=blob;f=python-2.7-fix-parallel-make.patch;h=c43e141f9afba45768af85593a2ff41b5a24e464;hb=b95f6cc2ca6a009f97436c6aa16cfd70547353d9
Technical note added. If any revisions are required, please edit the "Technical Notes" field accordingly. All revisions will be proofread by the Engineering Content Services team. New Contents: A race condition was discovered in python Makefile.pre.in. The "make" command interprets a make rule with two dependents as two copies of the rule. On machines with more than one core, this could lead to race conditions in which the compiler attempted to read a partially-overwritten file. This resulted in syntax or link errors when attempting to build python on machines with multiple cores. A check has been added to prevent this issue.
An advisory has been issued which should help the problem described in this bug report. This report is therefore being closed with a resolution of ERRATA. For more information on therefore solution and/or where to find the updated files, please follow the link below. You may reopen this bug report if the solution does not work for you. http://rhn.redhat.com/errata/RHSA-2011-0554.html