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
This failure happens also on the latest 64bit version of Cygwin.
However, the solution is not adding -lgcov to the libraries.
Try to configure with this command:
and you will see that the build process will work this time.
This issue happens because Cygwin and MinGW use PE executables and undefined symbols are not allowed.
This flag need to be used somewhere, but at the moment I have no idea what's the best place for adding it.
Activity
carlo-bramini commented on May 23, 2026
This failure happens also on the latest 64bit version of Cygwin.
However, the solution is not adding -lgcov to the libraries.
Try to configure with this command:
and you will see that the build process will work this time.
This issue happens because Cygwin and MinGW use PE executables and undefined symbols are not allowed.
This flag need to be used somewhere, but at the moment I have no idea what's the best place for adding it.