WRF-Chem Compilation Error

Post Reply
destryintans
Posts: 4
Joined: Wed May 13, 2020 2:10 pm

WRF-Chem Compilation Error

Post by destryintans » Fri May 07, 2021 2:32 pm

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.29 MiB) Downloaded 7 times

jordanschnell
Posts: 141
Joined: Thu Feb 27, 2020 10:58 pm

Re: WRF-Chem Compilation Error

Post by jordanschnell » Fri May 07, 2021 9:16 pm

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

destryintans
Posts: 4
Joined: Wed May 13, 2020 2:10 pm

Re: WRF-Chem Compilation Error

Post by destryintans » Sat May 22, 2021 3:21 pm

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.05 MiB) Downloaded 4 times

jordanschnell
Posts: 141
Joined: Thu Feb 27, 2020 10:58 pm

Re: WRF-Chem Compilation Error

Post by jordanschnell » Mon May 24, 2021 6:41 pm

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

destryintans
Posts: 4
Joined: Wed May 13, 2020 2:10 pm

Re: WRF-Chem Compilation Error

Post by destryintans » Mon May 31, 2021 5:02 am

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.24 MiB) Downloaded 3 times

jordanschnell
Posts: 141
Joined: Thu Feb 27, 2020 10:58 pm

Re: WRF-Chem Compilation Error

Post by jordanschnell » Tue Jun 01, 2021 3:38 pm

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

destryintans
Posts: 4
Joined: Wed May 13, 2020 2:10 pm

Re: WRF-Chem Compilation Error

Post by destryintans » Wed Jun 02, 2021 8:02 am

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.22 MiB) Downloaded 2 times

Post Reply

Return to “General”