gcc-mingw-w64 no symbols in libgcov.a

Bug #1883933 reported by Jan Wielemaker
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
gcc-mingw-w64 (Ubuntu)
Fix Released
Undecided
Stephen Kitt

Bug Description

In Ubuntu 20.04, libgcov.a for MinGW is almost empty:

```
nm -gC /usr/lib/gcc/x86_64-w64-mingw32/9.3-win32/libgcov.a | grep __gcov_one_value_profiler
nm: _gcov_merge_ior.o: no symbols
nm: _gcov_merge_time_profile.o: no symbols
nm: _gcov_merge_icall_topn.o: no symbols
nm: _gcov_interval_profiler.o: no symbols
nm: _gcov_interval_profiler_atomic.o: no symbols
```

This breaks profile guided optimization. These symbols are present in Ubuntu 18.04 (MinGW-gcc 7.3).

Stephen Kitt (steve-sk2)
Changed in gcc-mingw-w64 (Ubuntu):
assignee: nobody → Stephen Kitt (steve-sk2)
status: New → Confirmed
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package gcc-mingw-w64 - 24.2

---------------
gcc-mingw-w64 (24.2) unstable; urgency=medium

  * Fix gcov handling: we need to tell GCC that we have headers, without
    telling it where, and then we need to correct its default assumption
    about where they are. Closes: #989862. LP: #1883933, #1920988.

 -- Stephen Kitt <email address hidden> Sat, 12 Jun 2021 18:54:10 +0200

Changed in gcc-mingw-w64 (Ubuntu):
status: Confirmed → Fix Released
Revision history for this message
Jan Wielemaker (j-wielemaker) wrote :

Thanks!

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.