Thank you for the response. Shouldn’t pamac or the build scripts take care of these issues. I am not that proficient to debug AUR scripts.
Anyhow, I noticed that mako library is marked as orphaned, I just removed the orphaned libraries, and the build the rest. Mako lib is removed and I could pass that step.
Again thank you for the response.