Author gregory.p.smith
Recipients gregory.p.smith
Date 2014-11-19.22:55:33
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
1) Checkout a 3.4 tree.  Mine was at revision d244e1770f1b.
2) ./configure
3) make -j14 profile-opt
4) ./python -m test.regrtest -v test_distutils

FAIL: test_sysconfig_module (distutils.tests.test_sysconfig.SysconfigTestCase)
Traceback (most recent call last):
  File "/.../oss/cpython/3.4/Lib/distutils/tests/", line 131, in test_sysconfig_module
AssertionError: '-Wno[38 chars] -Wall -Wstrict-prototypes  -fprofile-use -fprofile-correction' != '-Wno[38 chars] -Wall -Wstrict-prototypes'

This can be traced to the built file which contains the command line passed CFLAGS from the build_all_use_profile target's sub-make vs the distutils.sysconfig module's Makefile parsing which finds the PY_CFLAGS value from the Makefile itself.

One of either stripping the profile-opt related flags out when generating or explicitly generating a good file outside of the sub-make's with the profiling generate or use flags seems like a good idea.  The latter is likely easier; just regenerate after the sub-make.
Date User Action Args
2014-11-19 22:55:34gregory.p.smithsetrecipients: + gregory.p.smith
2014-11-19 22:55:34gregory.p.smithsetmessageid: <>
2014-11-19 22:55:34gregory.p.smithlinkissue22904 messages
2014-11-19 22:55:33gregory.p.smithcreate