MacOS uses Clang. With the latest update it is having issues installing WRF and WPS.
So we use Homebrew to install GNU so that WRF and WPS can be compiled on it.
Hi.
Thanks for the useful thread. I'm capable of compiling everything but WPS. This is the list I get:
--
Please select from among the following supported platforms.
1. Darwin Intel PGI compiler (serial)
2. Darwin Intel PGI compiler (serial_NO_GRIB2)
3. Darwin Intel PGI compiler (dmpar)
4. Darwin Intel PGI compiler (dmpar_NO_GRIB2)
5. Darwin Intel PGI compiler; optional DM -f90=pgf90 (serial)
6. Darwin Intel PGI compiler; optional DM -f90=pgf90 (serial_NO_GRIB2)
7. Darwin Intel PGI compiler; optional DM -f90=pgf90 (dmpar)
8. Darwin Intel PGI compiler; optional DM -f90=pgf90 (dmpar_NO_GRIB2)
9. Darwin Intel Intel compiler (serial)
10. Darwin Intel Intel compiler (serial_NO_GRIB2)
11. Darwin Intel Intel compiler (dmpar)
12. Darwin Intel Intel compiler (dmpar_NO_GRIB2)
13. Darwin Intel g95 compiler (serial)
14. Darwin Intel g95 compiler (serial_NO_GRIB2)
15. Darwin Intel g95 compiler (dmpar)
16. Darwin Intel g95 compiler (dmpar_NO_GRIB2)
17. Darwin Intel gfortran/gcc (serial)
18. Darwin Intel gfortran/gcc (serial_NO_GRIB2)
19. Darwin Intel gfortran/gcc (dmpar)
20. Darwin Intel gfortran/gcc (dmpar_NO_GRIB2)
21. Darwin Intel gfortran/clang (serial)
22. Darwin Intel gfortran/clang (serial_NO_GRIB2)
23. Darwin Intel gfortran/clang (dmpar)
24. Darwin Intel gfortran/clang (dmpar_NO_GRIB2)
25. Darwin PPC xlf (serial)
26. Darwin PPC xlf (serial_NO_GRIB2)
27. Darwin PPC xlf gcc3.3 SystemStubs (serial)
28. Darwin PPC xlf gcc3.3 SystemStubs (serial_NO_GRIB2)
29. Darwin PPC g95 (serial)
30. Darwin PPC g95 (serial_NO_GRIB2)
31. Darwin PPC g95 (dmpar)
32. Darwin PPC g95 (dmpar_NO_GRIB2)
--
I select option 17 (or 19), but when I try to compile I only get ungrib.exe produced. There seems to be a problem with this line in the configure.wps file:
CPP = /usr/bin/cpp -P -traditional. <======HERE
CPPFLAGS = -D_UNDERSCORE -DBYTESWAP -DIO_NETCDF -DBIT32 -DMACOS -DNO_SIGNAL
Shouldn't it use g++ (the cpp Homebrew one?). If I try to change /user/bin/cpp to g++, I get even more errors.
Any help will be appreciated.
Thanks