Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 634858 - sci-libs/scipy-0.19.1 fails to build for python target python3_6
Summary: sci-libs/scipy-0.19.1 fails to build for python target python3_6
Status: RESOLVED DUPLICATE of bug 614464
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal major (vote)
Assignee: Gentoo Science Related Packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-10-20 08:40 UTC by lumbrius
Modified: 2017-11-20 01:02 UTC (History)
3 users (show)

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


Attachments
Build log (build.log.tar.gz,146.58 KB, application/gzip)
2017-10-20 08:40 UTC, lumbrius
Details

Note You need to log in before you can comment on or make changes to this bug.
Description lumbrius 2017-10-20 08:40:39 UTC
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.
Comment 1 François Bissey 2017-10-28 21:55:24 UTC
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.
Comment 2 younky.yang 2017-11-15 01:23:14 UTC
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?
Comment 3 Denis Descheneaux 2017-11-16 14:13:00 UTC
Same build failure as well with gcc 7.2 + graphite optimisations
Comment 4 younky.yang 2017-11-17 06:42:51 UTC
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.
Comment 5 François Bissey 2017-11-17 06:47:57 UTC
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.
Comment 6 Rolf S. Arvidson 2017-11-19 19:24:59 UTC
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).
Comment 7 Benda Xu gentoo-dev 2017-11-20 01:02:48 UTC

*** This bug has been marked as a duplicate of bug 614464 ***