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.

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 <1416437734.43.0.575909256617.issue22904@psf.upfronthosting.co.za>
In-reply-to
Content
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/test_sysconfig.py", line 131, in test_sysconfig_module
    sysconfig.get_config_var('CFLAGS'))
AssertionError: '-Wno[38 chars] -Wall -Wstrict-prototypes  -fprofile-use -fprofile-correction' != '-Wno[38 chars] -Wall -Wstrict-prototypes'

This can be traced to the built _sysconfigdata.py 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 _sysconfigdata.py or explicitly generating a good _sysconfigdata.py 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 _sysconfigdata.py after the sub-make.
History
Date User Action Args
2014-11-19 22:55:34gregory.p.smithsetrecipients: + gregory.p.smith
2014-11-19 22:55:34gregory.p.smithsetmessageid: <1416437734.43.0.575909256617.issue22904@psf.upfronthosting.co.za>
2014-11-19 22:55:34gregory.p.smithlinkissue22904 messages
2014-11-19 22:55:33gregory.p.smithcreate