Given a C program, call it temp.c, the following works on Linux and is supposed to work on mac os to show coverage information:
gcc -fprofile-arcs -ftest-coverage temp.c
However when I try it on my macbook pro, running mojave, gcov results in the following error
Unexpected version: *20B. Invalid .gcno File!
my gcc version is gcc version 10.2.0 (Homebrew GCC 10.2.0)
What has happened?