Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 271642 - dev-lang/python fails to build parallelly
Summary: dev-lang/python fails to build parallelly
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: All All
: High minor (vote)
Assignee: Python Gentoo Team
URL: http://bugs.python.org/issue10013
Whiteboard: 2.7.2, 3.1.4, 3.2
Keywords:
: 333719 351514 (view as bug list)
Depends on:
Blocks:
 
Reported: 2009-05-29 08:41 UTC by Kai Dietrich
Modified: 2011-06-27 09:26 UTC (History)
5 users (show)

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


Attachments
emerge --info (emergeinfo.txt,4.15 KB, text/plain)
2009-05-29 08:51 UTC, Kai Dietrich
Details
Output of the build (gentoo.out,50.83 KB, text/plain)
2010-08-07 14:37 UTC, Samu Voutilainen
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Kai Dietrich 2009-05-29 08:41:03 UTC
merging python 2.4.6 in the 2.4 slot fails with the message:

x86_64-pc-linux-gnu-ranlib libpython2.4.a
x86_64-pc-linux-gnu-gcc -pthread -Wl,-O1 -Xlinker -export-dynamic -o python \
                        Modules/python.o \
                        -L. -lpython2.4 -lpthread -ldl  -lutil   -lm
./libpython2.4.so: undefined reference to `_PyParser_Grammar'
collect2: ld returned 1 exit status
make: *** [python] Error 1
 *
 * ERROR: dev-lang/python-2.4.6 failed.
 * Call stack:
 *               ebuild.sh, line   48:  Called src_compile
 *             environment, line 3609:  Called die
 * The specific snippet of code:
 *       emake || die "Parallel make failed"
 *  The die message:
 *   Parallel make failed




Reproducible: Always

Steps to Reproduce:
1.MAKEOPTS='-j4' emerge -av '=dev-lang/python-2.4.6'
Comment 1 Kai Dietrich 2009-05-29 08:51:18 UTC
Created attachment 192828 [details]
emerge --info
Comment 2 Justin Lecher (RETIRED) gentoo-dev 2009-05-29 08:55:12 UTC
Does it work with MAKEOPTS=""?
And please use -O2 instead of -Os for testing.
Comment 3 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2009-05-29 20:18:39 UTC
python: maybe parallel build issue?
Comment 4 zvasylvv 2009-12-11 21:02:10 UTC
Got same when tried to update from 2.6.2-r1 to 2.6.4

MAKEOPTS='-j5', Intel(R) Core(TM)2 CPU T5600 @ 1.83GHz
Comment 5 zvasylvv 2009-12-11 21:25:50 UTC
(In reply to comment #3)
> python: maybe parallel build issue?
> 

Yes, all is OK with '-j1'
Comment 6 Samu Voutilainen 2010-08-07 13:05:20 UTC
This happens with 2.6.5(-r2 to -r3 upgrade) too... -j6, with Paludis. I suppose it is caused randomly by paraller compilation.

Solved by -j1.

Comment 7 Brian Harring (RETIRED) gentoo-dev 2010-08-07 13:56:11 UTC
Post the build log please...
Comment 8 Samu Voutilainen 2010-08-07 14:37:50 UTC
Created attachment 241781 [details]
Output of the build

There you go.
Comment 9 Brian Harring (RETIRED) gentoo-dev 2010-08-07 14:47:43 UTC
ctypes module also isn't parallelization safe (just nailed that on first run with a make -j100... and no, my hardware isn't that good, just a good way to piss off parallelization issues).

I'd really rather not see this get -j1'd... anyone feel like building up some patches?
Comment 10 Arfrever Frehtes Taifersar Arahesis (RETIRED) gentoo-dev 2010-08-07 16:48:31 UTC
(In reply to comment #9)
> ctypes module also isn't parallelization safe

_ctypes module is built by distutils and distutils doesn't support parallel building/installation.
Comment 11 Arfrever Frehtes Taifersar Arahesis (RETIRED) gentoo-dev 2011-01-13 15:20:18 UTC
*** Bug 333719 has been marked as a duplicate of this bug. ***
Comment 12 Arfrever Frehtes Taifersar Arahesis (RETIRED) gentoo-dev 2011-01-13 15:21:15 UTC
*** Bug 351514 has been marked as a duplicate of this bug. ***
Comment 13 Arfrever Frehtes Taifersar Arahesis (RETIRED) gentoo-dev 2011-01-13 16:05:40 UTC
This bug will be fixed in 2.7.2, 3.1.4 and 3.2.
Comment 14 Balint SZENTE 2011-06-25 14:39:28 UTC
I encountered this issue with -j6 on an Intel Core i7 2630QM, but an
# emerge --resume
immediately after the build error compiled the package correctly. Perhaps the error manifests randomly, depending on the compilation scheduling.
Comment 15 Dirkjan Ochtman (RETIRED) gentoo-dev 2011-06-27 09:26:01 UTC
2.7.2, 3.1.4 and 3.2 are now in the tree, this issue should be fixed (thanks Arfrever).