flux-core icon indicating copy to clipboard operation
flux-core copied to clipboard

__gcov_flush() undefined on ubuntu 22.04 / gcc 11

Open garlick opened this issue 3 years ago • 1 comments

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.

garlick avatar Oct 13 '22 13:10 garlick

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.

garlick avatar Oct 13 '22 16:10 garlick

I think this was "fixed" in a9bf41730a9ae147a4616b01a0a005740a6d29af. Closing. Reopen if there's still an issue.

grondo avatar Mar 08 '23 02:03 grondo