X Tutup
The Wayback Machine - https://web.archive.org/web/20240502105534/https://github.com/python/cpython/issues/91296
Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

configure --enable-optimizations with clang *12* fails to detect llvm-profdata #91296

Open
OfekShilon mannequin opened this issue Mar 28, 2022 · 2 comments
Open

configure --enable-optimizations with clang *12* fails to detect llvm-profdata #91296

OfekShilon mannequin opened this issue Mar 28, 2022 · 2 comments
Labels
3.11 only security fixes build The build process and cross-build

Comments

@OfekShilon
Copy link
Mannequin

OfekShilon mannequin commented Mar 28, 2022

BPO 47140
Nosy @OfekShilon

Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.

Show more details

GitHub fields:

assignee = None
closed_at = None
created_at = <Date 2022-03-28.10:46:47.543>
labels = ['build', '3.11']
title = 'configure --enable-optimizations with clang *12* fails to detect llvm-profdata'
updated_at = <Date 2022-03-28.10:46:47.543>
user = 'https://github.com/OfekShilon'

bugs.python.org fields:

activity = <Date 2022-03-28.10:46:47.543>
actor = 'ofekshilon'
assignee = 'none'
closed = False
closed_date = None
closer = None
components = ['Build']
creation = <Date 2022-03-28.10:46:47.543>
creator = 'ofekshilon'
dependencies = []
files = []
hgrepos = []
issue_num = 47140
keywords = []
message_count = 1.0
messages = ['416156']
nosy_count = 1.0
nosy_names = ['ofekshilon']
pr_nums = []
priority = 'normal'
resolution = None
stage = None
status = 'open'
superseder = None
type = None
url = 'https://bugs.python.org/issue47140'
versions = ['Python 3.11']

@OfekShilon
Copy link
Mannequin Author

OfekShilon mannequin commented Mar 28, 2022

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.

@OfekShilon OfekShilon mannequin added 3.11 only security fixes build The build process and cross-build labels Mar 28, 2022
@ezio-melotti ezio-melotti transferred this issue from another repository Apr 10, 2022
@acepaceNS
Copy link

This shows with with llvm-ar as well, fixed with LLVM_AR.
It seems it searches only for the default binary names.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3.11 only security fixes build The build process and cross-build
Projects
None yet
Development

No branches or pull requests

1 participant
X Tutup