LLNL / UEDGE

2D fluid simulation of plasma and neutrals in magnetic fusion devices

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Built UEDGE version segfault on OPEN statements

holm10 opened this issue · comments

          On Singe the Anaconda 3 includes libgfortran.so.4. The problem occurs when another compiler is selected that uses libgfortran.so.5. Here is the output of ldd on the flx package shared object:

└──$ ldd flxpy.cpython-37m-x86_64-linux-gnu.so
linux-vdso.so.1 => (0x00007ffdd9134000)
libgfortran.so.4 => /usr/local/anaconda/anaconda3/lib/libgfortran.so.4 (0x00007ff294e79000)
libpthread.so.0 => /lib64/libpthread.so.0 (0x00007ff294bae000)
libc.so.6 => /lib64/libc.so.6 (0x00007ff2947e0000)
libquadmath.so.0 => /usr/local/anaconda/anaconda3/lib/libquadmath.so.0 (0x00007ff294e13000)
libm.so.6 => /lib64/libm.so.6 (0x00007ff2944de000)
libgcc_s.so.1 => /usr/local/anaconda/anaconda3/lib/libgcc_s.so.1 (0x00007ff294dff000)
/lib64/ld-linux-x86-64.so.2 (0x00007ff294dca000)

Note that libgfortran.so.4 is used in spite of a version 5 compiler. This is not compatible and can easily cause a crash. Working on a solution. For now the workaround is to compile with version 7 or older.

Originally posted by @llnl-fesp in #25 (comment)

Moved to new issue, as this does not directly impact #25 but is worth to highlight until a fix is in place

This is fixed by running non-anaconda python. On Singe unload anaconda if it's loaded and load python:

module unload anaconda
module load python

Then create a venv and activate. Install uedge as normal after that.