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: configure --enable-optimizations with clang *12* fails to detect llvm-profdata
Type: Stage:
Components: Build Versions: Python 3.11
process
Status: open Resolution:
Dependencies: Superseder:
Assigned To: Nosy List: ofekshilon
Priority: normal Keywords:

Created on 2022-03-28 10:46 by ofekshilon, last changed 2022-04-11 14:59 by admin.

Messages (1)
msg416156 - (view) Author: Ofek Shilon (ofekshilon) Date: 2022-03-28 10:46
Working on 3/228/2022 github trunk in Ubuntu20. If I use the shipped clang10 :
$ ./configure --enable-optimizations
succeeds. If however I -
$ export CC=clang-12
`configure` starts to fail with symptoms identical to https://bugs.python.org/issue36002:

checking for --enable-optimizations... yes
checking for --with-lto... no
checking for -llvm-profdata... no
configure: error: llvm-profdata is required for a --enable-optimizations build but could not be found.

Manually setting LLVM_PROFDATA is still a valid workaround.
History
Date User Action Args
2022-04-11 14:59:57adminsetgithub: 91296
2022-03-28 10:46:47ofekshiloncreate