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: Python 3.9 testing fails when building with clang and optimizations are enabled
Type: Stage: resolved
Components: Build Versions: Python 3.9
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: Nosy List: miss-islington, serge-sans-paille, vstinner
Priority: normal Keywords: patch

Created on 2020-10-30 14:45 by serge-sans-paille, last changed 2022-04-11 14:59 by admin. This issue is now closed.

Pull Requests
URL Status Linked Edit
PR 23037 closed serge-sans-paille, 2020-10-30 14:46
PR 23141 merged serge-sans-paille, 2020-11-04 07:24
PR 23155 merged miss-islington, 2020-11-04 23:14
Messages (3)
msg379972 - (view) Author: (serge-sans-paille) * Date: 2020-10-30 14:45
How to reproduce:

```
git clone https://github.com/python/cpython && cd cpython
mkdir -p _build/optimized
cd _build/optimized
../../configure --enable-optimizations CC=clang
make
cd ..
./optimized/python -m test.regrtest -wW --slowest -j0 --timeout=1800 2>&1 | grep "error: Could not read profile code.profclangd"
```

This bug no longer happens on master branch because it's related to test_peg_generator.
msg380131 - (view) Author: STINNER Victor (vstinner) * (Python committer) Date: 2020-11-01 12:45
> This bug no longer happens on master branch because it's related to test_peg_generator.

test_peg_generator exists in 3.9 and master branches.

configure.ac doesn't seem to be different in 3.9 and master branches for PGO_PROF_USE_FLAG and LLVM_PROF_MERGER variables.

I don't understand why this change is specific to the 3.9 branch.
msg380448 - (view) Author: STINNER Victor (vstinner) * (Python committer) Date: 2020-11-06 14:05
commit 100964e0310d3a2040d0db976f7984d0507b2dbd
Author: serge-sans-paille <serge.guelton@telecom-bretagne.eu>
Date:   Wed Nov 4 23:01:08 2020 +0000

    Disable peg generator tests when building with PGO (GH-23141)
    
    Otherwise, when running the testsuite, test_peg_generator tries to compile C
    code using the optimized flags and fails because it cannot find the profile
    data.


commit 3997a4e6bca18c7f220d6212ef1e86d8aa9c7aee (upstream/3.9, 3.9)
Author: Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Date:   Wed Nov 4 15:22:13 2020 -0800

    Disable peg generator tests when building with PGO (GH-23141)
    
    
    Otherwise, when running the testsuite, test_peg_generator tries to compile C
    code using the optimized flags and fails because it cannot find the profile
    data.
    (cherry picked from commit 100964e0310d3a2040d0db976f7984d0507b2dbd)
    
    Co-authored-by: serge-sans-paille <serge.guelton@telecom-bretagne.eu>
History
Date User Action Args
2022-04-11 14:59:37adminsetgithub: 86373
2020-11-06 14:05:16vstinnersetstatus: open -> closed
resolution: fixed
messages: + msg380448

stage: patch review -> resolved
2020-11-04 23:14:48miss-islingtonsetnosy: + miss-islington
pull_requests: + pull_request22070
2020-11-04 07:24:13serge-sans-paillesetpull_requests: + pull_request22054
2020-11-01 12:45:17vstinnersetnosy: + vstinner
messages: + msg380131
2020-10-30 14:46:11serge-sans-paillesetkeywords: + patch
stage: patch review
pull_requests: + pull_request21955
2020-10-30 14:45:04serge-sans-paillecreate