fds icon indicating copy to clipboard operation
fds copied to clipboard

FDS 6.9.1-1902 (nightly) libimf.so not found

Open rweisse opened this issue 1 year ago • 15 comments

Which new feature are you testing? We are currently trying to use the latest nightly version of FDS 6.9.1-1902 (Linux) on Ubuntu LTS 24.04. Unfortunately, FDS does not start due to a missing library.

Describe your experience The installation runs smoothly. The following error message appears when starting FDS:

fds: error while loading shared libraries: libimf.so: cannot open shared object file: No such file or directory

I think that the problem could be solved by installing the Intel compiler. But that shouldn't really be necessary. Or have I missed something? Many thanks and best regards from the Brandschutz Consult team in Leipzig, Germany.

rweisse avatar Feb 20 '25 08:02 rweisse

A little Google-searching indicates that this is the "Intel Math Function" library. I'll check to see if we include it as part of the package.

mcgratta avatar Feb 20 '25 15:02 mcgratta

Are you sure you added the correct lines to your .bashrc? Can you copy the lines you put in your startup script here? Thanks

rmcdermo avatar Feb 20 '25 15:02 rmcdermo

Assuming that you followed the installation instructions properly, do the following

  1. cd to the directory where fds is installed, like /home/username/FDS/FDS6/bin
  2. Issue the command ldd ./fds and report what you see.

mcgratta avatar Feb 20 '25 15:02 mcgratta

Hi, thank you for your quick response. Here is the output:

# Current nightly version: https://github.com/firemodels/test_bundles/releases/download/FDS_TEST/FDS-6.9.1-1911_SMV-6.9.6-173_test_lnx.sh
root@098109e5c663:~# cd FDS/FDS6/bin/
root@098109e5c663:~/FDS/FDS6/bin# ldd ./fds
	libimf.so => not found
	libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007fffff6d8000)
	libmpifort.so.12 => /root/FDS/FDS6/bin/INTEL/lib/libmpifort.so.12 (0x00007fffff200000)
	libmpi.so.12 => /root/FDS/FDS6/bin/INTEL/lib/libmpi.so.12 (0x00007ffffd800000)
	libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007ffffd5ee000)
	libgcc_s.so.1 => /lib/x86_64-linux-gnu/libgcc_s.so.1 (0x00007fffff6aa000)
	/lib64/ld-linux-x86-64.so.2 (0x00007ffffffc6000)
	librt.so.1 => /lib/x86_64-linux-gnu/librt.so.1 (0x00007fffff6a3000)
	libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007fffff69e000)

My environment is the Docker image of Ubuntu 24.04.

I can rule out that it is due to the Docker image, as it works with the stable release version 6.9.1 without any problems.

# Current stable 6.9.1: https://github.com/firemodels/fds/releases/download/FDS-6.9.1/FDS-6.9.1_SMV-6.9.1_lnx.sh
root@098109e5c663:~# cd FDS/FDS6/bin/
root@098109e5c663:~/FDS/FDS6/bin# ldd ./fds
	libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007fffff7bc000)
	libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007fffff6d3000)
	libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007fffff6ce000)
	libmpifort.so.12 => /root/FDS/FDS6/bin/INTEL/lib/libmpifort.so.12 (0x00007fffff200000)
	libmpi.so.12 => /root/FDS/FDS6/bin/INTEL/lib/libmpi.so.12 (0x00007ffffd800000)
	librt.so.1 => /lib/x86_64-linux-gnu/librt.so.1 (0x00007fffff6c9000)
	libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007ffffd5ee000)
	libgcc_s.so.1 => /lib/x86_64-linux-gnu/libgcc_s.so.1 (0x00007fffff69a000)
	/lib64/ld-linux-x86-64.so.2 (0x00007ffffffc6000)

Edit: @rmcdermo, this is the way I installed FDS:

# download and install
cd /root
wget https://github.com/firemodels/test_bundles/releases/download/FDS_TEST/FDS-6.9.1-1911_SMV-6.9.6-173_test_lnx.sh
chmod +x FDS-6.9.1-1911_SMV-6.9.6-173_test_lnx.sh
./FDS-6.9.1-1911_SMV-6.9.6-173_test_lnx.sh y
echo "source /root/FDS/FDS6/bin/FDS6VARS.sh" >> .bashrc

# open new bash
bash

# run fds
fds

rweisse avatar Feb 20 '25 16:02 rweisse

But did you source FDS6VARS.sh?

rmcdermo avatar Feb 20 '25 17:02 rmcdermo

@rmcdermo, yes I did. I just wrongly copied the lines to my last message. Of course I used FDS6VARS.sh. Otherwise the fds command would not have been found, too. (I edited my last comment again and fixed the corresponding line)

rweisse avatar Feb 20 '25 17:02 rweisse

OK, it appears that the current fds executable needs libimf.so but the FDS installation includes libimf.so.12. Try this,

  1. cd to FDS/FDS6/bin/INTEL/lib
  2. cp libmpi.so.12 libmpi.so Tell me if that makes things work.

mcgratta avatar Feb 20 '25 18:02 mcgratta

libimf.so.12is not included in FDS/FDS6/bin/INTEL/lib (but libmpi.so.12 is included):

root@065a1a5d1366:~# ls -l /root/FDS/FDS6/bin/INTEL/lib
total 22656
-rwxr-xr-x 1 15834 18660   383822 Jun 21  2022 libfabric.so.1
-rw-r--r-- 1 15834 18660  2581562 Jun 21  2022 libiomp5.so
-rwxr-xr-x 1 15834 18660 15322311 Jun 21  2022 libmpi.so.12
-rwxr-xr-x 1 15834 18660  4905210 Jun 21  2022 libmpifort.so.12

I executed cp /root/FDS/FDS6/bin/INTEL/lib/libmpi.so.12 /root/FDS/FDS6/bin/INTEL/lib/libimf.so. After that fds starts successfully.

But when I try to run a test simulation it fails:

# create test folder
mkdir test && cd test

# Create nonsense test file
echo '&HEAD CHID='test', TITLE='Test' /
&TIME T_BEGIN=0, T_END=5 /
&MESH XB =  0.0, 10.0, 0.0, 10.0, 0.0, 10.0, IJK = 10, 10, 10 /									
&VENT XB =  0.0,  0.0, 0.0, 10.0, 0.0,  1.0, SURF_ID = 'OPEN', COLOR = 'RED', OUTLINE = .FALSE. /
&VENT XB = 10.0, 10.0, 0.0, 10.0, 0.0,  1.0, SURF_ID = 'OPEN', COLOR = 'RED', OUTLINE = .FALSE. /
&REAC ID='POLYURETHANE', FUEL='METHANE', C=6.3, H=7.1, O=2.1, N=1.0, SOOT_YIELD=0.1, HEAT_OF_COMBUSTION=29000/
&SURF ID='A', COLOR='RED', HRRPUA=500.0 /
&OBST XB =  4.0,  6.0,  4.0,  6.0, 0.0, 0.0, SURF_ID='A' /
&TAIL /' > test.fds

# run fds
root@065a1a5d1366:~/test# fds test.fds

 Starting FDS ...

 MPI Process      0 started on 065a1a5d1366

 Reading FDS input file ...

fds: symbol lookup error: fds: undefined symbol: __powr8i8

I think it is because libmpi.so.12 != libimf.so

rweisse avatar Feb 20 '25 18:02 rweisse

Ugh. You are correct, but copying libmpi to libimf is bound to fail. Two completely different libs.

OK, until we fix this, I suggest you install the Intel oneAPI base and HPC toolkits, or some other package that would have that library. My guess is that your particular flavor of Ubuntu does not have it.

mcgratta avatar Feb 20 '25 18:02 mcgratta

BTW, on my computer, I see this

$ ldd ./fds
        linux-vdso.so.1 (0x00007ffc23fd6000)
        libimf.so => /zpool/array01/shared/intel/oneapi/compiler/2025.0/lib/libimf.so (0x000014ea5edfc000)
        libm.so.6 => /lib64/libm.so.6 (0x000014ea5ed11000)
        libmpifort.so.12 => /zpool/array01/shared/intel/oneapi/mpi/2021.14/lib/libmpifort.so.12 (0x000014ea5e91c000)
        libmpi.so.12 => /zpool/array01/shared/intel/oneapi/mpi/2021.14/lib/libmpi.so.12 (0x000014ea54954000)
        libc.so.6 => /lib64/libc.so.6 (0x000014ea54600000)
        libgcc_s.so.1 => /lib64/libgcc_s.so.1 (0x000014ea54939000)
        libintlc.so.5 => /zpool/array01/shared/intel/oneapi/compiler/2025.0/lib/libintlc.so.5 (0x000014ea548d7000)
        /lib64/ld-linux-x86-64.so.2 (0x000014ea5f20a000)
        librt.so.1 => /lib64/librt.so.1 (0x000014ea548d2000)
        libdl.so.2 => /lib64/libdl.so.2 (0x000014ea548cd000)

I have oneAPI installed, so these libs are found there.

mcgratta avatar Feb 20 '25 18:02 mcgratta

Glenn -- I suspect that Intel ifx uses slightly different libraries than ifort, which is why the nightly build is failing.

mcgratta avatar Feb 20 '25 18:02 mcgratta

I'm working on updating the bundle scripts to include the missing libraries and libraries from the oneapi release we are using to build fds

gforney avatar Feb 20 '25 19:02 gforney

Thanks to you all. Then I will wait for it.

rweisse avatar Feb 20 '25 19:02 rweisse

try installer posted here.
https://github.com/firemodels/test_bundles/releases/tag/FDS_TEST

compilation date should say: Feb 20, 2025 14:18:00

gforney avatar Feb 20 '25 19:02 gforney

Thank you! It's working now 👍

rweisse avatar Feb 20 '25 19:02 rweisse