Trouble installing Dynare 4.6.4 in macOS

Having trouble installing dynare in MacOS system. Tried re-installing command line tools and xode as suggested in other posts, but not success. Here is the install.log file:

install.log (29.2 KB)

Any help is appreciated.
Thanks!

Why is the log file about 4.6.0 while the title says 4.6.4?

Sorry, I was trying multiple installs and ended up uploading the wrong log file. I have attached the correct one.
install.log (254.3 KB)

Are you using an M1 processor. Also see Installation failure with Dynare 4.6.4 - #15 by wmutschl

Yes, I am using M1. Will try the link.
Thanks