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-Chem Compilation Error

This post was from a previous version of the WRF&MPAS-A Support Forum. New replies have been disabled and if you have follow up questions related to this post, then please start a new thread from the forum home page.

destryintans

New member
Hi,
I'm compiling WRF-Chem 4.1.2 on Ubuntu 18.04. with this settings in .bashrc file
export PATH=$DIR/netcdf/bin:$PATH
export NETCDF=$DIR/netcdf
export PATH=$DIR/mpich/bin:$PATH
export LDFLAGS=-L$DIR/grib2/lib
export CPPFLAGS=-I$DIR/grib2/include
export JASPERLIB=$DIR/grib2/lib
export JASPERINC=$DIR/grib2/include
export WRF_DIR=/home/destry/WRF/WRFV4
export HDF5=$DIR/hdf5-1.10.5
export LD_LIBRARY_PATH=$DIR/hdf5-1.10.5/lib
export WRF_EM_CORE=1
export WRF_CHEM=1
export WRFIO_NCD_LARGE_FILE_SUPPORT=1

But the compiling can't be finished and .exe files didn't appear.
Here's the compile.log.

Any suggestion?
Thank you.
 

Attachments

  • compile.log
    1.3 MB · Views: 61
Hi,

These lines make me think it is a memory error:

Killed
Makefile:183: recipe for target 'module_state_description.F' failed

Can you increase the memory available to the compile?

Jordan
 
Hello,
Thank you so much for your response.

I have tried it again using a different device but still can't display the .exe files.

Here is the compile.log file

What did i miss?
 

Attachments

  • compile.log
    1 MB · Views: 0
Hello,
Thank you so much for your response.

I have tried it again using a different device with a higher capacity but still can't display the .exe files.

Here is the compile.log file, there seems to be some different error from the previous one.

What did i miss?
 

Attachments

  • compile.log
    1.1 MB · Views: 46
Hi,

It looks like the program can't find your zlib installation:

/usr/bin/ld: cannot find -lz
collect2: error: ld returned 1 exit status
Command exited with non-zero status 1

Can you confirm zlib is installed and on your PATH?

Jordan


zlib (a compression library used by the PNG library)
http://www.zlib.net/
Go to "The current release is publicly available here" section and download.
> ./configure > make
> make install
 
Hi Mr. Jordan, thanks for the response.

I'm sure zlib has been installed successfully on my device.

I also tried to install another version of wrf chem (v4.0) and provided more free memory than before. However, the .exe files still don't appear.

I don't know what's wrong. Is it in my laptop capacity?
 

Attachments

  • compile.log
    1.2 MB · Views: 46
Hi,

Yes the "Killed" message in your log indicates a memory error unfortunately. If you are not going to be using CLM, you can delete this from your configure file and try again - "-DWRF_USE_CLM"

Jordan
 
Hi, Mr. Jordan.

I have tried your suggestion to remove "-DWRF_USE_CLM" in the configuration file, but the .exe files still don't appear.
Any other suggestions?

By the way, thanks for the quick response
 

Attachments

  • compile.log
    1.2 MB · Views: 42
Top