Haladas Luxgile via llvm-dev
2021-Aug-10 12:01 UTC
[llvm-dev] HowToUseLLJIT example doesn't find targets for this triple.
Hello, I'm trying to run the "HowToUseLLJIT" example in LLVM project, but it results in the message: "Unable to find target for this triple (no targets are registered)". I have been trying to find information on this but I have been unable to find a fix or the reason this happens. Moreover, If i add "InitializeAllTargetInfos();" it results in: "No available targets are compatible with triple 'x86_64-pc-windows-msvc'". I'm using Visual Studio 2019 to compile my project. Please let me know if you need any more info I can provide. Thanks, Guillermo -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20210810/d291a559/attachment.html>
Michael Kruse via llvm-dev
2021-Aug-11 16:29 UTC
[llvm-dev] HowToUseLLJIT example doesn't find targets for this triple.
Typically this is the result of not compiling the target backend. Check the value of CMake's LLVM_TARGETS_TO_BUILD. It should be "X86" or "all". Michael Am Mi., 11. Aug. 2021 um 03:16 Uhr schrieb Haladas Luxgile via llvm-dev <llvm-dev at lists.llvm.org>:> > Hello, > > I'm trying to run the "HowToUseLLJIT" example in LLVM project, but it results in the message: "Unable to find target for this triple (no targets are registered)". > > I have been trying to find information on this but I have been unable to find a fix or the reason this happens. > > Moreover, If i add "InitializeAllTargetInfos();" it results in: "No available targets are compatible with triple 'x86_64-pc-windows-msvc'". > > I'm using Visual Studio 2019 to compile my project. Please let me know if you need any more info I can provide. > > Thanks, > Guillermo > _______________________________________________ > LLVM Developers mailing list > llvm-dev at lists.llvm.org > https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev