After a recent update, when I try to save a modified or new version of a psrfits file made with fold_psrfits (from psrfits_utils), I get the following error:
At line 363 of file ephio.f
Internal Error: get_unit(): Bad internal unit KIND
It is a tempo1 parfile. I've tried different parfiles, and recompiling relevant code, with no luck. I can't tell which parameter it is having a problem with. I had no issue with files generated in a similar fashion in some older versions of the code, so this must be relatively new.
ephio.f has not been changed since 2007, but I'm pretty sure I've seen a similar issue elsewhere. I think it was related to picking up the wrong version of libgfortran relative to the compiler used. This may occur because you've updated your GCC but still somehow linking a system gfortran, but can also occur because of things like anaconda having it's own paralell version of system libraries (such as libgfortran). In fact, I'm pretty sure it was anaconda that was the problem for me as it had a newer libgfortran than came with my compiler, so for whatever reason the system prefered to link against that, which compiles ok, but creates a bunch of runtime issues like you see.
Thanks Keith. There was indeed a recent anaconda update, so that sounds
like a potential culprit. I'll try to make sure it points at the right
system libraries and see if that helps.
Ryan
On 9/1/20 8:25 AM, Mike Keith wrote:
Related
Bugs: #436