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

Error in compilation WRF-chem 4.4.2

Naser

Member
Hello Every one
I want to compile WRF 4.4.2 on my Linux. it shows the below errors (you can find them in the attachments).
I have to mention that I can compile WRF3.9.1. Configure.wrf has been changed by some items. you can find it here:

1) -L$(WRF_SRC_ROOT_DIR)/external/io_netcdf -lwrfio_nf -L/opt/kma/kma_lib/apps/netcdfpack/4.7.3/INTEL/210/lib -lnetcdff -lnetcdf -L/opt/kma/kma_lib/apps/hdf5/1.10.3/INTEL/210/lib -lhdf5hl_fortran -lhdf5_hl -lhdf5_fortran -lhdf5 -lm -lz ----->
-L$(WRF_SRC_ROOT_DIR)/external/io_netcdf -lwrfio_nf -L/opt/kma/kma_lib/apps/netcdfpack/4.7.3/INTEL/210/lib -lnetcdff -lnetcdf
2) CFLAGS_LOCAL = -w -O3 -ip -DRPC_TYPES=1 --> -w -O1 -ip -DRPC_TYPES=1
3) FCOPTIM = -O3 -> O1
4) FC = time $(DM_FC) --> $(DM_FC)
5) -DHDF5 \ ----> \
6) HDF5PATH = /opt/kma/kma_lib/apps/hdf5/1.10.3/INTEL/210 -> HDF5PATH =

But I can not compile the upper version.
I don't know how I can fix these problems.

Please, if you can, guide me to fix this problem.

I am looking forward to yours answers.

Yours,
Naser
 

Attachments

  • photo_2023-04-04_13-11-35.jpg
    photo_2023-04-04_13-11-35.jpg
    106.6 KB · Views: 9
  • photo_2023-04-04_13-11-58.jpg
    photo_2023-04-04_13-11-58.jpg
    80.5 KB · Views: 9
  • photo_2023-04-04_13-12-24.jpg
    photo_2023-04-04_13-12-24.jpg
    38.5 KB · Views: 7
  • photo_2023-04-04_13-12-56.jpg
    photo_2023-04-04_13-12-56.jpg
    205.2 KB · Views: 6
  • photo_2023-04-04_13-13-30.jpg
    photo_2023-04-04_13-13-30.jpg
    190.6 KB · Views: 6
  • photo_2023-04-04_13-13-48.jpg
    photo_2023-04-04_13-13-48.jpg
    77.7 KB · Views: 7
  • photo_2023-04-04_13-14-03.jpg
    photo_2023-04-04_13-14-03.jpg
    113.4 KB · Views: 7
  • photo_2023-04-04_13-14-21.jpg
    photo_2023-04-04_13-14-21.jpg
    69.2 KB · Views: 9
  • configure.wrf.txt
    23.9 KB · Views: 1
  • log.compile.txt
    1.2 MB · Views: 3
From the errors you provided, it seems that you are encountering linker errors while trying to compile WRF 4.4.2. Here are some general steps that you can follow to troubleshoot the errors:

Check that you have installed all the required dependencies for WRF 4.4.2. The dependencies include netCDF, HDF5, and some other libraries. Make sure that you have installed them properly and they are accessible by the compiler.

Check that the environment variables and paths for the dependencies are correctly set in the configure.wrf file. You should make sure that the paths are set to the correct installation directories of the dependencies.

Double-check that you have modified configure.wrf correctly. The modifications that you have mentioned seem to be related to linking and optimization options. Make sure that you have set them correctly, and that there are no typos or syntax errors in the configure.wrf file.

Try to compile with fewer optimization flags. Sometimes, enabling too many optimization flags can cause errors. You can start by removing the -ip flag and see if it helps.

Check that you are using the correct compiler version. WRF 4.4.2 requires a specific version of the Intel compiler, and using a different version can cause errors. Make sure that you are using the correct compiler version.

Try to compile WRF with the debug flag (-d) to get more detailed error messages. You can add the -d flag to the configure.wrf file, then run the compile command again to see if it helps to identify the issue.

If you still cannot resolve the issue, try to seek help from the WRF community. You can post your issue on the WRF forum or mailing list and ask for help from other users.

Overall, compiling WRF can be a complex process, and there are many possible reasons why you might encounter errors. By following the steps above and seeking help from the WRF community, you should be able to resolve the issue and successfully compile WRF 4.4.2.
 
Top