Skip to content

Old version of C binaries called by Julia #176

Description

@bemilio

Hi Daniel,

I believe that resolving the Julia interface via the standard package manager makes it loads an old version of the .so binaries.
This creates problems on some AVI problems, as there was a relevant debug commit about 3 months ago.

I attach a problematic AVI (obtained by an MPC problem I am working on), a Project.toml and a debug script used to reproduce the error:
Archive.zip

The AVI is solved correctly when manually compiling the C library and copying libdaqp.so in the Julia interface folder (which overrides the Julia interface looking for a downloaded library), thus making me suspicious that, unless you override it manually, the Julia interface loads an old version of the library.

To reproduce the problem:

  • Put the content of the .zip in the subfolder debug of DAQP
  • Set the project to development: julia --project=./debug -e 'using Pkg; Pkg.develop(path="./interfaces/daqp-julia")'
  • run the script: you should get exitflag = -4 (status = Iteration_Limit)
  • build the library with cmake --build build, then copy build/libdaqp.so in the `interfaces/daqp-julia'
  • Now the problem should be correctly solved

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

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions