https://bugs.winehq.org/show_bug.cgi?id=37248
--- Comment #3 from Jan Lachnitt pepalogik@seznam.cz --- So here it is.
INSTRUCTIONS:
Install FTN95 in Wine in 32-bit mode (i.e. WINEARCH=win32). I use 32-bit mode by default because some applications do not work in 64-bit mode. Then unpack wine-FTN95-crash-full.zip to an empty directory and cd to that directory in a terminal.
Now build the program with the build script... wineconsole build.bat
... and launch the program. wine satleed1.exe
It crashes with a floating point stack fault at energy 38 eV.
Optionally, you can also retry with the /F_STDCALL flag activated. This is a workaround that helps sometimes but not for this program. wineconsole build_with_F_STDCALL.bat
Before re-launching the program, it is necessary to delete old output files. rm tleed.o short.t
Now you can start the program again. wine satleed1.exe
Having been compiled with /F_STDCALL, it crashes somewhat later (at energy 39 eV).
VERIFICATION ON WINDOWS:
If you build and run the program on Windows, it does not crash (whether it has been compiled with or without /F_STDCALL). It does not matter whether you build the program on Windows or Linux with Wine. You can copy the files "satleed1.exe", "tleed4.i" and "tleed5.i" from one OS to the other and just launch "satleed1.exe" (the other two files are input files), so that you do not have to rebuild the program on the other OS. However, you always have to install FTN95 first as the executable uses its runtime library.