I noticed that the kanalyzer build requires the C++ header files which can be found in g++-10. In my case, installing g++-10 helped me pass that stage. Probably it was a missing requirement when TypeDive was upgraded to LLVM-15.
sudo apt install g++-10
Hope it helps somebody having the same problem.