Skip to content

StaticCompiler for julia v1.12 #177

@Thomas008

Description

@Thomas008

As for julia v.11 (issue 166) StaticCompiler does not work for julia v1.12, because it seem to force an older version of GPUCompiler 0.26.4. I get the error message

There was a PR to get StaticCompiler work for v.12, with GPUCompiler 1.5.x. It does not work?
What would be needed?

In the following is the trace of the error message, when trying to install StaticCompiler in julia 1.12:

┌ Error: LLVM extensions library unavailable for your platform: │ │ x86_64-w64-mingw32-libgfortran5-cxx11-llvm_version+18-julia_version+1.12.0 │ │ LLVM.jl will not be functional. │ │ │ │ If you are using a custom version of LLVM, try building a │ │ custom version of LLVMExtra_jll using deps/build_local.jl│ └ @ LLVM C:\Users\PCUser\.julia\packages\LLVM\bzSzE\src\LLVM.jl:103 │ WARNING: Constructor for type "MethodError" was extended inGPUCompilerwithout explicit qualification or import. │ NOTE: Assumed "MethodError" refers toBase.MethodError. This behavior is deprecated and may differ in future versions.
│ NOTE: This behavior may have differed in Julia versions prior to 1.12.
│ Hint: If you intended to create a new generic function of the same name, use function MethodError end.
│ Hint: To silence the warning, qualify MethodError as Base.MethodError in the method signature or explicitly import Base: MethodError.
│ WARNING: Method definition (::Type{MethodError})(Any, Any) in module Core at boot.jl:446 overwritten in module GPUCompiler at C:\Users\PCUser.julia\packages\GPUCompiler\kqxyC\src\jlgen.jl:38.
│ ERROR: Method overwriting is not permitted during Module precompilation. Use __precompile__(false) to opt-out of precompilation.

┌ LLVM
│ ┌ Warning: LLVM.jl has not been tested with LLVM versions newer than 16.
│ └ @ LLVM.API C:\Users\PCUser.julia\packages\LLVM\bzSzE\src\LLVM.jl:44

┌ GPUCompiler
│ ┌ Error: LLVM extensions library unavailable for your platform:
│ │ x86_64-w64-mingw32-libgfortran5-cxx11-llvm_version+18-julia_version+1.12.0
│ │ LLVM.jl will not be functional.
│ │
│ │ If you are using a custom version of LLVM, try building a
│ │ custom version of LLVMExtra_jll using deps/build_local.jl
│ └ @ LLVM C:\Users\PCUser.julia\packages\LLVM\bzSzE\src\LLVM.jl:103
│ WARNING: Constructor for type "MethodError" was extended in GPUCompiler without explicit qualification or import.
│ NOTE: Assumed "MethodError" refers to Base.MethodError. This behavior is deprecated and may differ in future versions.│ NOTE: This behavior may have differed in Julia versions prior to 1.12. │ Hint: If you intended to create a new generic function of the same name, usefunction MethodError end. │ Hint: To silence the warning, qualify MethodErrorasBase.MethodErrorin the method signature or explicitlyimport Base: MethodError. │ WARNING: Method definition (::Type{MethodError})(Any, Any) in module Core at boot.jl:446 overwritten in module GPUCompiler at C:\Users\PCUser\.julia\packages\GPUCompiler\kqxyC\src\jlgen.jl:38. │ ERROR: Method overwriting is not permitted during Module precompilation. Use precompile(false) to opt-out of precompilation. └

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions