Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 639532 - sci-libs/scipy-1.0.0 cython fails ImportError: libgfortran.so.3: cannot open
Summary: sci-libs/scipy-1.0.0 cython fails ImportError: libgfortran.so.3: cannot open
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo Science Related Packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-12-02 18:25 UTC by Jeff Kowalczyk
Modified: 2017-12-15 18:06 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge --info (emerge-info.txt,6.57 KB, text/plain)
2017-12-02 18:25 UTC, Jeff Kowalczyk
Details
build.log (build.log,4.62 KB, text/plain)
2017-12-02 18:26 UTC, Jeff Kowalczyk
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jeff Kowalczyk 2017-12-02 18:25:17 UTC
Emerging sci-libs/scipy-1.0.0 on ~amd64 fails with

${EPYTHON} tools/cythonize.py || die;

  File "/usr/lib64/python2.7/site-packages/numpy/linalg/__init__.py", line 51, in <module>
    from .linalg import *
  File "/usr/lib64/python2.7/site-packages/numpy/linalg/linalg.py", line 30, in <module>
    from numpy.linalg import lapack_lite, _umath_linalg
ImportError: libgfortran.so.3: cannot open shared object file: No such file or directory

I'm trying to track down what lapack implementation and options scipy is looking for (I have sci-libs/lapack-reference-3.7.0::gentoo), happy to answer any questions about this specific machine.
Comment 1 Jeff Kowalczyk 2017-12-02 18:25:44 UTC
Created attachment 507774 [details]
emerge --info
Comment 2 Jeff Kowalczyk 2017-12-02 18:26:03 UTC
Created attachment 507776 [details]
build.log
Comment 3 François Bissey 2017-12-03 04:14:52 UTC
You have upgraded to gcc-7.2 after building blas/lapack. gcc 7.2 changed libgfortran from so.3 to so.4.
You probably should run 
revdep-rebuild --library 'libgfortran.so.3' -- --exclude gcc
Comment 4 Jeff Kowalczyk 2017-12-03 07:39:25 UTC
Thanks for the pointer. I haven't had a working revdep-rebuild for several months (since gentoolkit-0.4.0 with python 3.6, bug https://bugs.gentoo.org/617498), downgrading to gentoolkit-0.3.3 works, and with a couple of revdep-rebuild iterations, scipy-1.0.0 is building now.

Closing.
Comment 5 Isaac 2017-12-15 12:52:05 UTC
I had the same issue, but revdep-rebuild didn't fix it (it couldn't find the linking issues) - I had to use the legacy revdep-rebuild.sh script.

revdep-rebuild.sh --library 'libgfortran.so.3' -- --exclude gcc
Comment 6 François Bissey 2017-12-15 18:06:59 UTC
(In reply to Isaac from comment #5)
> I had the same issue, but revdep-rebuild didn't fix it (it couldn't find the
> linking issues) - I had to use the legacy revdep-rebuild.sh script.
> 
> revdep-rebuild.sh --library 'libgfortran.so.3' -- --exclude gcc

I have upgraded gcc to 7.2.0 to eat my own dog food, so to speak, and I had no problems with the new `revdep-rebuild`. It would be nice if you reported the problems you encountered with it (not in this bug of course).