Without gcc:6.4.0 and only gcc:72.0, the scipy build fails quite soon: >>> Emerging (1 of 1) sci-libs/scipy-1.0.0::gentoo * scipy-1.0.0.tar.gz BLAKE2B SHA512 size ;-) ... [ ok ] * Using following Fortran compiler: * F77: x86_64-pc-linux-gnu-gfortran * FC: x86_64-pc-linux-gnu-gfortran >>> Unpacking source... >>> Unpacking scipy-1.0.0.tar.gz to /var/tmp/portage/sci-libs/scipy-1.0.0/work >>> Source unpacked in /var/tmp/portage/sci-libs/scipy-1.0.0/work >>> Preparing source in /var/tmp/portage/sci-libs/scipy-1.0.0/work/scipy-1.0.0 ... * Will copy sources from /var/tmp/portage/sci-libs/scipy-1.0.0/work/scipy-1.0.0 * python2_7: copying to /var/tmp/portage/sci-libs/scipy-1.0.0/work/scipy-1.0.0-python2_7 * python3_5: copying to /var/tmp/portage/sci-libs/scipy-1.0.0/work/scipy-1.0.0-python3_5 >>> Source prepared. >>> Configuring source in /var/tmp/portage/sci-libs/scipy-1.0.0/work/scipy-1.0.0 ... >>> Source configured. >>> Compiling source in /var/tmp/portage/sci-libs/scipy-1.0.0/work/scipy-1.0.0 ... * python2_7: running distutils-r1_run_phase python_compile scipy/linalg/_generate_pyx.py: all files up-to-date Traceback (most recent call last): File "scipy/special/_generate_pyx.py", line 404, in <module> import numpy File "/usr/lib64/python2.7/site-packages/numpy/__init__.py", line 142, in <module> from . import add_newdocs File "/usr/lib64/python2.7/site-packages/numpy/add_newdocs.py", line 13, in <module> from numpy.lib import add_newdoc File "/usr/lib64/python2.7/site-packages/numpy/lib/__init__.py", line 19, in <module> from .polynomial import * File "/usr/lib64/python2.7/site-packages/numpy/lib/polynomial.py", line 20, in <module> from numpy.linalg import eigvals, lstsq, inv 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 Running scipy/special/_generate_pyx.py Running scipy/linalg/_generate_pyx.py Traceback (most recent call last): File "tools/cythonize.py", line 265, in <module> main() File "tools/cythonize.py", line 261, in main find_process_files(root_dir) File "tools/cythonize.py", line 228, in find_process_files for result in pool.imap(lambda fn: process_generate_pyx(fn, lock), jobs): File "/usr/lib64/python2.7/multiprocessing/pool.py", line 673, in next raise value RuntimeError: Running scipy/special/_generate_pyx.py failed * ERROR: sci-libs/scipy-1.0.0::gentoo failed (compile phase): * (no error message) * * Call stack: * ebuild.sh, line 124: Called src_compile * environment, line 4207: Called distutils-r1_src_compile * environment, line 1265: Called _distutils-r1_run_foreach_impl 'python_compile' * environment, line 371: Called python_foreach_impl 'distutils-r1_run_phase' 'python_compile' * environment, line 3653: Called multibuild_foreach_variant '_python_multibuild_wrapper' 'distutils-r1_run_phase' 'python_compile' * environment, line 2794: Called _multibuild_run '_python_multibuild_wrapper' 'distutils-r1_run_phase' 'python_compile' * environment, line 2792: Called _python_multibuild_wrapper 'distutils-r1_run_phase' 'python_compile' * environment, line 836: Called distutils-r1_run_phase 'python_compile' * environment, line 1258: Called python_compile * environment, line 3240: Called die * The specific snippet of code: * ${EPYTHON} tools/cythonize.py || die; * * If you need support, post the output of `emerge --info '=sci-libs/scipy-1.0.0::gentoo'`, * the complete build log and the output of `emerge -pqv '=sci-libs/scipy-1.0.0::gentoo'`. * The complete build log is located at '/var/tmp/portage/sci-libs/scipy-1.0.0/temp/build.log'. * The ebuild environment file is located at '/var/tmp/portage/sci-libs/scipy-1.0.0/temp/environment'. * Working directory: '/var/tmp/portage/sci-libs/scipy-1.0.0/work/scipy-1.0.0-python2_7' * S: '/var/tmp/portage/sci-libs/scipy-1.0.0/work/scipy-1.0.0'
Thank you for the report. Please recompile and *attach* the logfiles, https://wiki.gentoo.org/wiki/Attach_the_logs_to_the_bug_ticket and reopen this ticket (Status:unconfirmed).
Created attachment 517488 [details] buidl.log I have the same problem, I went ahead and attached my build.log.
Created attachment 517490 [details] emerge-info
Created attachment 517492 [details] ebuild environment
I fixed this with: emerge -1 blas-reference lapack-reference cblas-reference eselect cblas set reference cblas was previously set to gsl, idk if that was the cause of the issue or that just rebuilding blas and lapack would have been enough.
Rebuilding gsl (or whatever package is used for cblas; eselect cblas list) fixed this issue for me with gcc-8.2.0, scipy-1.1.0 and libgfortran.so.4 not being found while libgfortran.so.5 was provided by gcc.
*** Bug 681786 has been marked as a duplicate of this bug. ***