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

The dreaded "make: *** [Makefile:68: configcheck] Error 1 in compile em_real

brandt

New member
Greetings,

I'm trying to get WRF to run in WSL on my Windows 11 PC. I was able to successful run "configure" (though just the basics; note that I used option 34 (dmpar) for GNU (gfortran/gcc)) but I was unsuccessful running "compile em_real". Here's the output after the Copyright/disclaimer:

setting parallel make -j 2

==============================================================================================

The following indicate the compilers selected to build the WRF system

Serial Fortran compiler (mostly for tool generation):
which SFC
/usr/bin/gfortran

Serial C compiler (mostly for tool generation):
which SCC
/usr/bin/gcc

Fortran compiler for the model source code:
which FC
Will use 'time' to report timing information

C compiler for the model source code:
which CC
make: *** [Makefile:68: configcheck] Error 1


When I type "which cc" from the command line, I get "/usr/bin/cc" (which is actually a link to /usr/bin/gcc which is actually a link to /usr/bin/x86-64-linux-gnu-gcc-11: somehow the "Serial C compiler" finds this). I put "export CC=/usr/bin/x86_64-linux-gnu-gcc-11" into .bashrc as well (and sourced it).

Any tips?

Thanks,
Brandt
 
Hi Brandt,
It's likely that, because you're using this Linux system on your Windows system, there are some underlying "machine-wide" environment settings that are overriding what you have set in WSL. Unfortunately we don't have a lot of experience with Windows systems in our group at NCAR, but if you have a systems administrator at your institution, I'd recommend reaching out to them for help. Otherwise, it's possible someone else on the forum will be able to provide some suggestions.
 
Thanks for your comments. I am indeed using the WSL Linux system on my personal desktop Windows 11 computer (so no systems administrator). All my WRF runs were going to be case studies versus real-time operational, so I wasn't looking for any rapid runs, but it's sad to hear that machine-wide environment settings might negatively affect this. If I do find success with installing the WRF-ARW on WSL, then I'll report what I did here, but of course I'll gladly accept any suggestions that others with success might have.

Thanks,
Brandt
 
@brandt Do you have MPI in your path? I can roughly recreate the issue, however I also have error output vs no error output in yours:
Code:
============================================================================================== 
 
setting parallel make -j 2
 
============================================================================================== 
 
The following indicate the compilers selected to build the WRF system
 
Serial Fortran compiler (mostly for tool generation):
which SFC
/usr/bin/gfortran
 
Serial C compiler (mostly for tool generation):
which SCC
/usr/bin/gcc
 
Fortran compiler for the model source code:
which FC
/usr/bin/which: no mpif90 in (/home/aislas/dependencies/bin:/home/aislas/bin:~/.local/bin/:~/tools/built/bin:~/bin/VSCode-linux-x64:~/bin/go/bin:/usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin)
Will use 'time' to report timing information
 
C compiler for the model source code:
which CC
/usr/bin/which: no mpicc in (/home/aislas/dependencies/bin:/home/aislas/bin:~/.local/bin/:~/tools/built/bin:~/bin/VSCode-linux-x64:~/bin/go/bin:/usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin)
make: *** [Makefile:68: configcheck] Error 1
 
Top