Skip to content

Error when precompiling in Windows #198

@yolhan83

Description

@yolhan83

Hello,

I realize it might be too early for Windows support, but I didn't see an existing issue on this.
In case it hasn't been tested yet, I just wanted to point out that I encountered the following error on Windows during precompilation. It works fine on my wsl though.

version :

Julia Version 1.11.1
Commit 8f5b7ca12a (2024-10-16 10:53 UTC)
Build Info:
  Official https://julialang.org/ release
Platform Info:
  OS: Windows (x86_64-w64-mingw32)
  CPU: 20 × 12th Gen Intel(R) Core(TM) i7-12700H
  WORD_SIZE: 64
  LLVM: libLLVM-16.0.6 (ORCJIT, alderlake)
Threads: 20 default, 0 interactive, 10 GC (on 20 virtual cores)

error :

Precompiling Reactant...
Info Given Reactant was explicitly requested, output will be shown live
ERROR: LoadError: UndefVarError: `libReactantExtra` not defined in `Reactant_jll`
Stacktrace:
 [1] getproperty(x::Module, f::Symbol)
   @ Base .\Base.jl:42
 [2] top-level scope
   @ C:\Users\yolha\.julia\packages\Reactant\rRa4g\src\mlir\MLIR.jl:8
 [3] include(mod::Module, _path::String)
   @ Base .\Base.jl:557
 [4] include(x::String)
   @ Reactant C:\Users\yolha\.julia\packages\Reactant\rRa4g\src\Reactant.jl:1
 [5] top-level scope
   @ C:\Users\yolha\.julia\packages\Reactant\rRa4g\src\Reactant.jl:82
 [6] include
   @ .\Base.jl:557 [inlined]
 [7] 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:2790
 [8] top-level scope
   @ stdin:5
in expression starting at C:\Users\yolha\.julia\packages\Reactant\rRa4g\src\mlir\MLIR.jl:1
in expression starting at C:\Users\yolha\.julia\packages\Reactant\rRa4g\src\Reactant.jl:1
in expression starting at stdin:5
  ✗ Reactant
  0 dependencies successfully precompiled in 4 seconds. 79 already precompiled.

ERROR: The following 1 direct dependency failed to precompile:

Reactant

Failed to precompile Reactant [3c362404-f566-11ee-1572-e11a4b42c853] to "C:\\Users\\yolha\\.julia\\compiled\\v1.11\\Reactant\\jl_E4CF.tmp".
ERROR: LoadError: UndefVarError: `libReactantExtra` not defined in `Reactant_jll`
Stacktrace:
 [1] getproperty(x::Module, f::Symbol)
   @ Base .\Base.jl:42
 [2] top-level scope
   @ C:\Users\yolha\.julia\packages\Reactant\rRa4g\src\mlir\MLIR.jl:8
 [3] include(mod::Module, _path::String)
   @ Base .\Base.jl:557
 [4] include(x::String)
   @ Reactant C:\Users\yolha\.julia\packages\Reactant\rRa4g\src\Reactant.jl:1
 [5] top-level scope
   @ C:\Users\yolha\.julia\packages\Reactant\rRa4g\src\Reactant.jl:82
 [6] include
   @ .\Base.jl:557 [inlined]
 [7] 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:2790
 [8] top-level scope
   @ stdin:5
in expression starting at C:\Users\yolha\.julia\packages\Reactant\rRa4g\src\mlir\MLIR.jl:1
in expression starting at C:\Users\yolha\.julia\packages\Reactant\rRa4g\src\Reactant.jl:1

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions