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

Zygote-0.6.64 precompile error with julia-1.9.3 #1457

Closed
voroskoi opened this issue Sep 17, 2023 · 1 comment
Closed

Zygote-0.6.64 precompile error with julia-1.9.3 #1457

voroskoi opened this issue Sep 17, 2023 · 1 comment

Comments

@voroskoi
Copy link

Hi,

I try to install zygote-0.6.64 with julia-1.9.3, but it fails on precompile step with the error below:

julia> Pkg.precompile("Zygote"; strict=true)
Precompiling Zygote
  ✗ Zygote
  0 dependencies successfully precompiled in 16 seconds. 56 already precompiled.

ERROR: The following 1 dependency failed to precompile:

Zygote [e88e6eb3-aa80-5325-afca-941959d7151f]

Failed to precompile Zygote [e88e6eb3-aa80-5325-afca-941959d7151f] to "/home/voroskoi/.julia/compiled/v1.9/Zygote/jl_rZ7rSE".
Illegal inttoptr
          %magicptr = ptrtoint {} addrspace(10)* %242 to i64, !dbg !26

[82350] signal (6.-6): Aborted
in expression starting at /home/voroskoi/.julia/packages/Zygote/4SSHS/src/precompile.jl:13
unknown function (ip: 0x7fd1d868e83c)
raise at /usr/bin/../lib/libc.so.6 (unknown line)
abort at /usr/bin/../lib/libc.so.6 (unknown line)
unknown function (ip: 0x7fd1d7a7dff7)
unknown function (ip: 0x7fd1d7ba8d88)
_ZN4llvm11PassManagerINS_8FunctionENS_15AnalysisManagerIS1_JEEEJEE3runERS1_RS3_ at /usr/bin/../lib/julia/../libLLVM-15.so (unknown line)
unknown function (ip: 0x7fd1d7ba7db8)
_ZN4llvm27ModuleToFunctionPassAdaptor3runERNS_6ModuleERNS_15AnalysisManagerIS1_JEEE at /usr/bin/../lib/julia/../libLLVM-15.so (unknown line)
unknown function (ip: 0x7fd1d7ba85f8)
_ZN4llvm11PassManagerINS_6ModuleENS_15AnalysisManagerIS1_JEEEJEE3runERS1_RS3_ at /usr/bin/../lib/julia/../libLLVM-15.so (unknown line)
unknown function (ip: 0x7fd1d7ba6081)
unknown function (ip: 0x7fd1d7b13f0f)
unknown function (ip: 0x7fd1d7b148ac)
_ZN4llvm3orc16IRTransformLayer4emitESt10unique_ptrINS0_29MaterializationResponsibilityESt14default_deleteIS3_EENS0_16ThreadSafeModuleE at /usr/bin/../lib/julia/../libLLVM-15.so (unknown line)
unknown function (ip: 0x7fd1d7b0baea)
_ZN4llvm3orc31BasicIRLayerMaterializationUnit11materializeESt10unique_ptrINS0_29MaterializationResponsibilityESt14default_deleteIS3_EE at /usr/bin/../lib/julia/../libLLVM-15.so (unknown line)
_ZN4llvm3orc19MaterializationTask3runEv at /usr/bin/../lib/julia/../libLLVM-15.so (unknown line)
unknown function (ip: 0x7fd1d305ac6b)
_ZN4llvm3orc16ExecutionSession22dispatchOutstandingMUsEv at /usr/bin/../lib/julia/../libLLVM-15.so (unknown line)
_ZN4llvm3orc16ExecutionSession17OL_completeLookupESt10unique_ptrINS0_21InProgressLookupStateESt14default_deleteIS3_EESt10shared_ptrINS0_23AsynchronousSymbolQueryEESt8functionIFvRKNS_8DenseMapIPNS0_8JITDylibENS_8DenseSetINS0_15SymbolStringPtrENS_12DenseMapInfoISF_vEEEENSG_ISD_vEENS_6detail12DenseMapPairISD_SI_EEEEEE at /usr/bin/../lib/julia/../libLLVM-15.so (unknown line)
unknown function (ip: 0x7fd1d307cf7e)
_ZN4llvm3orc16ExecutionSession19OL_applyQueryPhase1ESt10unique_ptrINS0_21InProgressLookupStateESt14default_deleteIS3_EENS_5ErrorE at /usr/bin/../lib/julia/../libLLVM-15.so (unknown line)
_ZN4llvm3orc16ExecutionSession6lookupENS0_10LookupKindERKSt6vectorISt4pairIPNS0_8JITDylibENS0_19JITDylibLookupFlagsEESaIS8_EENS0_15SymbolLookupSetENS0_11SymbolStateENS_15unique_functionIFvNS_8ExpectedINS_8DenseMapINS0_15SymbolStringPtrENS_18JITEvaluatedSymbolENS_12DenseMapInfoISI_vEENS_6detail12DenseMapPairISI_SJ_EEEEEEEEESt8functionIFvRKNSH_IS6_NS_8DenseSetISI_SL_EENSK_IS6_vEENSN_IS6_SV_EEEEEE at /usr/bin/../lib/julia/../libLLVM-15.so (unknown line)
_ZN4llvm3orc16ExecutionSession6lookupERKSt6vectorISt4pairIPNS0_8JITDylibENS0_19JITDylibLookupFlagsEESaIS7_EENS0_15SymbolLookupSetENS0_10LookupKindENS0_11SymbolStateESt8functionIFvRKNS_8DenseMapIS5_NS_8DenseSetINS0_15SymbolStringPtrENS_12DenseMapInfoISI_vEEEENSJ_IS5_vEENS_6detail12DenseMapPairIS5_SL_EEEEEE at /usr/bin/../lib/julia/../libLLVM-15.so (unknown line)
_ZN4llvm3orc16ExecutionSession6lookupERKSt6vectorISt4pairIPNS0_8JITDylibENS0_19JITDylibLookupFlagsEESaIS7_EENS0_15SymbolStringPtrENS0_11SymbolStateE at /usr/bin/../lib/julia/../libLLVM-15.so (unknown line)
_ZN4llvm3orc16ExecutionSession6lookupENS_8ArrayRefIPNS0_8JITDylibEEENS0_15SymbolStringPtrENS0_11SymbolStateE at /usr/bin/../lib/julia/../libLLVM-15.so (unknown line)
_ZN4llvm3orc16ExecutionSession6lookupENS_8ArrayRefIPNS0_8JITDylibEEENS_9StringRefENS0_11SymbolStateE at /usr/bin/../lib/julia/../libLLVM-15.so (unknown line)
unknown function (ip: 0x7fd1d7b0f059)
unknown function (ip: 0x7fd1d7b10a69)
unknown function (ip: 0x7fd1d7b11882)
jl_generate_fptr_impl at /usr/bin/../lib/julia/libjulia-codegen.so.1 (unknown line)
jl_compile_method_internal at /usr/bin/../lib/julia/libjulia-internal.so.1 (unknown line)
ijl_apply_generic at /usr/bin/../lib/julia/libjulia-internal.so.1 (unknown line)
#166 at ./none:0
iterate at ./generator.jl:47 [inlined]
collect_to! at ./array.jl:840
collect_to_with_first! at ./array.jl:818
unknown function (ip: 0x7fd196f939f5)
collect at ./array.jl:792
unknown function (ip: 0x7fd196f8e716)
prune! at /home/voroskoi/.julia/packages/IRTools/jcpZw/src/passes/passes.jl:181
|> at ./operators.jl:907 [inlined]
#IR#15 at /home/voroskoi/.julia/packages/IRTools/jcpZw/src/ir/wrap.jl:151 [inlined]
IR at /home/voroskoi/.julia/packages/IRTools/jcpZw/src/ir/wrap.jl:146 [inlined]
code_ir at /home/voroskoi/.julia/packages/Zygote/4SSHS/src/compiler/interface.jl:428
unknown function (ip: 0x7fd196f652e8)
unknown function (ip: 0x7fd1d7c64e2c)
unknown function (ip: 0x7fd1d7c6460a)
unknown function (ip: 0x7fd1d7c6572b)
unknown function (ip: 0x7fd1d7c6660e)
unknown function (ip: 0x7fd1d7c82942)
unknown function (ip: 0x7fd1d7c83359)
ijl_toplevel_eval_in at /usr/bin/../lib/julia/libjulia-internal.so.1 (unknown line)
unknown function (ip: 0x7fd1bebbd6fe)
unknown function (ip: 0x7fd1be86d3b8)
unknown function (ip: 0x7fd1be86d4f2)
unknown function (ip: 0x7fd1be86d50f)
jl_f__call_latest at /usr/bin/../lib/julia/libjulia-internal.so.1 (unknown line)
include at /home/voroskoi/.julia/packages/Zygote/4SSHS/src/Zygote.jl:1 [inlined]
macro expansion at /home/voroskoi/.julia/packages/Requires/Z8rfN/src/Requires.jl:40 [inlined]
precompile at /home/voroskoi/.julia/packages/Zygote/4SSHS/src/Zygote.jl:63
macro expansion at /home/voroskoi/.julia/packages/PrecompileTools/kmH5L/src/workloads.jl:78 [inlined]
top-level scope at /home/voroskoi/.julia/packages/Zygote/4SSHS/src/Zygote.jl:84
unknown function (ip: 0x7fd1d7c82cfc)
unknown function (ip: 0x7fd1d7c83011)
unknown function (ip: 0x7fd1d7c83359)
ijl_toplevel_eval_in at /usr/bin/../lib/julia/libjulia-internal.so.1 (unknown line)
unknown function (ip: 0x7fd1bebbd6fe)
unknown function (ip: 0x7fd1be86d3b8)
unknown function (ip: 0x7fd1be6ab891)
unknown function (ip: 0x7fd1be6abab2)
unknown function (ip: 0x7fd1d7c64e2c)
unknown function (ip: 0x7fd1d7c6460a)
unknown function (ip: 0x7fd1d7c6572b)
unknown function (ip: 0x7fd1d7c6660e)
unknown function (ip: 0x7fd1d7c82942)
unknown function (ip: 0x7fd1d7c83359)
ijl_toplevel_eval_in at /usr/bin/../lib/julia/libjulia-internal.so.1 (unknown line)
unknown function (ip: 0x7fd1bebbd6fe)
unknown function (ip: 0x7fd1bec59fdc)
unknown function (ip: 0x7fd1bec5a49f)
unknown function (ip: 0x7fd1bec5a5a8)
unknown function (ip: 0x7fd1d7cb0ff0)
jl_repl_entrypoint at /usr/bin/../lib/julia/libjulia-internal.so.1 (unknown line)
main at /usr/bin/julia (unknown line)
unknown function (ip: 0x7fd1d8627ccf)
__libc_start_main at /usr/bin/../lib/libc.so.6 (unknown line)
_start at /usr/bin/julia (unknown line)
Allocations: 16079812 (Pool: 16069899; Big: 9913); GC: 24
Stacktrace:
 [1] precompile(pkgs::Vector{Pkg.Types.PackageSpec}; io::Base.TTY, kwargs::Base.Pairs{Symbol, Bool, Tuple{Symbol}, NamedTuple{(:strict,), Tuple{Bool}}})
   @ Pkg.API /usr/share/julia/stdlib/v1.9/Pkg/src/API.jl:156
 [2] #precompile#115
   @ /usr/share/julia/stdlib/v1.9/Pkg/src/API.jl:144 [inlined]
 [3] precompile
   @ /usr/share/julia/stdlib/v1.9/Pkg/src/API.jl:144 [inlined]
 [4] #precompile#114
   @ /usr/share/julia/stdlib/v1.9/Pkg/src/API.jl:143 [inlined]
 [5] top-level scope
   @ REPL[2]:1
julia>

I can reproduce this after removing whole ~/.julia directory and installing just zygote with Pkg.add("Zygote").

This seems to be some code generation/llvm incompatibility issue, but I do not know julia internals, so no idea what additional information could be relevant here. Let me know if I should add something else.

Thanks,

@voroskoi
Copy link
Author

I have found #1435 and JuliaLang/julia#50153

Solution here: https://wiki.archlinux.org/title/Julia

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

1 participant