# Makefile:17: em\_wrf Error 1 (ignored). Error to compile WRF-CMAQ with wrf.exe

**URL:** <https://forum.cmascenter.org/t/makefile-em-wrf-error-1-ignored-error-to-compile-wrf-cmaq-with-wrf-exe/4175>\
**Category:** WRF-CMAQ\
**Created:** [June 14, 2023, 5:55pm UTC](https://forum.cmascenter.org/t/makefile-em-wrf-error-1-ignored-error-to-compile-wrf-cmaq-with-wrf-exe/4175 "2023-06-14T17:55:49Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jano](https://avatars.discourse-cdn.com/v4/letter/j/9dc877/32.png) [@Jano](https://forum.cmascenter.org/u/Jano)\
**Post date:** [June 14, 2023, 5:55pm UTC](https://forum.cmascenter.org/t/makefile-em-wrf-error-1-ignored-error-to-compile-wrf-cmaq-with-wrf-exe/4175/1 "2023-06-14T17:55:49Z")

</div>

Hello CMAS Forum,  
I was trying to compile WRF-CMAQ (CMAQv5.4 with WRFv4.4) with the script `./bldit_cctm.csh intel |& tee bldit_cctm_twoway.log`. I followed suggestions in the [WRF-CMAQ tutorial](https://github.com/USEPA/CMAQ/blob/main/DOCS/Users_Guide/Tutorials/CMAQ_UG_tutorial_WRF-CMAQ_Benchmark.md) with the intel compiler. The script created bldmake\_intel.exe, tc.exe, ndown.exe, and real.exe. Unfortunately, the script couldn’t create the wrf.exe. The log file shows:

> make[1]: [Makefile:17: em\_wrf] Error 1 (ignored)  
> make[1]: Leaving directory ‘/home/alejandro/CMAQv54\_WRF/CCTM/scripts/BLD\_WRFv4.4\_CCTM\_v54\_intel/main’

Do you have any best suggestions to fix it? After that error, I tested to compile WRFv4.4 inside the BLD\_WRFv4.4\_CCTM\_v54\_intel directory using ./configure, and it worked. However, I don’t know if with this additional step I can use the WRF-CMAQ correctly.

I appreciate your help and suggestions,

Alejandro D. Peralta  
aperalta@usp.br

---

<div class="post-metadata">

**Author:** ![fsidi](https://avatars.discourse-cdn.com/v4/letter/f/7feea3/32.png) [@fsidi](https://forum.cmascenter.org/u/fsidi)\
**Post date:** [June 21, 2023, 5:29pm UTC](https://forum.cmascenter.org/t/makefile-em-wrf-error-1-ignored-error-to-compile-wrf-cmaq-with-wrf-exe/4175/2 "2023-06-21T17:29:57Z")

</div>

Hi Alejandro,

Do you have the “bldit\_cctm\_twoway.log” saved during compilation? If so could you please post it here. Looking within that log file will tell you exactly where the model is failing to compile.

Thanks!

---

<div class="post-metadata">

**Author:** ![Jano](https://avatars.discourse-cdn.com/v4/letter/j/9dc877/32.png) [@Jano](https://forum.cmascenter.org/u/Jano)\
**Post date:** [June 21, 2023, 6:02pm UTC](https://forum.cmascenter.org/t/makefile-em-wrf-error-1-ignored-error-to-compile-wrf-cmaq-with-wrf-exe/4175/3 "2023-06-21T18:02:33Z")

</div>

Hi fsidi,  
I successfully solved that error when I reinstalled the I/O API 3.2 version 20200828. After that, I ran my script available in ([WRFCMAQ/install\_WRFCMAQ.sh at main · adelgadop/WRFCMAQ · GitHub](https://github.com/adelgadop/WRFCMAQ/blob/main/install_WRFCMAQ.sh)) to install WRF-CMAQ.

The problem now is when I tried to install again I/O API 3.2 using the script available in my GitHub ([WRFCMAQ/install\_IOAPI\_libs\_WRF\_CMAQ.sh at main · adelgadop/WRFCMAQ · GitHub](https://github.com/adelgadop/WRFCMAQ/blob/main/install_IOAPI_libs_WRF_CMAQ.sh)) for another user. So, we had errors during the m3tools installation (please see make.log.txt attached). It is a headache for me. I don’t know if there is a problem with the netCDF installation.

Best regards!  
Alejandro  
[make.log.txt](https://forum.cmascenter.org/uploads/short-url/tucXmRiz6xa16wI26Y9MtnLQ2wx.txt) (226.2 KB)

---

<div class="post-metadata">

**Author:** ![cjcoats](https://avatars.discourse-cdn.com/v4/letter/c/ac8455/32.png) [@cjcoats](https://forum.cmascenter.org/u/cjcoats)\
**Post date:** [June 21, 2023, 6:31pm UTC](https://forum.cmascenter.org/t/makefile-em-wrf-error-1-ignored-error-to-compile-wrf-cmaq-with-wrf-exe/4175/4 "2023-06-21T18:31:04Z")

</div>

Most of what you’re seeing is warnings which do not affect the functionality.  
For the undefined-reference errors: this netCDF library was not built according to the recommendations; you will need additional libraries in the link=flags for anything built with it.  
See [https://www.cmascenter.org/ioapi/documentation/all\_versions/html/AVAIL.html#ncf4](https://www.cmascenter.org/ioapi/documentation/all_versions/html/AVAIL.html#ncf4):

> NetCDF Version 4.x have lots of additional build options, that will require a complex set of additional libraries in your Makefiles and all other model-building systems. It is recommended that you disable these options by adding the command-line flags below to your netCDF configure command:
> 
> `--disable-netcdf4 --disable-dap`  
> or (depending upon netCDF version; don’t you love consistency and compatibility !?? )  
> `--disable-netcdf-4 --disable-dap`

---

<div class="post-metadata">

**Author:** ![Jano](https://avatars.discourse-cdn.com/v4/letter/j/9dc877/32.png) [@Jano](https://forum.cmascenter.org/u/Jano)\
**Post date:** [June 22, 2023, 8:17pm UTC](https://forum.cmascenter.org/t/makefile-em-wrf-error-1-ignored-error-to-compile-wrf-cmaq-with-wrf-exe/4175/5 "2023-06-22T20:17:19Z")

</div>

Thanks so much, Carlie. Yes, It was the netCDF !!! I used another netCDF that I installed with the two flags that you suggested. The version of this netCDF is 4.1.3; with that, the I/O API 3.2 could be installed. After that, I successfully installed the WRF-CMAQ (the last version).

Best regards,  
Alejandro
