Just trying to get gcov up and running, getting the following error:
$ gcov src/main.c -o build build/main.gcno:version \'404*\', prefer \'407*\' gcov: out of m
I just had the same problem and I had the correct versions installed. Solution in my case: remove all *.gcda files from any subdir you compile in. My make clean did not cover them.
*.gcda
make clean