Skip to content

BUG: OpenBSD/amd64 7.4 doesn't build from source due to missing -lcblas #25041

Closed

Description

@DavidAlphaFox

Describe the issue:

Can't install numpy through pip, because the meson can't detect the blas and lapack correctly.
And I find there aren't any blas.pc and lapack.pc under the /usr/local/lib/pkgconfig.

Reproduce the code example:

pip install numpy==1.26.1

Error message:

No response

Runtime information:

OpenBSD/amd 7.4
Python 3.10

Context for the issue:

The meson can't detect the blas and lapack in OpenBSD.

Activity

  1. rgommers commented on Oct 31, 2023

    @rgommers
    Member

    Thanks @DavidAlphaFox, but we'll need a bit more info than that to be able to help. Questions:

    • You do want/need to build with BLAS/LAPACK support, right?
    • What BLAS and LAPACK are you using, and where are they installed?
    • If it's a system package manager install, are there really no .pc files or can they only not be found?
  2. DavidAlphaFox commented on Oct 31, 2023

    @DavidAlphaFox
    Author

    @rgommers
    Yes I need build with BLAS/LAPACK.
    BLAS and LAPACK comes from OpenBSD's pkg and the are all installed under /usr/local.
    The system package manager doesn't generate the .pc under /usr/local/lib/pkgconfig

  3. rgommers commented on Nov 1, 2023

    @rgommers
    Member

    Thanks for the details. I'm working on a fix for this.

    We don't have an OpenBSD CI job, but we do have a FreeBSD one since recently (here). That doesn't use BLAS though, so I guess we should add that.

    Could you please share the exact pkg invocation for how to install BLAS and LAPACK, including headers if there's a separate -dev package? That would save some trial and error in CI.

  4. DavidAlphaFox commented on Nov 1, 2023

    @DavidAlphaFox
    Author

    on OpenBSD
    pkg_add blas cblas lapack

  5. changed the title [-]BUG: OpenBSD/amd64 7.4 can't install through pip[/-] [+]BUG: OpenBSD/amd64 7.4 doesn't build from source due to missing `-lcblas`[/+] on Nov 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions