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

Metal does not load any more without error when installation not functional #453

Closed
omlins opened this issue Oct 10, 2024 · 3 comments
Closed

Comments

@omlins
Copy link

omlins commented Oct 10, 2024

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

BFloat16sExt --code-coverage=@/home/runner/work/CellArrays.jl/CellArrays.jl --color=yes --check-bounds=yes --warn-overwrite=yes --depwarn=yes --inline=yes --startup-file=no --track-allocation=none --check-bounds=yes --compiled-modules=yes 

Failed to precompile BFloat16sExt [30729c67-1fb4-564a-af8f-be693f25f210] to "/home/runner/.julia/compiled/v1.11/BFloat16sExt/jl_gVWBL2".
ERROR: LoadError: could not load symbol "sysctlbyname":
/opt/hostedtoolcache/julia/1.11.0/x64/bin/julia: undefined symbol: sysctlbyname
Stacktrace:
 [1] _syscall_version(name::String)
   @ Metal ~/.julia/packages/Metal/hYqUg/src/version.jl:5
 [2] macos_version()
   @ Metal ~/.julia/packages/Metal/hYqUg/src/version.jl:43
 [3] top-level scope
   @ ~/.julia/packages/Metal/hYqUg/ext/BFloat16sExt.jl:7
 [4] include
   @ ./Base.jl:557 [inlined]
 [5] include_package_for_output(pkg::Base.PkgId, input::String, depot_path::Vector{String}, dl_load_path::Vector{String}, load_path::Vector{String}, concrete_deps::Vector{Pair{Base.PkgId, UInt128}}, source::Nothing)
   @ Base ./loading.jl:2806
 [6] top-level scope
   @ stdin:4
in expression starting at /home/runner/.julia/packages/Metal/hYqUg/ext/BFloat16sExt.jl:1
in expression starting at stdin:
in expression starting at /home/runner/work/_actions/julia-actions/julia-runtest/v1/test_harness.jl:9
Error: Process completed with exit code 1.

this is from the CI of CellArrays.jl :
https://github.com/omlins/CellArrays.jl/actions/runs/11271443359/job/31344456428?pr=40#step:6:285

@maleadt This is a similar issue as: JuliaGPU/AMDGPU.jl#685

@christiangnrd
Copy link
Contributor

@omlins Can you give #454 a try and confirm that it fixes the issue?

@omlins
Copy link
Author

omlins commented Oct 10, 2024

@christiangnrd Thanks a lot.
The previous error seems to have disappeared but now appears still:

┌ Error: Metal.jl is only supported on macOS
└ @ Metal /capstor/scratch/cscs/omlins/todi/juliaup/depot/packages/Metal/v48rH/src/initialization.jl:9

@christiangnrd
Copy link
Contributor

That's supposed to be a non-fatal error, so things should keep going after that's displayed.

@maleadt maleadt closed this as completed Oct 10, 2024
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