Compile WRF on Virtual box + MACOS

All topics related to compiling WRF, including environment set-up, and library installation
Post Reply
agroodt
Posts: 1
Joined: Fri Apr 08, 2022 1:19 pm

Compile WRF on Virtual box + MACOS

Post by agroodt » Fri Apr 08, 2022 1:49 pm

Hello,

I have an issue which doesn't seem to be discussed yet.
Basically, I am trying to compile WRF on Virtual box installed on MacOS but it does not want to build it. I have read on another blog that there are some issues running WRF on virtual box on MacOS but I am wondering if someone has a solution before I do everything again on a windows computer...
This is my setup.
- I am using tcsh
- I followed the compilation page https://www2.mmm.ucar.edu/wrf/OnLineTut ... torial.php
- All the TESTS where run successfully
- All the .tar file where installed successfully
- I checked again using: which gcc --version and which gfortran --version
- .tar file where added to path
- the complete path before ./configure is:
setenv DIR /home/usr/Build_WRF/LIBRARIES
setenv CC gcc
setenv CXX g++
setenv FC gfortran
setenv FCFLAGS -m64
setenv F77 gfortran
setenv FFLAGS -m64
setenv JASPERLIB $DIR/grib2/lib
setenv JASPERINC $DIR/grib2/include
setenv LDFLAGS -L$DIR/grib2/lib
setenv CPPFLAGS -I$DIR/grib2/include
setenv PATH $DIR/mpich/bin:$PATH
setenv PATH $DIR/netcdf/bin:$PATH
setenv NETCDF $DIR/netcdf
setenv WRF_EM_CORE 1

- I configured to nb 32 and then 1, all runs smoothly
- UNTIL HERE where I want to ./compile em_real > & log.compile
- It runs for 5 minutes and then nothing, so I go in the log.compile file and get fatal errors for gfortran
- Tried to.
./clean -a
./configure
./compile em_real >& log.compile

- It's now the 5th if not more time I try and still nada.
I've attached the log.compile for someone to enlight me on this :-)
Many thanks
Attachments
log.compile
(984.58 KiB) Downloaded 7 times

mgduda
Posts: 681
Joined: Mon Feb 26, 2018 7:35 pm

Re: Compile WRF on Virtual box + MACOS

Post by mgduda » Mon Apr 11, 2022 7:40 pm

I've moved this topic from the MPAS-Atmosphere section of the forum to the WRF section of the forum, since the question concerns WRF.
NCAR/MMM

kwerner
Posts: 2839
Joined: Wed Feb 14, 2018 9:21 pm

Re: Compile WRF on Virtual box + MACOS

Post by kwerner » Mon Apr 11, 2022 8:38 pm

Hi,
We've seen this same error when trying to compile on a cloud-computing platform when the instance wasn't configured to be large enough, or with enough memory. I have a feeling you're dealing with a similar issue in your virtual box space. Are you able to make it any larger to test this out?
NCAR/MMM

kwerner
Posts: 2839
Joined: Wed Feb 14, 2018 9:21 pm

Re: Compile WRF on Virtual box + MACOS

Post by kwerner » Wed Apr 13, 2022 8:50 pm

I wanted to reach out again to suggest another option before trying to access a larger size. Take a look at this modification to our code that will be released in a few weeks. The issue was specific to AWS builds of the model, but also related to other systems, and may include yours. However, the issue seemed to have been specifically related to using an Intel compiler, and since you're using GNU, this may not be the same issue. Let me know whether that modification helps you, and if not, then see my previous post. Thanks!
NCAR/MMM

Post Reply

Return to “WRF Compiling/Installation”