Scheduled Downtime
On Friday 21 April 2023 @ 5pm MT, this website will be down for maintenance and expected to return online the morning of 24 April 2023 at the latest

WRF Compilation Error Macbook Pro (Apple Silicon)

JeremyB

Member
Hello,

I'm trying to compile WRF on my m1 max macbook pro, however I'm running into an issue I've never seen before.
"xcode-select: Failed to locate 'm4', requesting installation of command line developer tools."
I've installed the m4 tools many times but it still shows up. I'm on mac os Sonoma 14.5 with the newest version of WRF. I have also attached my compile log file. I killed the job halfway through because I noticed there was an error. If anyone has any ideas or needs more information, please let me know.

Here are the library versions I used:
1719603190266.png
I also used gcc-13 to compile these.
Thanks,
JeremyB
 

Attachments

  • comp.log
    184.1 KB · Views: 5
Hi,
There have been a few users in this forum who have previously experienced issues compiling on Macs. I would recommend first searching to see if any of their solutions may be helpful. Try searching for the word "macbook" and several should pop up.

If you aren't able to find any solutions, can you try compiling again, but only use a single processor to compile (the default is to use 2)?

./clean -a
./configure
./compile em_real -j 1 compile.log

Assuming it will still fail, send the new compile log and the configure.wrf file. Thanks!
 
Hi,
There have been a few users in this forum who have previously experienced issues compiling on Macs. I would recommend first searching to see if any of their solutions may be helpful. Try searching for the word "macbook" and several should pop up.

If you aren't able to find any solutions, can you try compiling again, but only use a single processor to compile (the default is to use 2)?

./clean -a
./configure
./compile em_real -j 1 compile.log

Assuming it will still fail, send the new compile log and the configure.wrf file. Thanks!
Hello kwerner,

I tried it out, but I received the same error as before. When I type in "which m4", I still get a message saying they need to be installed despite me having just installed them. I have it on homebrew though (brew install m4) so I found that path and added it to PATH using:

export PATH=/opt/homebrew/Cellar/m4/1.4.19/bin:$PATH

This fixed the issue for me.

Thank you,
JeremyB
 
Last edited:
Great! I'm glad to hear you were able to find a solution. Thanks for posting it, as well. Hopefully this will help someone else in the future.
 
Top