Skip to content

Failed to build cpython in macOS because it was expecting "python.exe" #131563

@wyatt-wong

Description

@wyatt-wong

I clone the GitHub repository of cpython with git clone https://github.com/python/cpython/ in macOS Sequoia 15.3.2, then I executed ./configure --enable-optimizations --with-lto to create a Makefile. After that, I run make but I got the following error which showed that python.exe was expected in macOS environment ?

I have included config.log and Makefile for reference.

config.zip

Makefile.zip

Bug report

Bug description:

Rebuilding with profile guided optimizations:
rm -f profile-clean-stamp
make build_all CFLAGS_NODIST=" -fprofile-instr-use="/Users/wyattwong/GitHub/cpython/code.profclangd"" LDFLAGS_NODIST=""
make[1]: Entering directory '/Users/wyattwong/GitHub/cpython'
Checked 112 modules (34 built-in, 78 shared, 0 n/a on macosx-15.3-x86_64, 0 disabled, 0 missing, 0 failed on import)
./python.exe -E ./Tools/build/generate-build-details.py `cat pybuilddir.txt`/build-details.json
make[1]: Leaving directory '/Users/wyattwong/GitHub/cpython'

CPython versions tested on:

CPython main branch

Operating systems tested on:

macOS

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions