Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fedora-{26,27,...,34}-minimal: scipy build fails - openblas not found #32746

Closed
mkoeppe opened this issue Oct 23, 2021 · 12 comments
Closed

fedora-{26,27,...,34}-minimal: scipy build fails - openblas not found #32746

mkoeppe opened this issue Oct 23, 2021 · 12 comments

Comments

@mkoeppe
Copy link
Contributor

mkoeppe commented Oct 23, 2021

for example, fedora-34-minimal https://github.com/mkoeppe/sage/runs/3968544625?check_suite_focus=true

Note: CFLAGS, CXXFLAGS and SHAREDFLAGS are taken from distutils,
      so their current settings are ignored.
Installing scipy-1.6.3
Processing /sage/local/var/lib/sage/venv-python3.9.7/var/tmp/sage/build/scipy-1.6.3/src
    Preparing wheel metadata: started
    Running command /sage/local/var/lib/sage/venv-python3.9.7/bin/python3 /sage/local/var/lib/sage/venv-python3.9.7/lib/python3.9/site-packages/pip/_vendor/pep517/in_process/_in_process.py prepare_metadata_for_build_wheel /tmp/tmpatw3swb6
    setup.py:462: UserWarning: Unrecognized setuptools command ('dist_info --egg-base /tmp/pip-modern-metadata-assu7gnc'), proceeding with generating Cython sources and expanding templates
      warnings.warn("Unrecognized setuptools command ('{}'), proceeding with "
    Running from SciPy source directory.
    lapack_opt_info:
[...]
    lapack_info:
      libraries openblas not found in ['/sage/local/var/lib/sage/venv-python3.9.7/lib', '/usr/local/lib64', '/usr/local/lib', '/usr/lib64', '/usr/lib', '/usr/lib/']
      NOT AVAILABLE

    /sage/local/var/lib/sage/venv-python3.9.7/lib/python3.9/site-packages/numpy/distutils/system_info.py:1858: UserWarning:
        Lapack (http://www.netlib.org/lapack/) libraries not found.
        Directories to search for the libraries can be specified in the
        numpy/distutils/site.cfg file (section [lapack]) or by setting
        the LAPACK environment variable.
      return getattr(self, '_calc_info_{}'.format(name))()
    lapack_src_info:
      NOT AVAILABLE

    /sage/local/var/lib/sage/venv-python3.9.7/lib/python3.9/site-packages/numpy/distutils/system_info.py:1858: UserWarning:
        Lapack (http://www.netlib.org/lapack/) sources not found.
        Directories to search for the sources can be specified in the
        numpy/distutils/site.cfg file (section [lapack_src]) or by setting
        the LAPACK_SRC environment variable.
      return getattr(self, '_calc_info_{}'.format(name))()
      NOT AVAILABLE

    Traceback (most recent call last):
      File "/sage/local/var/lib/sage/venv-python3.9.7/lib/python3.9/site-packages/pip/_vendor/pep517/in_process/_in_process.py", line 349, in <module>
        main()
      File "/sage/local/var/lib/sage/venv-python3.9.7/lib/python3.9/site-packages/pip/_vendor/pep517/in_process/_in_process.py", line 331, in main
        json_out['return_val'] = hook(**hook_input['kwargs'])
      File "/sage/local/var/lib/sage/venv-python3.9.7/lib/python3.9/site-packages/pip/_vendor/pep517/in_process/_in_process.py", line 151, in prepare_metadata_for_build_wheel
        return hook(metadata_directory, config_settings)
      File "/sage/local/var/lib/sage/venv-python3.9.7/lib/python3.9/site-packages/setuptools/build_meta.py", line 166, in prepare_metadata_for_build_wheel
        self.run_setup()
      File "/sage/local/var/lib/sage/venv-python3.9.7/lib/python3.9/site-packages/setuptools/build_meta.py", line 258, in run_setup
        super(_BuildMetaLegacyBackend,
      File "/sage/local/var/lib/sage/venv-python3.9.7/lib/python3.9/site-packages/setuptools/build_meta.py", line 150, in run_setup
        exec(compile(code, __file__, 'exec'), locals())
      File "setup.py", line 598, in <module>
        setup_package()
      File "setup.py", line 594, in setup_package
        setup(**metadata)
      File "/sage/local/var/lib/sage/venv-python3.9.7/lib/python3.9/site-packages/numpy/distutils/core.py", line 135, in setup
        config = configuration()
      File "setup.py", line 500, in configuration
        raise NotFoundError(msg)
    numpy.distutils.system_info.NotFoundError: No BLAS/LAPACK libraries found.
    To build Scipy from sources, BLAS & LAPACK libraries need to be installed.
    See site.cfg.example in the Scipy source directory and
    https://docs.scipy.org/doc/scipy/reference/building/index.html for details.
    Preparing wheel metadata: finished with status 'error'

This is another regression caused by #32442 (./configure: Make --with-sage-venv=auto the default).

CC: @dimpase @jhpalmieri

Component: packages: standard

Author: Matthias Koeppe

Branch/Commit: 59d7245

Reviewer: John Palmieri

Issue created by migration from https://trac.sagemath.org/ticket/32746

@mkoeppe mkoeppe added this to the sage-9.5 milestone Oct 23, 2021
@mkoeppe

This comment has been minimized.

@mkoeppe
Copy link
Contributor Author

mkoeppe commented Oct 23, 2021

comment:3

To test the fix: tox -e docker-fedora-34-minimal -- scipy

@mkoeppe
Copy link
Contributor Author

mkoeppe commented Oct 23, 2021

@mkoeppe
Copy link
Contributor Author

mkoeppe commented Oct 23, 2021

New commits:

59d7245build/pkgs/numpy/spkg-install.in: Make sure that site.cfg contains the directories of SAGE_LOCAL

@mkoeppe
Copy link
Contributor Author

mkoeppe commented Oct 23, 2021

Commit: 59d7245

@mkoeppe
Copy link
Contributor Author

mkoeppe commented Oct 23, 2021

Author: Matthias Koeppe

@mkoeppe
Copy link
Contributor Author

mkoeppe commented Oct 23, 2021

comment:6

Replying to @mkoeppe:

To test the fix: tox -e docker-fedora-34-minimal -- scipy

... tested successfully.

@mkoeppe
Copy link
Contributor Author

mkoeppe commented Oct 26, 2021

comment:7

Let's get this in please

@jhpalmieri
Copy link
Member

Reviewer: John Palmieri

@jhpalmieri
Copy link
Member

comment:8

It works for me. Looks good.

@mkoeppe
Copy link
Contributor Author

mkoeppe commented Oct 26, 2021

comment:9

Thank you!

@vbraun
Copy link
Member

vbraun commented Oct 31, 2021

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants