ccache-update-links adds new symlinks for installed compilers, but fails to remove obsolete links when compilers are deinstalled. The reason appears to be that "command -v" is finding the symlink to ccache when it looks for the actual compiler.
Can you test this patch please? https://people.freebsd.org/~bdrewery/patches/ccache-links.patch
The patch works for me. Thanks.
A commit references this bug: Author: bdrewery Date: Mon Mar 6 17:50:15 UTC 2017 New revision: 435560 URL: https://svnweb.freebsd.org/changeset/ports/435560 Log: ccache-update-links.sh: Fix removing links to missing compilers. PR: 217570 Reported by: rwmaillists@googlemail.com Tested by: rwmaillists@googlemail.com Changes: head/devel/ccache/Makefile head/devel/ccache/files/ccache-update-links.sh.in
Thanks for the report and testing!