# Wildfire script error

**URL:** <https://forum.cmascenter.org/t/wildfire-script-error/760>\
**Category:** I/O API\
**Created:** [June 15, 2019, 2:29pm UTC](https://forum.cmascenter.org/t/wildfire-script-error/760 "2019-06-15T14:29:22Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Catalyst2682](https://avatars.discourse-cdn.com/v4/letter/c/a6a055/32.png) [@Catalyst2682](https://forum.cmascenter.org/u/Catalyst2682)\
**Post date:** [June 15, 2019, 2:29pm UTC](https://forum.cmascenter.org/t/wildfire-script-error/760/1 "2019-06-15T14:29:22Z")

</div>

Dear @tlspero @cjcoats @lizadams @bbaek,

I am trying to run wildfire script to process its emission but I got this error:

“/home/catalyst/Desktop/Build\_WRF/LIBRARIES/allocation/reas2/wildfire/wf\_ref.exe: error while loading shared libraries: libiomp5.so: cannot open shared object file: No such file or directory”

I am using gfortran compiler and also an openmpi. I’ve installed libiomp5 using apt-get install but couldn’t find libiomp5.so library to link its location to my environment path. Below is my makefile which I used to configure the wildfire model.

PROGRAM = wf\_ref.exe  
FC = gfortran  
FC\_FLAGS = -02  
LINK\_FLAGS = -fopenmp  
IOAPI = -L/home/catalyst/Desktop/Build\_WRF/LIBRARIES/ioapi-3.2/Linux2\_x86\_64gfort -lioapi  
NETCDF = -L/home/catalyst/Desktop/Build\_WRF/LIBRARIES/netcdf/lib -lnetcdff -lnetcdf  
LIBRARIES = (IOAPI) (NETCDF)

OBJS =   
wf\_ref.o coord.o csv.o slocate.o

(PROGRAM): (OBJS)  
(FC) {LINK\_FLAGS} (OBJS) (LIBRARIES) -o $(PROGRAM)

.F.o:  
(FC) (FC\_FLAGS) $\<

clean:  
rm -f (OBJS) (PROGRAM)

I’ll appreciate your help, please.

Thanks

Catalyst

---

<div class="post-metadata">

**Author:** ![Catalyst2682](https://avatars.discourse-cdn.com/v4/letter/c/a6a055/32.png) [@Catalyst2682](https://forum.cmascenter.org/u/Catalyst2682)\
**Post date:** [June 15, 2019, 2:59pm UTC](https://forum.cmascenter.org/t/wildfire-script-error/760/2 "2019-06-15T14:59:28Z")

</div>

I tried to make some amends but still got this error:  
[wf\_ref.f.txt](https://forum.cmascenter.org/uploads/short-url/yWMmxjjpw6WAi9OT2fyhuQdJNl7.txt) (22.0 KB)  
At line 120 of file wf\_ref.f (unit = 5, file = ‘stdin’)  
Fortran runtime error: Bad real number in item 1 of list input

Error termination. Backtrace:  
#0 0x145e07fd62da in ???  
#1 0x145e07fd6ec5 in ???  
#2 0x145e07fd768d in ???  
#3 0x145e08144d42 in ???  
#4 0x145e08146ad5 in ???  
#5 0x145e081480f9 in ???  
#6 0x5631ca301a04 in ???  
#7 0x5631ca308918 in ???  
#8 0x145e071e6b96 in ???  
#9 0x5631ca301869 in ???  
#10 0xffffffffffffffff in ???

Attached is wf\_ref.f file for your attention.  
[wf\_ref.f](https://forum.cmascenter.org/uploads/short-url/yWMmxjjpw6WAi9OT2fyhuQdJNl7.txt) (22.0 KB)

I have resolved this error and been able to run the script successfully.

Thanks for your contributions.

Catalyst

---

<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 15, 2019, 3:11pm UTC](https://forum.cmascenter.org/t/wildfire-script-error/760/3 "2019-06-15T15:11:30Z")

</div>

If you’re using an MPI-enabled I/O API library, then you need to use _FC=mpif90_ instead of _gfortran_.

Some more about that. The MPI enabled compilers _mpif90_ (and _mpicc_, etc.) are really scripts that know about a particular underlying compiler and its versions (_gfortran_ in this case, I think) and also about the libraries and include-files for that particular MPI installation. Note that libraries and include-files for different MPI versions (OpenMPI, MPICH, etc) and/or for different underlying compiler-set are **not compatible with each other** … trying to mix them can lead to a number of obscure problems/bugs.

Is your vendor’s _libiomp5.so_ compatible with your OpenMPI? I worry about that, unless they were both from the vendor, and installed together.

---

<div class="post-metadata">

**Author:** ![Catalyst2682](https://avatars.discourse-cdn.com/v4/letter/c/a6a055/32.png) [@Catalyst2682](https://forum.cmascenter.org/u/Catalyst2682)\
**Post date:** [June 17, 2019, 10:27am UTC](https://forum.cmascenter.org/t/wildfire-script-error/760/4 "2019-06-17T10:27:12Z")

</div>

@cjcoats @tlspero @cgnolte @rpedruzzi @bbaek Thanks so much for your useful responses. I got this error while running a bioemiss (megan\_bio\_emiss) script and this has taken a lot of my time while trying to resolve it.

“./megan\_bio\_emiss: symbol lookup error: ./megan\_bio\_emiss: undefined symbol: for\_\_b\_fmt\_table”

Any hint to resolve it would be greatly appreciated.

Thanks

---

<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 17, 2019, 12:42pm UTC](https://forum.cmascenter.org/t/wildfire-script-error/760/5 "2019-06-17T12:42:31Z")

</div>

`undefined symbol: for__b_fmt_table` looks like a Fortran run-time-library problem. Make sure that your `LD_LIBRARY_PATH` is set correctly (e.g., _module load_ if you’re in a _module_ based system.)

---

<div class="post-metadata">

**Author:** ![fullhey](https://avatars.discourse-cdn.com/v4/letter/f/ccd318/32.png) [@fullhey](https://forum.cmascenter.org/u/fullhey)\
**Post date:** [February 20, 2023, 9:18am UTC](https://forum.cmascenter.org/t/wildfire-script-error/760/6 "2023-02-20T09:18:17Z")

</div>

hi, I wonder did you got the solutions to this problem?I now got the same issue when running FVCOM.
