LLVMSharp icon indicating copy to clipboard operation
LLVMSharp copied to clipboard

Unable to find LLVMInitializeLoongArchTargetInfo on Debian based linux

Open TheoW03 opened this issue 1 year ago • 1 comments

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.

TheoW03 avatar Sep 09 '24 20:09 TheoW03

have you tried using version 16.0.6 of libLLVM? https://www.nuget.org/packages/libLLVM/16.0.6

I think versions of LLVMSharp and libLLVM should be aligned.

davidelettieri avatar Feb 02 '25 16:02 davidelettieri