Created attachment 499348 [details] Build log When compiling scipy-0.19.1, build for python3_6 fails with /usr/lib64/python3.6/site-packages/numpy/distutils/system_info.py:644: UserWarning: Specified path /usr/lib64/python3.6/site-packages/numpy/__init__.py/include/python3.6m is invalid. Seems like syntax bug, please fix.
error: Command "/usr/bin/gfortran -Wall -g -Wl,-O1 -Wl,--as-needed -L//opt/acml6.1.0.31/gfortran64_mp/lib -lplasmca -lcoreblas -lquark -lopenblas_openmp -lreflapacke -lacml_trace -lacml_bridge -lacml_mp -lacml_fftw -lblas -lhwloc -shared /var/tmp/portage/sci-libs/scipy-0.19.1/work/scipy-0.19.1-python3_6/build/temp.linux-x86_64-3.6/var/tmp/portage/sci-libs/scipy-0.19.1/work/scipy-0.19.1-python3_6/build/src.linux-x86_64-3.6/src.linux-x86_64-3.6/scipy/linalg/_fblasmodule.o /var/tmp/portage/sci-libs/scipy-0.19.1/work/scipy-0.19.1-python3_6/build/temp.linux-x86_64-3.6/var/tmp/portage/sci-libs/scipy-0.19.1/work/scipy-0.19.1-python3_6/build/src.linux-x86_64-3.6/src.linux-x86_64-3.6/scipy/linalg/fortranobject.o /var/tmp/portage/sci-libs/scipy-0.19.1/work/scipy-0.19.1-python3_6/build/temp.linux-x86_64-3.6/var/tmp/portage/sci-libs/scipy-0.19.1/work/scipy-0.19.1-python3_6/scipy/_build_utils/src/wrap_dummy_g77_abi.o /var/tmp/portage/sci-libs/scipy-0.19.1/work/scipy-0.19.1-python3_6/build/temp.linux-x86_64-3.6/var/tmp/portage/sci-libs/scipy-0.19.1/work/scipy-0.19.1-python3_6/scipy/_build_utils/src/wrap_dummy_accelerate.o /var/tmp/portage/sci-libs/scipy-0.19.1/work/scipy-0.19.1-python3_6/build/temp.linux-x86_64-3.6/var/tmp/portage/sci-libs/scipy-0.19.1/work/scipy-0.19.1-python3_6/build/src.linux-x86_64-3.6/src.linux-x86_64-3.6/scipy/linalg/_fblas-f2pywrappers.o -L//opt/acml6.1.0.31/gfortran64_mp/lib -L/usr/lib64 -L/usr/lib64 -L/var/tmp/portage/sci-libs/scipy-0.19.1/work/scipy-0.19.1-python3_6/build/temp.linux-x86_64-3.6 -lacml_bridge -lacml_fftw -lacml_mp -lacml_trace -lblas -lopenblas_openmp -lpython3.6m -lgfortran -o /var/tmp/portage/sci-libs/scipy-0.19.1/work/scipy-0.19.1-python3_6/build/lib/scipy/linalg/_fblas.cpython-36m-x86_64-linux-gnu.so" failed with exit status 1 One more duplicate of https://bugs.gentoo.org/614464 I would say.
Even with 1.0.0 release, this is the same error, I think this may related to some issue on numpy. Is there someone can look in to this?
Same build failure as well with gcc 7.2 + graphite optimisations
got this solved by manually executed the error command and then back to use ebuild scipy-*.ebuild merge to make it merged. Don't know why it failed in that step.
That's why I suspect it is a race condition. You have several commands running at once. The linking command is executed before one of the objects has been compiled. So the building stop but all the other building commands that were run in parallel finish executing. Including the one compiling the missing object. When you execute the linking manually there is no problems since the object has now been built.
François, FWIW, I did manage to compile sci-libs/scipy-0.19.1 for PYTHON_TARGETS="python3_6" with MAKEOPTS="-j0" (with numpy-1.13.3).
*** This bug has been marked as a duplicate of bug 614464 ***