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

precompile issue #303

Closed
alok opened this issue Apr 6, 2021 · 14 comments
Closed

precompile issue #303

alok opened this issue Apr 6, 2021 · 14 comments

Comments

@alok
Copy link

alok commented Apr 6, 2021

Running julia nightly on MACOS 10.15, but that's using a download of the official nightly binaries. ]add DifferentialEquations gave this issue when it got to precompiling Sundials:

ERROR: LoadError: InitError: could not load library "/Users/alokbeniwal/.julia/artifacts/bd8ae81b8657ac029ad0b2592aaba09a79121a96/lib/libsundials_sunlinsolklu.3.2.0.dylib"
dlopen(/Users/alokbeniwal/.julia/artifacts/bd8ae81b8657ac029ad0b2592aaba09a79121a96/lib/libsundials_sunlinsolklu.3.2.0.dylib, 1): Library not loaded: @rpath/libsuitesparseconfig.5.4.0.dylib
  Referenced from: /Users/alokbeniwal/.julia/artifacts/bd8ae81b8657ac029ad0b2592aaba09a79121a96/lib/libsundials_sunlinsolklu.3.2.0.dylib
  Reason: image not found
@ChrisRackauckas
Copy link
Member

Try doing ]build Sundials again. Looks like it may have not downloaded. Why such an old version? Are you on Julia v.1.6?

@alok
Copy link
Author

alok commented Apr 6, 2021 via email

@ChrisRackauckas
Copy link
Member

If you're using the nightly it's on you to debug it. That could be a BB issue or something.

@alok
Copy link
Author

alok commented Apr 6, 2021 via email

@ChrisRackauckas
Copy link
Member

BinaryBuilder. I am not sure whether BinaryProvider.jl is updated for v1.7. But again, v1.7 is only for people developing the packages so I assume that if you're using it you're likely debugging these packages. Otherwise, use the stable release.

@ivaquero
Copy link

ivaquero commented Jun 24, 2021

Hi, @ChrisRackauckas. I ran Julia v1.6.1 on MACOS 10.15 and tried to precompile DifferentialEquations, but failed due to LoadError of Sundials. The message is

LoadError: InitError: could not load library "/Users/integrator/.julia/artifacts/bd8ae81b8657ac029ad0b2592aaba09a79121a96/lib/libsundials_sunlinsolklu.3.2.0.dylib"
dlopen(/Users/integrator/.julia/artifacts/bd8ae81b8657ac029ad0b2592aaba09a79121a96/lib/libsundials_sunlinsolklu.3.2.0.dylib, 1): Library not loaded: @rpath/libsuitesparseconfig.5.4.0.dylib
  Referenced from: /Users/integrator/.julia/artifacts/bd8ae81b8657ac029ad0b2592aaba09a79121a96/lib/libsundials_sunlinsolklu.3.2.0.dylib
  Reason: image not found
....

image

image

I am sure how to solve this. Can I precompile Sundials using a local file? What do you suggest? Rollback to a previous version?

BTW, DifferentialEquations.jl is quite important to me.

@ChrisRackauckas
Copy link
Member

What CPU? versioninfo()?

@ivaquero
Copy link

ivaquero commented Jun 24, 2021

What CPU? versioninfo()?

Is my CPU too old?

image

@staticfloat
Copy link
Contributor

@integzz can you create a new project and add Sundials_jll to it, to see if the latest version works for you?

Your error mentions an inability to load libsuitesparseconfig.5.4.0.dylib. This should be provided by the default Julia installation. Can you show me the output of:

julia> using Libdl
       filter(Libdl.dllist()) do f
       occursin("suite", f)
       end
2-element Vector{String}:
 "/Users/julia/dist/x86_64/julia-1.6.1/lib/julia/./libsuitesparseconfig.5.4.0.dylib"
 "/Users/julia/dist/x86_64/julia-1.6.1/lib/julia/libsuitesparse_wrapper.dylib"

@ivaquero
Copy link

ivaquero commented Jun 25, 2021

Sundials_jll

It seems no...

image

However, there is libsuitesparseconfig whose version is 5.10. How can I solve this problem?

image

Alright, I uninstalled the binary version of Julia and installed the Cask one, problems solved.

Thank you all the same.

@giordano
Copy link
Contributor

@integzz could you please paste the output here, quoting it in triple backquotes

```
like this
```

? Screenshots are not very useful.

That said, the problem is that you're loading a libsuitesparseconfig from somewhere else. Do you have the environment variable DYLD_FALLBACK_LIBRARY_PATH set to some special values? You can see that inside julia with

ENV["DYLD_FALLBACK_LIBRARY_PATH"]

@ivaquero
Copy link

@integzz could you please paste the output here, quoting it in triple backquotes


```

like this

```

? Screenshots are not very useful.

That said, the problem is that you're loading a libsuitesparseconfig from somewhere else. Do you have the environment variable DYLD_FALLBACK_LIBRARY_PATH set to some special values? You can see that inside julia with

ENV["DYLD_FALLBACK_LIBRARY_PATH"]

I am truly sorry. I have reinstalled Julia from Homebrew Cask instead of the previous binary version (from Homebrew core, compiled by cmake, llvm and gcc). Currently, the error has disappeared. And I don't want to reproduce it.

The error was raised, because the SuiteSparse has a higher version. I think the brew manifest needs to be added some constraints to guarantee a right version of every dependency.

@staticfloat
Copy link
Contributor

The error was raised, because the SuiteSparse has a higher version. I think the brew manifest needs to be added some constraints to guarantee a right version of every dependency.

Yep, that looks like the issue! For the record, we highly recommend using the official https://julialang.org binaries, they will have all the dependency versions set to work properly. :)

@ChrisRackauckas
Copy link
Member

Fantastic.

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

No branches or pull requests

5 participants