Skip to content

make install right after ./configure --enable-optimizations installs a non-PGO interpreter #162170

Closed

Description

@itamaro

Bug report

./configure --enable-optimizations
make install

installs an interpreter built without PGO.

altbininstall is the first prerequisite of commoninstall and only depends on $(BUILDPYTHON), so the binary is built and installed before a later prerequisite (libinstall: all) triggers the profile-opt rebuild. The optimized binary ends up in the build directory but not in the installation. The same applies to --enable-bolt.

Fix: make altbininstall depend on all (#95287).

CPython versions tested on:

CPython main branch, 3.15, 3.14

Operating systems tested on:

Linux

Linked PRs

Activity

  1. self-assigned this
    on Nov 17, 2026
  2. added
    type-bugAn unexpected behavior, bug, or error
    buildThe build process and cross-build
    on Nov 17, 2026
  3. added 6 commits that reference this issue on Nov 17, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

buildThe build process and cross-buildtype-bugAn unexpected behavior, bug, or error

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions