Any reason you are using 1.10.2 (current release is 1.10.5)?
I just checked and for me precompilation of GLMakie on Win11 WSL2 (Ubuntu) fails as expected with the warning that GLFW couldn't create an OpenGL window (as I donβt have any graphics support set up for WSL2)
When I create a new env and add GLMakie the error is
err
PkgPrecompileError: The following 1 direct dependency failed to precompile:
GLMakie [e9467ef8-e4e7-5192-8a1a-b1aee30e663a]
Failed to precompile GLMakie [e9467ef8-e4e7-5192-8a1a-b1aee30e663a] to "/home/lgmendes/.julia/compiled/v1.10/GLMakie/jl_67cvph".
[3110179] signal (11.1): Segmentation fault
in expression starting at /home/lgmendes/.julia/packages/Makie/8h0bl/precompile/shared-precompile.jl:4
unknown function (ip: 0x7f5182e17a96)
unknown function (ip: (nil))
Allocations: 39523406 (Pool: 39498662; Big: 24744); GC: 6
However, with the Julia 1.11.1 and WSL2 (tested in two different workstations) I have the following errors:
julia> err
PkgPrecompileError: The following 1 direct dependency failed to precompile:
GLMakie
Failed to precompile GLMakie [e9467ef8-e4e7-5192-8a1a-b1aee30e663a] to "/home/lgmendes/.julia/compiled/v1.11/GLMakie/jl_yTSWk7".
MESA: error: ZINK: failed to choose pdev
glx: failed to create drisw screen
D3D12: Removing Device.
[2365] signal 11 (128): Segmentation fault
in expression starting at /home/lgmendes/.julia/packages/GLMakie/JHrMq/src/precompiles.jl:15
realloc at /lib/x86_64-linux-gnu/libc.so.6 (unknown line)
unknown function (ip: 0x7f894f67e99c)
unknown function (ip: 0x7f89501b9532)
unknown function (ip: 0x7f89501b5856)
unknown function (ip: 0x7f894f722932)
unknown function (ip: 0x7f894f6b9459)
unknown function (ip: 0x7f894f6b9b88)
unknown function (ip: 0x7f894f6fe891)
unknown function (ip: 0x7f894f6403da)
unknown function (ip: 0x7f899427f244)
unknown function (ip: 0x7f89942819a0)
glXDestroyContext at /home/lgmendes/.julia/artifacts/37dda4e57d9de95c99d1f8c6b3d8f4eca88c39a2/lib/libGLX.so.0 (unknown line)
destroyContextGLX at /home/lgmendes/.julia/artifacts/3643539f491c217e13c1595daad81dd1426fba07/lib/libglfw.so (unknown line)
_glfwDestroyWindowX11 at /home/lgmendes/.julia/artifacts/3643539f491c217e13c1595daad81dd1426fba07/lib/libglfw.so (unknown line)
glfwDestroyWindow at /home/lgmendes/.julia/artifacts/3643539f491c217e13c1595daad81dd1426fba07/lib/libglfw.so (unknown line)
DestroyWindow at /home/lgmendes/.julia/packages/GLFW/wmoTL/src/glfw3.jl:581 [inlined]
destroy! at /home/lgmendes/.julia/packages/GLMakie/JHrMq/src/glwindow.jl:212
destroy! at /home/lgmendes/.julia/packages/GLMakie/JHrMq/src/screen.jl:645
unknown function (ip: 0x7f89a6199092)
#closeall#66 at /home/lgmendes/.julia/packages/GLMakie/JHrMq/src/screen.jl:695
closeall at /home/lgmendes/.julia/packages/GLMakie/JHrMq/src/screen.jl:680 [inlined]
macro expansion at /home/lgmendes/.julia/packages/GLMakie/JHrMq/src/precompiles.jl:50 [inlined]
macro expansion at /home/lgmendes/.julia/packages/PrecompileTools/L8A3n/src/workloads.jl:78 [inlined]
macro expansion at /home/lgmendes/.julia/packages/GLMakie/JHrMq/src/precompiles.jl:18 [inlined]
macro expansion at /home/lgmendes/.julia/packages/PrecompileTools/L8A3n/src/workloads.jl:140 [inlined]
top-level scope at /home/lgmendes/.julia/packages/GLMakie/JHrMq/src/precompiles.jl:16
jl_toplevel_eval_flex at /cache/build/builder-demeter6-6/julialang/julia-master/src/toplevel.c:934
jl_toplevel_eval_flex at /cache/build/builder-demeter6-6/julialang/julia-master/src/toplevel.c:886
ijl_toplevel_eval_in at /cache/build/builder-demeter6-6/julialang/julia-master/src/toplevel.c:994
eval at ./boot.jl:430 [inlined]
include_string at ./loading.jl:2643
_include at ./loading.jl:2703
include at ./Base.jl:557
jfptr_include_46643.1 at /home/lgmendes/.julia/juliaup/julia-1.11.1+0.x64.linux.gnu/lib/julia/sys.so (unknown line)
jl_apply at /cache/build/builder-demeter6-6/julialang/julia-master/src/julia.h:2157 [inlined]
jl_f__call_latest at /cache/build/builder-demeter6-6/julialang/julia-master/src/builtins.c:875
include at /home/lgmendes/.julia/packages/GLMakie/JHrMq/src/GLMakie.jl:1
unknown function (ip: 0x7f89a610ada2)
jl_apply at /cache/build/builder-demeter6-6/julialang/julia-master/src/julia.h:2157 [inlined]
do_call at /cache/build/builder-demeter6-6/julialang/julia-master/src/interpreter.c:126
eval_value at /cache/build/builder-demeter6-6/julialang/julia-master/src/interpreter.c:223
eval_stmt_value at /cache/build/builder-demeter6-6/julialang/julia-master/src/interpreter.c:174 [inlined]
eval_body at /cache/build/builder-demeter6-6/julialang/julia-master/src/interpreter.c:663
jl_interpret_toplevel_thunk at /cache/build/builder-demeter6-6/julialang/julia-master/src/interpreter.c:821
jl_toplevel_eval_flex at /cache/build/builder-demeter6-6/julialang/julia-master/src/toplevel.c:943
jl_eval_module_expr at /cache/build/builder-demeter6-6/julialang/julia-master/src/toplevel.c:215 [inlined]
jl_toplevel_eval_flex at /cache/build/builder-demeter6-6/julialang/julia-master/src/toplevel.c:743
jl_toplevel_eval_flex at /cache/build/builder-demeter6-6/julialang/julia-master/src/toplevel.c:886
ijl_toplevel_eval_in at /cache/build/builder-demeter6-6/julialang/julia-master/src/toplevel.c:994
eval at ./boot.jl:430 [inlined]
include_string at ./loading.jl:2643
_include at ./loading.jl:2703
include at ./Base.jl:557 [inlined]
include_package_for_output at ./loading.jl:2790
jfptr_include_package_for_output_70632.1 at /home/lgmendes/.julia/juliaup/julia-1.11.1+0.x64.linux.gnu/lib/julia/sys.so (unknown line)
jl_apply at /cache/build/builder-demeter6-6/julialang/julia-master/src/julia.h:2157 [inlined]
do_call at /cache/build/builder-demeter6-6/julialang/julia-master/src/interpreter.c:126
eval_value at /cache/build/builder-demeter6-6/julialang/julia-master/src/interpreter.c:223
eval_stmt_value at /cache/build/builder-demeter6-6/julialang/julia-master/src/interpreter.c:174 [inlined]
eval_body at /cache/build/builder-demeter6-6/julialang/julia-master/src/interpreter.c:663
jl_interpret_toplevel_thunk at /cache/build/builder-demeter6-6/julialang/julia-master/src/interpreter.c:821
jl_toplevel_eval_flex at /cache/build/builder-demeter6-6/julialang/julia-master/src/toplevel.c:943
jl_toplevel_eval_flex at /cache/build/builder-demeter6-6/julialang/julia-master/src/toplevel.c:886
ijl_toplevel_eval_in at /cache/build/builder-demeter6-6/julialang/julia-master/src/toplevel.c:994
eval at ./boot.jl:430 [inlined]
include_string at ./loading.jl:2643
include_string at ./loading.jl:2653 [inlined]
exec_options at ./client.jl:321
_start at ./client.jl:531
jfptr__start_72144.1 at /home/lgmendes/.julia/juliaup/julia-1.11.1+0.x64.linux.gnu/lib/julia/sys.so (unknown line)
jl_apply at /cache/build/builder-demeter6-6/julialang/julia-master/src/julia.h:2157 [inlined]
true_main at /cache/build/builder-demeter6-6/julialang/julia-master/src/jlapi.c:900
jl_repl_entrypoint at /cache/build/builder-demeter6-6/julialang/julia-master/src/jlapi.c:1059
main at /cache/build/builder-demeter6-6/julialang/julia-master/cli/loader_exe.c:58
unknown function (ip: 0x7f89bd3fc1c9)
__libc_start_main at /lib/x86_64-linux-gnu/libc.so.6 (unknown line)
unknown function (ip: 0x4010b8)
Allocations: 127200612 (Pool: 127193532; Big: 7080); GC: 3