I downloaded mysql-server source code from the original github repo, and compiled it with the required flag for using gcov:
# build mysql with covera