Skip to content

Instantly share code, notes, and snippets.

@dpo
Created March 26, 2024 17:32
Show Gist options
  • Save dpo/4d66739795dc628b955bafc52fe03aba to your computer and use it in GitHub Desktop.
Save dpo/4d66739795dc628b955bafc52fe03aba to your computer and use it in GitHub Desktop.
~/.julia/environments/nvim-lspconfig ❯ make 13:12:04
TMPDIR=/var/folders/0w/gr6q1p614svb9p0gfmlcfjjr0000gn/T/tmp.7cdZBuv5 && \
cd ${TMPDIR} && \
JULIA_LOAD_PATH=: /opt/homebrew/bin/julia -e 'using Pkg; Pkg.generate("Example")' 2> /dev/null && \
cd Example && \
JULIA_LOAD_PATH=${PWD}:@stdlib /opt/homebrew/bin/julia -e 'using Pkg; Pkg.add(["JSON", "fzf_jll", "Random", "Zlib_jll"])' 2> /dev/null && \
JULIA_LOAD_PATH=${PWD}:@stdlib /opt/homebrew/bin/julia -e 'using Pkg; Pkg.precompile()' 2> /dev/null && \
echo "$PACKAGE_CONTENT" > src/Example.jl && \
JULIA_TRACE_COMPILE=1 /Users/dpo/.local/bin/lvim src/Example.jl && \
rm -rf ${TMPDIR}
JULIA_LOAD_PATH=/Users/dpo/.julia/environments/nvim-lspconfig:/Users/dpo/.julia/environments/nvim-lspconfig/packagecompiler:@stdlib /opt/homebrew/bin/julia -e 'using PackageCompiler; PackageCompiler.create_sysimage(:LanguageServer, sysimage_path="languageserver.dylib", precompile_statements_file="packagecompiler/precompile_statements.jl")'
⠇ [00m:06s] PackageCompiler: compiling incremental system imageSystemError: opening file "/Users/dpo/.julia/environments/nvim-lspconfig/pa⠋ [00m:06s] PackageCompiler: compiling incremental system image
Stacktrace:
⠙ [00m:07s] PackageCompiler: compiling incremental system imagesystemerror(p::String, errno::Int32; extrainfo::Nothing)
@ Base ./error.jl:176
[2] systemerror
@ ./error.jl:175 [inlined]
[3] open(fname::String; lock::Bool, read::Nothing, write::Nothing, create::Nothing, truncate::Nothing, append::Nothing)
@ Base ./iostream.jl:293
[4] open
@ ./iostream.jl:275 [inlined]
[5] #eachline#459
@ ./io.jl:1068 [inlined]
[6] eachline(filename::String)
@ Base ./io.jl:1067
[7] top-level scope
@ /var/folders/0w/gr6q1p614svb9p0gfmlcfjjr0000gn/T/jl_Hs7INUZcDk:68
[8] eval(m::Module, e::Any)
@ Core ./boot.jl:385
[9] top-level scope
@ /var/folders/0w/gr6q1p614svb9p0gfmlcfjjr0000gn/T/jl_Hs7INUZcDk:60
in expression starting at /var/folders/0w/gr6q1p614svb9p0gfmlcfjjr0000gn/T/jl_Hs7INUZcDk:60
✖ [00m:07s] PackageCompiler: compiling incremental system image
ERROR: failed process: Process(`/Users/dpo/.julia/juliaup/julia-1.10.2+0.aarch64.apple.darwin14/bin/julia --color=auto --startup-file=no --pkgimages=no --cpu-target=native --sysimage=/Users/dpo/.julia/juliaup/julia-1.10.2+0.aarch64.apple.darwin14/lib/julia/sys.dylib --project=/Users/dpo/.julia/environments/nvim-lspconfig --output-o=/var/folders/0w/gr6q1p614svb9p0gfmlcfjjr0000gn/T/jl_TmTGjw1Ahe.o /var/folders/0w/gr6q1p614svb9p0gfmlcfjjr0000gn/T/jl_Hs7INUZcDk`, ProcessExited(1)) [1]
Stacktrace:
[1] pipeline_error
@ ./process.jl:565 [inlined]
[2] run(::Cmd; wait::Bool)
@ Base ./process.jl:480
[3] run
@ ./process.jl:477 [inlined]
[4] #20
@ ~/.julia/packages/PackageCompiler/nT5sD/ext/TerminalSpinners.jl:157 [inlined]
[5] spin(f::PackageCompiler.var"#20#22"{Cmd}, s::PackageCompiler.TerminalSpinners.Spinner{Base.TTY})
@ PackageCompiler.TerminalSpinners ~/.julia/packages/PackageCompiler/nT5sD/ext/TerminalSpinners.jl:164
[6] macro expansion
@ ~/.julia/packages/PackageCompiler/nT5sD/ext/TerminalSpinners.jl:157 [inlined]
[7] create_sysimg_object_file(object_file::String, packages::Vector{String}, packages_sysimg::Set{Base.PkgId}; project::String, base_sysimage::String, precompile_execution_file::Vector{String}, precompile_statements_file::Vector{String}, cpu_target::String, script::Nothing, sysimage_build_args::Cmd, extra_precompiles::String, incremental::Bool)
@ PackageCompiler ~/.julia/packages/PackageCompiler/nT5sD/src/PackageCompiler.jl:134
[8] create_sysimg_object_file
@ ~/.julia/packages/PackageCompiler/nT5sD/src/PackageCompiler.jl:311 [inlined]
[9] create_sysimage(packages::Symbol; sysimage_path::String, project::String, precompile_execution_file::Vector{String}, precompile_statements_file::String, incremental::Bool, filter_stdlibs::Bool, cpu_target::String, script::Nothing, sysimage_build_args::Cmd, include_transitive_dependencies::Bool, base_sysimage::Nothing, julia_init_c_file::Nothing, julia_init_h_file::Nothing, version::Nothing, soname::Nothing, compat_level::String, extra_precompiles::String)
@ PackageCompiler ~/.julia/packages/PackageCompiler/nT5sD/src/PackageCompiler.jl:628
[10] top-level scope
@ none:1
make: *** [languageserver.dylib] Error 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment