Giter VIP home page Giter VIP logo

Comments (4)

shonfeder avatar shonfeder commented on June 18, 2024 1

Thanks for the pointer, @mseri!

Here are notes on what I've done to get the install working for future searchers:

By looking at https://github.com/owlbarn/owl/blob/48434ea744d8e5f488a56bb06ecd15659c58f186/Dockerfile#L31 I was able to infer that the "right paths" for the CFLAGS variable should at least include the openblas header files.

On my system, after installing openblas via pacman, these were located at /usr/include/openblas.

The working invocation for opam, therefore, was

CFLAGS="-I/usr/include/openblas" opam install owl

CFLAGS was not set at all on my system. Is it expected to be? Or are users meant to know that they need to set this variable to install the package?

perhaps we should just use pkg-config if manjaro ships the pc files

The openblas package does indeed ship with a blas.pc file, and this works on my system:

$ pkg-config --cflags blas
-I/usr/include/openblas

from opam-repository.

mseri avatar mseri commented on June 18, 2024

If you run it with CFLAGS set to the right paths it should work

from opam-repository.

mseri avatar mseri commented on June 18, 2024

Otherwise we may need to check where openblas is installed in manjaro and fix it (perhaps we should just use pkg-config if manjaro ships the pc files)

from opam-repository.

mseri avatar mseri commented on June 18, 2024

I would suggest to submit a new version of the conf-blas package doing

build: ["pkg-config" "--exists" "--print-errors" "blas"]

for all the distributions that ship the pc file for blas.
owl uses pkg-config internally afaik, so this should solve the issue

from opam-repository.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.