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 fails to detect llvm-profdata #80183

Closed
mjpieters mannequin opened this issue Feb 15, 2019 · 5 comments
Closed

configure --enable-optimizations with clang fails to detect llvm-profdata #80183

mjpieters mannequin opened this issue Feb 15, 2019 · 5 comments
Labels
3.7 (EOL) end of life 3.8 only security fixes build The build process and cross-build

Comments

@mjpieters
Copy link
Mannequin

mjpieters mannequin commented Feb 15, 2019

BPO 36002
Nosy @mjpieters, @benjaminp, @miss-islington, @weibullguy
PRs
  • bpo-36002: fail to find -llvm-profdata #14998
  • [3.8] closes bpo-36002: Use AC_PATH_TOOL to find llvm-profdata and llvm-ar. (GH-14998) #16104
  • [3.7] closes bpo-36002: Use AC_PATH_TOOL to find llvm-profdata and llvm-ar. (GH-14998) #16105
  • 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 = <Date 2019-09-13.13:38:10.690>
    created_at = <Date 2019-02-15.13:29:15.293>
    labels = ['3.8', 'build', '3.7']
    title = 'configure --enable-optimizations with clang fails to detect llvm-profdata'
    updated_at = <Date 2019-09-13.13:57:49.167>
    user = 'https://github.com/mjpieters'

    bugs.python.org fields:

    activity = <Date 2019-09-13.13:57:49.167>
    actor = 'miss-islington'
    assignee = 'none'
    closed = True
    closed_date = <Date 2019-09-13.13:38:10.690>
    closer = 'benjamin.peterson'
    components = ['Build']
    creation = <Date 2019-02-15.13:29:15.293>
    creator = 'mjpieters'
    dependencies = []
    files = []
    hgrepos = []
    issue_num = 36002
    keywords = ['patch']
    message_count = 5.0
    messages = ['335610', '348665', '352327', '352334', '352335']
    nosy_count = 4.0
    nosy_names = ['mjpieters', 'benjamin.peterson', 'miss-islington', 'weibullguy']
    pr_nums = ['14998', '16104', '16105']
    priority = 'normal'
    resolution = 'fixed'
    stage = 'resolved'
    status = 'closed'
    superseder = None
    type = None
    url = 'https://bugs.python.org/issue36002'
    versions = ['Python 3.6', 'Python 3.7', 'Python 3.8']

    @mjpieters
    Copy link
    Mannequin Author

    mjpieters mannequin commented Feb 15, 2019

    This is probably a automake bug.

    When running CC=clang CXX=clang++ ./configure --enable-optimizations, configure tests for a non-existing -llvm-profdata binary:

    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.

    The generated configure script looks for "$target_alias-llvm-profdata", and $target_alias is an empty string.

    This problem is not visible on Macs, where additional checks for "/usr/bin/xcrun -find llvm-profdata" locate the binary.

    The work-around would be to specify a target when configuring.

    @mjpieters mjpieters mannequin added 3.7 (EOL) end of life 3.8 only security fixes build The build process and cross-build labels Feb 15, 2019
    @weibullguy
    Copy link
    Mannequin

    weibullguy mannequin commented Jul 29, 2019

    ../configure LLVM_PROFDATA=/<PATH TO>/llvm-profdata --enable-optimizations is also work-around.

    @benjaminp
    Copy link
    Contributor

    New changeset 0519d49 by Benjamin Peterson (Doyle Rowland) in branch 'master':
    closes bpo-36002: Use AC_PATH_TOOL to find llvm-profdata and llvm-ar. (GH-14998)
    0519d49

    @miss-islington
    Copy link
    Contributor

    New changeset d112ea6 by Miss Islington (bot) in branch '3.7':
    closes bpo-36002: Use AC_PATH_TOOL to find llvm-profdata and llvm-ar. (GH-14998)
    d112ea6

    @miss-islington
    Copy link
    Contributor

    New changeset bd2e7cc by Miss Islington (bot) in branch '3.8':
    closes bpo-36002: Use AC_PATH_TOOL to find llvm-profdata and llvm-ar. (GH-14998)
    bd2e7cc

    @ezio-melotti ezio-melotti transferred this issue from another repository Apr 10, 2022
    Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
    Labels
    3.7 (EOL) end of life 3.8 only security fixes build The build process and cross-build
    Projects
    None yet
    Development

    No branches or pull requests

    2 participants