Skip to content

julia 1.12 - LLVM extensions library not available #702

Closed
@Thomas008

Description

@Thomas008

When trying to add GPUCompiler in julia 1.12 I get some errors and warnings.
Mainly, the LLVM extensions library does not seem to be available.
Is there any solution?

It is also reportet there.
JuliaLLVM/LLVM.jl#517

┌ 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\T460.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\T460\.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. ? GPUCompiler [ Info: Precompiling GPUCompiler [61eb1bfa-7361-4325-ad38-22787b887f55] ┌ 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 usingdeps/build_local.jl└ @ LLVM C:\Users\T460\.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\T460.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.
┌ Info: Skipping precompilation due to precompilable error. Importing GPUCompiler [61eb1bfa-7361-4325-ad38-22787b887f55].
└ exception = Error when precompiling module, potentially caused by a precompile(false) declaration in the module.
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. ERROR: LoadError: UndefVarError: verbose_stmt_infonot defined inCompiler`
Suggestion: check for spelling errors or missing imports.
Stacktrace:
[1] getproperty(x::Module, f::Symbol)
@ Base .\Base_compiler.jl:47
[2] top-level scope
@ C:\Users\T460.julia\packages\GPUCompiler\kqxyC\src\jlgen.jl:426
[3] include(mapexpr::Function, mod::Module, _path::String)
@ Base .\Base.jl:304
[4] top-level scope
@ C:\Users\T460.julia\packages\GPUCompiler\kqxyC\src\GPUCompiler.jl:35
[5] include(mod::Module, _path::String)
@ Base .\Base.jl:303
[6] __require_prelocked(pkg::Base.PkgId, env::String)
@ Base .\loading.jl:2686
[7] _require_prelocked(uuidkey::Base.PkgId, env::String)
@ Base .\loading.jl:2461
[8] macro expansion
@ .\loading.jl:2389 [inlined]
[9] macro expansion
@ .\lock.jl:376 [inlined]
[10] __require(into::Module, mod::Symbol)
@ Base .\loading.jl:2354
[11] require(into::Module, mod::Symbol)
@ Base .\loading.jl:2330
[12] top-level scope
@ REPL[6]:1
in expression starting at C:\Users\T460.julia\packages\GPUCompiler\kqxyC\src\jlgen.jl:426
in expression starting at C:\Users\T460.julia\packages\GPUCompiler\kqxyC\src\GPUCompiler.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