This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: make install fails with -j8 with python2.6/config on FreeBSD
Type: compile error Stage: resolved
Components: Build Versions: Python 3.3, Python 2.7
process
Status: closed Resolution: out of date
Dependencies: Superseder:
Assigned To: Nosy List: christian.heimes, ngie, ngie.cooper, terry.reedy
Priority: normal Keywords:

Created on 2010-03-06 06:40 by ngie, last changed 2022-04-11 14:56 by admin. This issue is now closed.

Files
File name Uploaded Description Edit
all.log ngie, 2010-03-06 07:01 make all ; make install with busted python26 package
clean.log ngie, 2010-03-06 07:02 make deinstall clean run before make all; make install (all.log)
Messages (4)
msg100518 - (view) Author: Enji Cooper (ngie) * Date: 2010-03-06 06:40
When attempting to install and deinstall lang/python26 to run some unit tests for a change I was going to provide to the maintainer, I ran into this issue:

install -o root -g wheel -m 444 ./../Include/ucnhash.h /usr/local/include/python2.6
install -o root -g wheel -m 444 ./../Include/unicodeobject.h /usr/local/include/python2.6
install -o root -g wheel -m 444 ./../Include/warnings.h /usr/local/include/python2.6
install -o root -g wheel -m 444 ./../Include/weakrefobject.h /usr/local/include/python2.6
install  -o root -g wheel -m 444 pyconfig.h /usr/local/include/python2.6/pyconfig.h
Creating directory /usr/local/lib/python2.6/config
install: /usr/local/lib/python2.6/config exists but is not a directory
*** Error code 71

Stop in /scratch/freebsd/ports/lang/python26/work/Python-2.6.4/portbld.static.
*** Error code 1

Stop in /scratch/freebsd/ports/lang/python26.
*** Error code 1

The problem was caused by an incomplete install into ${prefix} [which I will take up with the FreeBSD project], but manifests itself because the -j value I specified, was too high. I say this because of another comment placed in a top-level Makefile at a previous job about compiling Python 2.4.2 with this particular goal (installing the modules) and race conditions.

I would provide a patch but I'm not sure what the issue could stem from, other than a race conditions with a busted install-sh and incomplete dependencies specified in Makefile.pre.in.

I'll provide more info if needed.

Reproducible via the following on FreeBSD, given a fast enough machine:

cd lang/python26; make deinstall clean; make -j8 all; make -j8 install

[gcooper@bayonetta /scratch/freebsd/ports/lang/python26]$ uname -a
FreeBSD bayonetta.localdomain 9.0-CURRENT FreeBSD 9.0-CURRENT #2: Thu Mar  4 13:16:39 PST 2010     gcooper@bayonetta.localdomain:/usr/obj/usr/src/sys/BAYONETTA  amd64
[gcooper@bayonetta /scratch/freebsd/ports/lang/python26]$ sysctl -a hw.model
hw.model: Intel(R) Xeon(R) CPU           W3520  @ 2.67GHz

[From top(1)]

Mem: 43M Active, 10G Inact, 870M Wired, 76M Cache, 1237M Buf, 537M Free
Swap: 20G Total, 108K Used, 20G Free
msg185782 - (view) Author: Terry J. Reedy (terry.reedy) * (Python committer) Date: 2013-04-01 23:08
Garrett, I don't know that any of our active developers use FreeBSD. Is this a problem with 2.7.3 or 3.3.0 (or 2.7.4 or 3.3.1 when they come out in a week)? If you have lost interest, please say so and we will close until such time as it becomes current again.
msg193725 - (view) Author: NGie Cooper (ngie.cooper) Date: 2013-07-26 01:30
Feel free to close this. I don't have any interest in pursuing it further.
msg193728 - (view) Author: Christian Heimes (christian.heimes) * (Python committer) Date: 2013-07-26 11:19
I have never seen that kind of error with Python 2.7 or 3.3+. It's probably fixed.
History
Date User Action Args
2022-04-11 14:56:58adminsetgithub: 52326
2013-07-26 11:19:05christian.heimessetstatus: open -> closed

type: compile error

nosy: + christian.heimes
messages: + msg193728
resolution: out of date
stage: resolved
2013-07-26 01:30:05ngie.coopersetnosy: + ngie.cooper
messages: + msg193725
2013-04-01 23:08:10terry.reedysetnosy: + terry.reedy

messages: + msg185782
versions: + Python 3.3, - Python 3.2
2010-08-04 04:38:17terry.reedysetversions: + Python 2.7, Python 3.2, - Python 2.6, Python 2.5
2010-03-06 07:02:07ngiesetfiles: + clean.log
2010-03-06 07:01:39ngiesetfiles: + all.log
2010-03-06 06:40:28ngiecreate