dotnet / LLVMSharp

LLVM bindings for .NET Standard written in C# using ClangSharp
MIT License
838 stars 95 forks source link

Unable to find LLVMInitializeLoongArchTargetInfo on Debian based linux #226

Open TheoW03 opened 1 week ago

TheoW03 commented 1 week ago

this happens

imagewhen I try to run this on

Debian-based Linux. the exception originates from These 5 functions.

        LLVM.InitializeAllTargetInfos();
        LLVM.InitializeAllTargets();
        LLVM.InitializeAllTargetMCs();
        LLVM.InitializeAllAsmPrinters();
        LLVM.InitializeAllAsmParsers();

the exact version of Linux I'm using is WSL-ubuntu 22.08. but we did test it on other Debian distros and we got the same issue. only when we tested it on Arch it worked.

affected versions

LLVM-Sharp Version 16.0.0 (newest version) LLVM runtime and library version 18.1.6 (the newest one that came out May 20th) I have them all downloaded. and set up correctly.