<p dir="auto">Hi,</p>
<p dir="auto">on Gentoo Linux, we see parallel build issues in all versions (including latest 1.16.x version) for Python 3.x:</p>
<p dir="auto">Most common failure with lapack (should come close to your defaults):</p>
<p dir="auto"><a href="https://github.com/numpy/numpy/files/2923505/build-error_py36_with_lapack.txt">build-error_py36_with_lapack.txt</a></p>
<p dir="auto">However, this is not always reproducible.</p>
<p dir="auto">Most reproducible failure is without lapack:</p>
<p dir="auto"><a href="https://github.com/numpy/numpy/files/2923506/build-error_py36_without_lapack.txt">build-error_py36_without_lapack.txt</a></p>
<p dir="auto">Downstream-Bug: <a href="https://bugs.gentoo.org/660754" rel="nofollow">https://bugs.gentoo.org/660754</a></p>
<p dir="auto">I'm trying to build scipy 0.18.1 with Python 3.6.0, Numpy 1.12.0, GCC 6.1.0, and OpenBLAS 0.2.19 on CentOS 6.8. When I build in serial, things work just fine. But when I use <code class="notranslate">-j 16</code>, I'm seeing build errors:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="/blues/gpfs/home/software/spack-0.10.0/lib/spack/env/gcc/gfortran -Wall -g -Wall -g -shared build/temp.linux-x86_64-3.6/build/src.linux-x86_64-3.6/scipy/integrate/_dopmodule.o build/temp.linux-x86_64-3.6/build/src.linux-x86_64-3.6/fortranobject.o -L/blues/gpfs/home/software/spack-0.10.0/opt/spack/linux-centos6-x86_64/gcc-6.1.0/python-3.6.0-prk6gk3ufbfetjc2bthqokmkjtjnce3j/lib -Lbuild/temp.linux-x86_64-3.6 -ldop -lpython3.6m -lgfortran -o build/lib.linux-x86_64-3.6/scipy/integrate/_dop.cpython-36m-x86_64-linux-gnu.so
build/temp.linux-x86_64-3.6/build/src.linux-x86_64-3.6/fortranobject.o: file not recognized: File truncated
collect2: error: ld returned 1 exit status
build/temp.linux-x86_64-3.6/build/src.linux-x86_64-3.6/fortranobject.o: file not recognized: File truncated
collect2: error: ld returned 1 exit status"><pre class="notranslate"><code class="notranslate">/blues/gpfs/home/software/spack-0.10.0/lib/spack/env/gcc/gfortran -Wall -g -Wall -g -shared build/temp.linux-x86_64-3.6/build/src.linux-x86_64-3.6/scipy/integrate/_dopmodule.o build/temp.linux-x86_64-3.6/build/src.linux-x86_64-3.6/fortranobject.o -L/blues/gpfs/home/software/spack-0.10.0/opt/spack/linux-centos6-x86_64/gcc-6.1.0/python-3.6.0-prk6gk3ufbfetjc2bthqokmkjtjnce3j/lib -Lbuild/temp.linux-x86_64-3.6 -ldop -lpython3.6m -lgfortran -o build/lib.linux-x86_64-3.6/scipy/integrate/_dop.cpython-36m-x86_64-linux-gnu.so
build/temp.linux-x86_64-3.6/build/src.linux-x86_64-3.6/fortranobject.o: file not recognized: File truncated
collect2: error: ld returned 1 exit status
build/temp.linux-x86_64-3.6/build/src.linux-x86_64-3.6/fortranobject.o: file not recognized: File truncated
collect2: error: ld returned 1 exit status
</code></pre></div>
<p dir="auto">I can successfully build in parallel with Python 2.7.13, so this problem may be specific to Python 3.</p>