Andy via llvm-dev
2018-Jul-01 14:22 UTC
[llvm-dev] Linking Kaleidoscope-8 wants all targets
I am compiling and linking Kaleidoscope sample from 2 to 7 with Code::Blocks, where I have add to compiler settings: `llvm-config --cxxflags` and to linker settings: `llvm-config --ldflags --system-libs --libs core orcjit native` In 2 to 7 is OK, but sample 8 has errors: ||=== Build: Debug in Chapter8 (compiler: LLVM Clang Compiler) ===| obj/Debug/toy.o||In function `llvm::InitializeAllTargetInfos()':| /usr/local/include/llvm/Config/Targets.def|26|undefined reference to `LLVMInitializeAArch64TargetInfo'| /usr/local/include/llvm/Config/Targets.def|27|undefined reference to `LLVMInitializeAMDGPUTargetInfo'| /usr/local/include/llvm/Config/Targets.def|28|undefined reference to `LLVMInitializeARMTargetInfo'| /usr/local/include/llvm/Config/Targets.def|29|undefined reference to ............................... -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20180701/a4126d90/attachment.html>
David Blaikie via llvm-dev
2018-Jul-02 16:53 UTC
[llvm-dev] Linking Kaleidoscope-8 wants all targets
Hey Eric - looks like maybe you & I (when adding this chapter for the debug info tutorial) just made a mistake here initializing all targets rather than only the native target (not like this is doing remote JIT or anything - so I think only the native target should be required)? - Dave On Sun, Jul 1, 2018 at 7:22 AM Andy via llvm-dev <llvm-dev at lists.llvm.org> wrote:> I am compiling and linking Kaleidoscope sample from 2 to 7 with > Code::Blocks, where I have add to compiler settings: `llvm-config > --cxxflags` and to linker settings: `llvm-config --ldflags --system-libs > --libs core orcjit native` > > In 2 to 7 is OK, but sample 8 has errors: > ||=== Build: Debug in Chapter8 (compiler: LLVM Clang Compiler) ===| > obj/Debug/toy.o||In function `llvm::InitializeAllTargetInfos()':| > /usr/local/include/llvm/Config/Targets.def|26|undefined reference to > `LLVMInitializeAArch64TargetInfo'| > /usr/local/include/llvm/Config/Targets.def|27|undefined reference to > `LLVMInitializeAMDGPUTargetInfo'| > /usr/local/include/llvm/Config/Targets.def|28|undefined reference to > `LLVMInitializeARMTargetInfo'| > /usr/local/include/llvm/Config/Targets.def|29|undefined reference to > ............................... > _______________________________________________ > LLVM Developers mailing list > llvm-dev at lists.llvm.org > http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev >-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20180702/41f4a17d/attachment.html>
Eric Christopher via llvm-dev
2018-Jul-02 16:58 UTC
[llvm-dev] Linking Kaleidoscope-8 wants all targets
Yeah, likely. :) On Mon, Jul 2, 2018 at 9:53 AM David Blaikie <dblaikie at gmail.com> wrote:> Hey Eric - looks like maybe you & I (when adding this chapter for the > debug info tutorial) just made a mistake here initializing all targets > rather than only the native target (not like this is doing remote JIT or > anything - so I think only the native target should be required)? > > - Dave > > > On Sun, Jul 1, 2018 at 7:22 AM Andy via llvm-dev <llvm-dev at lists.llvm.org> > wrote: > >> I am compiling and linking Kaleidoscope sample from 2 to 7 with >> Code::Blocks, where I have add to compiler settings: `llvm-config >> --cxxflags` and to linker settings: `llvm-config --ldflags --system-libs >> --libs core orcjit native` >> >> In 2 to 7 is OK, but sample 8 has errors: >> ||=== Build: Debug in Chapter8 (compiler: LLVM Clang Compiler) ===| >> obj/Debug/toy.o||In function `llvm::InitializeAllTargetInfos()':| >> /usr/local/include/llvm/Config/Targets.def|26|undefined reference to >> `LLVMInitializeAArch64TargetInfo'| >> /usr/local/include/llvm/Config/Targets.def|27|undefined reference to >> `LLVMInitializeAMDGPUTargetInfo'| >> /usr/local/include/llvm/Config/Targets.def|28|undefined reference to >> `LLVMInitializeARMTargetInfo'| >> /usr/local/include/llvm/Config/Targets.def|29|undefined reference to >> ............................... >> _______________________________________________ >> LLVM Developers mailing list >> llvm-dev at lists.llvm.org >> http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev >> >-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20180702/63642dfa/attachment.html>