Compiling the latest FDS through linux

111 views
Skip to first unread message

Mingcian Hong

unread,
Sep 26, 2023, 7:51:26 AM9/26/23
to FDS and Smokeview Discussions
Dear FDS community,

I forked the latest FDS version through GitHub and try to compile it on HPC, but an error message continues to pop up and I couldn't proceed to compiling. I follow the instructions on https://github.com/firemodels/fds/wiki/Compiling-FDS-with-Intel-oneAPI. I successfully forked fds, exp, out, smv into my folder.

I tried to compile it by using 
./make_fds.sh
in the folder of fds/Build/impi_intel_linux

An error message show:
-bash: ./make_fds.sh: /bin/bash^M: bad interpreter: No such file or directory

Nevertheless, the make_fds.sh file do exist in the impi_intel_linux folder.

I have some experience to compile some previous versions before and this error did not occur. (it was in the folder of impi_intel_linux_64)
My impi version is: impi/2021.4.0-intel-compilers-2021.4.0

Can anyone give me some suggestion to further try? Thanks in advance for any suggestions.

Kind regards,

Mingcian


Jonathan Hodges

unread,
Sep 26, 2023, 7:58:01 AM9/26/23
to FDS and Smokeview Discussions
run dos2unix to remove the windows line endings from all the bash files in Build then rerun.

Mingcian Hong

unread,
Sep 26, 2023, 11:25:09 AM9/26/23
to FDS and Smokeview Discussions
Hi Jonathan,

Thanks a lot for your suggestion.
I tried dos2unix on both folders of Build and Build/impi_intel_linux.

In Builid folder, it shows:
dos2unix: Binary symbol 0x1B found at line 7
dos2unix: Skipping binary file stdin

In Build/impi_intel_linux folder, the comment line just freeze until I use Ctrl C to stop (I waited for more than 30 min).

I run ./make_fds.sh again, but the error message remains:
-bash: ./make_fds.sh: /bin/bash^M: bad interpreter: No such file or directory

(I am trying to compile on HPC, instead of my local computer. I don't know if that will make a difference)

Can you suggest anything I can further try?

Kind regards,

Mingcian



Jonathan Hodges 在 2023年9月26日 星期二下午1:58:01 [UTC+2] 的信中寫道:

Randy McDermott

unread,
Sep 26, 2023, 11:33:23 AM9/26/23
to fds...@googlegroups.com
If you are on the HPC machine and have cloned the repo, then if the repo is clean you will not have the ^M.

So, do a `git status -uno` and make sure you do not have modified files.  Any files that are modified, check them out and they should be clean.

Beyond this you will need to edit the file locally (on the HPC system).



Mingcian Hong

unread,
Sep 27, 2023, 5:52:26 AM9/27/23
to FDS and Smokeview Discussions
Hi Jonathan and Randy,

Thanks a lot for your help. I try: 
dos2unix make_fds.sh
in fds/Build/impi_intel_linux again, and it start to compile now. 
(I only type dos2unix without putting 'make_fds.sh' previously. Therefore, it did not work)

Kind regards,

Mingcian

Randy McDermott 在 2023年9月26日 星期二下午5:33:23 [UTC+2] 的信中寫道:
Reply all
Reply to author
Forward
0 new messages