When building with PGO in Cygwin, the gcov profiling library is missing
Open
Nobody has claimed this yet.
build
OS-unsupported
type-bug
- Dominant language
- Python
- Stars
- 77.2k
- Forks
- 35.9k
- PR merge metrics
- PR metrics pending
Description
Bug report
Bug description:
When I run ./configure --enable-optimizations (for Profile Guided Optimization) with my gcc of Cygwin (old, win7 32-bit), I'm getting errors due to unspecified library gcov
The instruction export LIBS="-lgcov" before this command solves the problem
I think this lib should be enabled by default with PGO building
My CPython version: 3.14.4
CPython versions tested on:
3.14
Operating systems tested on:
Windows
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing ./configure --enable-optimizations on the reported Cygwin setup and inspect the PGO build configuration and linker flags around gcov. The work is done when the PGO build links successfully without manually exporting LIBS="-lgcov".
Written by the indexing model from the issue text.
Assessment
- Tech stack
- c, python
- Domain
- build-system, performance
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 48/100