[New-bugs-announce] [issue17667] Windows: build with "build_pgo.bat -2" fails to optimize python.dll

Anselm Kruis report at bugs.python.org
Mon Apr 8 20:10:34 CEST 2013


New submission from Anselm Kruis:

Version: 2.7.4 (and any prior 2.7-version. not tested with 3.x)
Compiler: VS 2008 Professional

If I compile Python using the batch 

> PCbuild\build_pgo.bat -2

Visual Studio fails to correctly collect profile information for the project "python27.dll". As a result, no real optimisation takes place.

The command "build_pgo.bat -2" runs the full test suite (..\lib\test\regrtest.py) to collect profile data. Experiments show, that several test cases (i.e. test_os and test_subprocess) break the collection of profile data. Probably the failure is related to the creation of sub-processes. I consider it a Visual Studio bug.

To work around this issue I created a list of good test cases and patched build_pgo.bat to run only the tests from this list.

----------
components: Build, Windows
files: build_pgo-2.patch
keywords: patch
messages: 186322
nosy: akruis
priority: normal
severity: normal
status: open
title: Windows: build with "build_pgo.bat -2" fails to optimize python.dll
type: compile error
versions: Python 2.7
Added file: http://bugs.python.org/file29739/build_pgo-2.patch

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue17667>
_______________________________________


More information about the New-bugs-announce mailing list