[Numpy-discussion] ATLAS build errors

Matthew Brett matthew.brett at gmail.com
Sat Mar 26 17:05:24 EDT 2016


I'm workon on building manylinux wheels for numpy, and I ran into
unexpected problems with a numpy built against the ATLAS 3.8 binaries
supplied by CentOS 5.

I'm working on the manylinux docker container [1]

To get ATLAS, I'm doing `yum install atlas-devel` which gets the
default CentOS 5 ATLAS packages.

I then build numpy.  Local tests work fine, but when I test on travis,
I get these errors [2]:

ERROR: test_svd_build (test_regression.TestRegression)
Traceback (most recent call last):
  File "/home/travis/build/matthew-brett/manylinux-testing/venv/lib/python2.7/site-packages/numpy/linalg/tests/test_regression.py",
line 56, in test_svd_build
    u, s, vh = linalg.svd(a)
  File "/home/travis/build/matthew-brett/manylinux-testing/venv/lib/python2.7/site-packages/numpy/linalg/linalg.py",
line 1359, in svd
    u, s, vt = gufunc(a, signature=signature, extobj=extobj)
ValueError: On entry to DGESDD parameter number 12 had an illegal value

FAIL: test_lapack (test_build.TestF77Mismatch)
Traceback (most recent call last):
  File "/home/travis/build/matthew-brett/manylinux-testing/venv/lib/python2.7/site-packages/numpy/testing/decorators.py",
line 146, in skipper_func
    return f(*args, **kwargs)
  File "/home/travis/build/matthew-brett/manylinux-testing/venv/lib/python2.7/site-packages/numpy/linalg/tests/test_build.py",
line 56, in test_lapack
AssertionError: Both g77 and gfortran runtimes linked in lapack_lite !
This is likely to
cause random crashes and wrong results. See numpy INSTALL.txt for more

Sure enough, scipy built the same way segfaults or fails to import (see [2]).

I get no errors for an openblas build.

Does anyone recognize these?   How should I modify the build to avoid them?



[1] https://github.com/pypa/manylinux
[2] https://travis-ci.org/matthew-brett/manylinux-testing/jobs/118712090

More information about the NumPy-Discussion mailing list