flux-core
flux-core copied to clipboard
__gcov_flush() undefined on ubuntu 22.04 / gcc 11
Problem: build fails with unknown __gcov_flush() symbol after configure with --enable-code-coverage on ubuntu 22.04 (gcc 11) system.
I'm not sure if __gcov_dump() is a drop-in replacement. It seems to be recommended in a comment on this stack overflow thread. Testing that now.
Well FWIW I did verify that calling __gcov_dump() in broker_panic_cb() (which calls _exit()) does result in coverage of that function in the report.
Here is the gcc changeset: https://patchwork.ozlabs.org/project/gcc/list/?series=168375
which makes it seem like calling __gcov_dump() is no longer needed at fork/exec.
I'm out of my depth here though so I'll park this for now. Obviously this is not too urgent.
I think this was "fixed" in a9bf41730a9ae147a4616b01a0a005740a6d29af. Closing. Reopen if there's still an issue.