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

"Cannot perform PGO build because llvm-profdata was not found in PATH" error upon make #72170

Closed
gpshead opened this issue Sep 6, 2016 · 4 comments
Assignees

Comments

@gpshead
Copy link
Member

gpshead commented Sep 6, 2016

BPO 27983
Nosy @brettcannon, @gpshead
Dependencies
  • bpo-26359: CPython build options for out-of-the box performance
  • 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 = 'https://github.com/gpshead'
    closed_at = <Date 2016-09-08.07:10:26.145>
    created_at = <Date 2016-09-06.23:01:40.382>
    labels = []
    title = '"Cannot perform PGO build because llvm-profdata was not found in PATH" error upon make'
    updated_at = <Date 2016-09-08.07:10:26.144>
    user = 'https://github.com/gpshead'

    bugs.python.org fields:

    activity = <Date 2016-09-08.07:10:26.144>
    actor = 'gregory.p.smith'
    assignee = 'gregory.p.smith'
    closed = True
    closed_date = <Date 2016-09-08.07:10:26.145>
    closer = 'gregory.p.smith'
    components = []
    creation = <Date 2016-09-06.23:01:40.382>
    creator = 'gregory.p.smith'
    dependencies = ['26359']
    files = []
    hgrepos = []
    issue_num = 27983
    keywords = []
    message_count = 4.0
    messages = ['274657', '274660', '274908', '274980']
    nosy_count = 4.0
    nosy_names = ['brett.cannon', 'gregory.p.smith', 'python-dev', 'alecsandru.patrascu']
    pr_nums = []
    priority = 'normal'
    resolution = 'fixed'
    stage = 'resolved'
    status = 'closed'
    superseder = None
    type = None
    url = 'https://bugs.python.org/issue27983'
    versions = ['Python 2.7']

    @gpshead
    Copy link
    Member Author

    gpshead commented Sep 6, 2016

    patch in bpo-26307 (which should be in soon) and do the following:

    $ CC=clang ../3.6/configure --with-optimizations
    $ make profile-opt
    Error: Cannot perform PGO build because llvm-profdata was not found in PATH
    Please add it to PATH and run ./configure again
    Makefile:481: recipe for target 'profile-opt' failed

    We can make this experience better. It needs to

    (1) Become a configure time error, and
    (2) Do a better job of finding llvm-profdata (which exists in ${PATH} as "llvm-profdata-3.8" on Ubuntu 16.04).

    @gpshead
    Copy link
    Member Author

    gpshead commented Sep 6, 2016

    i meant bpo-26359 above, not 26307.

    @python-dev
    Copy link
    Mannequin

    python-dev mannequin commented Sep 7, 2016

    New changeset 279450d88fb0 by Gregory P. Smith in branch '3.5':
    Fixes issue# 27983: Cause lack of llvm-profdata tool when using clang -
    https://hg.python.org/cpython/rev/279450d88fb0

    New changeset 9f2467e13c98 by Gregory P. Smith in branch 'default':
    Fixes Issue bpo-27983: Cause lack of llvm-profdata tool when using clang as
    https://hg.python.org/cpython/rev/9f2467e13c98

    @gpshead gpshead self-assigned this Sep 7, 2016
    @python-dev
    Copy link
    Mannequin

    python-dev mannequin commented Sep 8, 2016

    New changeset 3f04287e7bea by Gregory P. Smith in branch '2.7':
    Fixes issue# 27983: Cause lack of llvm-profdata tool when using clang -
    https://hg.python.org/cpython/rev/3f04287e7bea

    @gpshead gpshead closed this as completed Sep 8, 2016
    @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
    None yet
    Projects
    None yet
    Development

    No branches or pull requests

    1 participant