Skip to content

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

Closed

Description

@gpshead
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']

    Activity

    1. gpshead commented on Sep 6, 2016

      @gpshead
      MemberAuthor

      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).

    2. gpshead commented on Sep 6, 2016

      @gpshead
      MemberAuthor

      i meant bpo-26359 above, not 26307.

    3. python-dev commented on Sep 7, 2016

      python-devmannequin
      Mannequin

      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

    4. self-assigned this
      on Sep 7, 2016
    5. python-dev commented on Sep 8, 2016

      python-devmannequin
      Mannequin

      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

    6. transferred this issue fromon Apr 10, 2022
    Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

    Metadata

    Metadata

    Assignees

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions