Hi,

I have written an EC to install some Python codes as a tarball and
successfully installed it.  However, when the user tries to use it, he
gets the following error:

  Importing the numpy c-extensions failed.
  ...
  Original error was: libgfortran.so.4: cannot open shared object file: No such 
file or directory

I used the foss-2019b toolchain, which uses GGC 8.3.0, which has the following:

  $ ll libgfortran.so*
  lrwxrwxrwx 1 build staff       20 Sep 30  2019 libgfortran.so -> 
libgfortran.so.5.0.0
  lrwxrwxrwx 1 build staff       20 Sep 30  2019 libgfortran.so.5 -> 
libgfortran.so.5.0.0
  -rwxr-xr-x 1 build staff 10799408 Sep 30  2019 libgfortran.so.5.0.0

Version 4 of the library is available from GCC 7.3.0:

  $ ll libgfortran.so*
  lrwxrwxrwx 1 build staff      20 Jan 17  2019 libgfortran.so -> 
libgfortran.so.4.0.0
  lrwxrwxrwx 1 build staff      20 Jan 17  2019 libgfortran.so.4 -> 
libgfortran.so.4.0.0
  -rwxr-xr-x 1 build staff 7291944 Jan 17  2019 libgfortran.so.4.0.0

I can obviously rebuild the software with the appropriate toolchain, but
I'd like to know what's going on.

Why does numpy care about the version of libgfortran?  Isn't the
function of the link 'libgfortran.so' precisely to avoid this kind of
breakage?

Cheers,

Loris

-- 
Dr. Loris Bennett (Mr.)
ZEDAT, Freie Universität Berlin         Email [email protected]

Reply via email to