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

YAXArrays fail to precompile #496

Closed
dpabon opened this issue Mar 6, 2025 · 3 comments
Closed

YAXArrays fail to precompile #496

dpabon opened this issue Mar 6, 2025 · 3 comments

Comments

@dpabon
Copy link
Contributor

dpabon commented Mar 6, 2025

I got the following error:

YAXArrays
ERROR: The following 1 direct dependency failed to precompile:

DimensionalDataDiskArraysExt 

Failed to precompile DimensionalDataDiskArraysExt [2c40f38b-acb1-509a-862d-e11c73d2f0db] to "/Net/Groups/BGI/people/dpabon/bin/julia_packages/compiled/v1.11/DimensionalDataDiskArraysExt/jl_baHPE7".
ERROR: Unable to load dependent library /Net/Groups/BGI/people/dpabon/bin/julia-1.11.3/bin/../lib/julia/libstdc++.so.6
Message:/Net/Groups/BGI/people/dpabon/bin/julia-1.11.3/bin/../lib/julia/libstdc++.so.6: failed to map segment from shared objec
Stacktrace:

_precompilepkgs(pkgs::Vector{…}, internal_call::Bool, strict::Bool, warn_loaded::Bool, timing::Bool, _from_loading::Bool, configs::Vector{…}, io::IOContext{…}, fancyprint::Bool, ignore_loaded::Bool) at [precompilation.jl](vscode-file://vscode-app/usr/share/code/resources/app/out/vs/code/electron-sandbox/workbench/workbench.html)

precompilepkgs(pkgs::Vector{…}; internal_call::Bool, strict::Bool, warn_loaded::Bool, timing::Bool, _from_loading::Bool, configs::Pair{…}, io::Base.TTY, fancyprint::Bool, ignore_loaded::Bool) at [precompilation.jl](vscode-file://vscode-app/usr/share/code/resources/app/out/vs/code/electron-sandbox/workbench/workbench.html)

kwcall(::@NamedTuple{}, ::typeof(Base.Precompilation.precompilepkgs), pkgs::Vector{…}) at [precompilation.jl](vscode-file://vscode-app/usr/share/code/resources/app/out/vs/code/electron-sandbox/workbench/workbench.html)

_require(pkg::Base.PkgId, env::String) at [loading.jl](vscode-file://vscode-app/usr/share/code/resources/app/out/vs/code/electron-sandbox/workbench/workbench.html)

__require_prelocked(uuidkey::Base.PkgId, env::String) at [loading.jl](vscode-file://vscode-app/usr/share/code/resources/app/out/vs/code/electron-sandbox/workbench/workbench.html)

#invoke_in_world#3 at [essentials.jl](vscode-file://vscode-app/usr/share/code/resources/app/out/vs/code/electron-sandbox/workbench/workbench.html)

invoke_in_world at [essentials.jl](vscode-file://vscode-app/usr/share/code/resources/app/out/vs/code/electron-sandbox/workbench/workbench.html)

_require_prelocked(uuidkey::Base.PkgId, env::String) at [loading.jl](vscode-file://vscode-app/usr/share/code/resources/app/out/vs/code/electron-sandbox/workbench/workbench.html)

macro expansion at [loading.jl](vscode-file://vscode-app/usr/share/code/resources/app/out/vs/code/electron-sandbox/workbench/workbench.html)

macro expansion at [lock.jl](vscode-file://vscode-app/usr/share/code/resources/app/out/vs/code/electron-sandbox/workbench/workbench.html)

__require(into::Module, mod::Symbol) at [loading.jl](vscode-file://vscode-app/usr/share/code/resources/app/out/vs/code/electron-sandbox/workbench/workbench.html)

#invoke_in_world#3 at [essentials.jl](vscode-file://vscode-app/usr/share/code/resources/app/out/vs/code/electron-sandbox/workbench/workbench.html)

invoke_in_world at [essentials.jl](vscode-file://vscode-app/usr/share/code/resources/app/out/vs/code/electron-sandbox/workbench/workbench.html)

require(into::Module, mod::Symbol) at [loading.jl](vscode-file://vscode-app/usr/share/code/resources/app/out/vs/code/electron-sandbox/workbench/workbench.html)

Some type information was truncated. Use show(err) to see complete types.

@lazarusA
Copy link
Collaborator

lazarusA commented Mar 6, 2025

all good from my side in a new env:

(@v1.11) pkg> st
Status `~/lalonso/julia_pkgs/environments/v1.11/Project.toml`
  [0703355e] DimensionalData v0.29.12
⌃ [295af30f] Revise v3.6.4
  [c21b50f5] YAXArrays v0.6.1
  [0a941bbe] Zarr v0.9.4
(@v1.11) pkg> activate .
  Activating new project at `~/test_yax`

(test_yax) pkg> st
Status `~/test_yax/Project.toml` (empty project)

(test_yax) pkg> add YAXArrays
    Updating registry at `~/lalonso/julia_pkgs/registries/General.toml`
   Resolving package versions...
   Installed DiskArrays ─── v0.4.11
   Installed Requires ───── v1.3.1
   Installed StaticArrays ─ v1.9.13
    Updating `~/test_yax/Project.toml`
  [c21b50f5] + YAXArrays v0.6.1

a little more:

(test_yax) pkg> precompile
Precompiling project...
  1 dependency successfully precompiled in 4 seconds. 142 already precompiled.

julia> using YAXArrays

(test_yax) pkg> add DimensionalData
   Resolving package versions...
    Updating `~/test_yax/Project.toml`
  [0703355e] + DimensionalData v0.29.12
  No Changes to `~/test_yax/Manifest.toml`

(test_yax) pkg> st
Status `~/test_yax/Project.toml`
  [0703355e] DimensionalData v0.29.12
  [c21b50f5] YAXArrays v0.6.1

@felixcremer
Copy link
Member

Could you do precompile explicitly and also what versions are you on?

@dpabon
Copy link
Contributor Author

dpabon commented Mar 6, 2025

after precompile it works. Sorry maybe I missed something in the process.

@dpabon dpabon closed this as completed Mar 6, 2025
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

3 participants