New submission from Kal Sze <swordan...@gmail.com>:
OS: Ubuntu Desktop 18.04.1 x86-64 Python 3.7.0 When trying to build Python 3.7 from source, with the `--enable-shared --enable-optimizations --with-lto` configure options, python needs to run the test suite in order to generate PGO data. However, it turns out that it would find test modules from the wrong directory, if there is already another version of Python 3 installed system-wide (Ubuntu 18.04 comes with Python 3.6 pre-installed). I found out because Ubuntu's automatic crash reporter caught a core dump during `python -m tests.regrtest` and I could see that python found the tests.regrtest module at `/usr/lib/python3.6/test/regrtest.py`. In the end, the build is reported as "successful", I guess it's because the Makefile expects it the crash anyway. In any case, it still seems wrong because it means the wrong test suite is run. Ubuntu's crash report in raw format is attached, for anybody who knows how to read it (it's in plain text anyway) ---------- components: Build files: _usr_lib_python3.6_test_regrtest.py.1000.crash messages: 327726 nosy: Kal Sze2 priority: normal severity: normal status: open title: python finds test modules from the wrong directory during PGO build type: behavior versions: Python 3.7 Added file: https://bugs.python.org/file47868/_usr_lib_python3.6_test_regrtest.py.1000.crash _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue34986> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com