homepage

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 profile-opt fails with pre-existing python2.7 in path
Type: behavior Stage: resolved
Components: Build Versions: Python 3.4, Python 3.5, Python 2.7
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: Nosy List: Claudio.Freire, zach.ware
Priority: normal Keywords:

Created on 2013年07月18日 17:47 by Claudio.Freire, last changed 2022年04月11日 14:57 by admin. This issue is now closed.

Messages (3)
msg193313 - (view) Author: Claudio Freire (Claudio.Freire) Date: 2013年07月18日 17:47
When building with --enable-shared in an environment that already has a python2.7 (and I'd expect the same to happen to 3.x), make profile-opt fails because it attempts to load the existing libpython instead of the just-built one.
run_profile_task should use RUNSHARED. In fact, it builds fine if $(RUNSHARED) is added to that line.
Patch inline below, for 2.7.5:
--- Makefile.pre.in.bk 2013年07月18日 17:46:28.671773378 +0000
+++ Makefile.pre.in 2013年07月18日 17:46:47.759806100 +0000
@@ -420,7 +420,7 @@
 
 run_profile_task:
 : # FIXME: can't run for a cross build
- ./$(BUILDPYTHON) $(PROFILE_TASK)
+ $(RUNSHARED) ./$(BUILDPYTHON) $(PROFILE_TASK)
 
 build_all_use_profile:
 $(MAKE) all CFLAGS="$(CFLAGS) -fprofile-use"
msg228609 - (view) Author: Mark Lawrence (BreamoreBoy) * Date: 2014年10月05日 18:24
Can somebody please take a look at the inline patch in msg193313.
msg367387 - (view) Author: Zachary Ware (zach.ware) * (Python committer) Date: 2020年04月27日 04:16
This was fixed in 3.x in 2015 and later backported to 2.7 in 2017. Thanks for the report, Claudio, and I'm sorry nobody noticed this earlier or we could have fixed the issue two years earlier!
History
Date User Action Args
2022年04月11日 14:57:48adminsetgithub: 62693
2020年04月27日 04:16:49zach.waresetstatus: open -> closed

nosy: + zach.ware
messages: + msg367387

resolution: fixed
stage: resolved
2019年04月26日 17:50:30BreamoreBoysetnosy: - BreamoreBoy
2014年10月05日 18:24:12BreamoreBoysetversions: + Python 3.4, Python 3.5
nosy: + BreamoreBoy

messages: + msg228609

type: behavior
2013年07月18日 17:47:37Claudio.Freirecreate

AltStyle によって変換されたページ (->オリジナル) /