Skip to content

lapack linker failure with CMake when using xt::linalg::norm #259

Open

Description

@KrisThielemans

I have a CMake based project that uses xtensor/xtensor-blas. I added

target_link_libraries(petsird_helpers
  INTERFACE
    xtensor-blas
)

I get

`undefined reference to `sgesdd_'

Indeed, $CONDA_PREFIX/lib/cmake/xtensor-blas/xtensor-blasTargets.cmake mentions neither blas or lapack. This seems like a mistake to me?

I've installed everything via conda-forge, adding xtensor>=0.24.2 and xtensor-blas (via this feedstock). here are some dependencies that got installed (which seems fine)

  - blas-devel=3.11.0=7_h1ea3ea9_openblas
  - libblas=3.11.0=7_h4a7cf45_openblas
  - libcblas=3.11.0=7_h0358290_openblas
  - liblapack=3.11.0=7_h47877c9_openblas
  - liblapacke=3.11.0=7_h6ae95b6_openblas
  - libopenblas=0.3.33=pthreads_h94d23a6_0
  - openblas=0.3.33=pthreads_h6ec200e_0
  - xtensor=0.27.1=h171cf75_0
  - xtensor-blas=0.23.0=hb700be7_0

Error is similar to #119 #219, but you'd expect that CMake resolves all this.

Activity

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions