On Sat, Dec 29, 2012 at 7:30 PM, Journeyer J. Joh <oosaprogrammer at gmail.com> wrote:> Hello Peng Yu and List, > > I have put toy.cpp into github but it has a form of LLVM project > makefile infrastructure. So you can build it together with LLVM > Project source tree. > > git://github.com/Journeyer/klang.git > > There exist many branches and each branch is for each chapter of Kaleidoscope.Hi Journeyer, Thanks! I'm following instructions in the README. But I get the following error when run make -j8 in llvm_obj_dir$. Do you know what is wrong? llvm[4]: Compiling ASTNodes.cpp for Debug+Asserts build In file included from /Users/py/dvcs_src/llvm/projects/klang/lib/AST/ASTNodes.cpp:15: /Users/py/dvcs_src/llvm_obj_dir/projects/klang/../../../llvm/projects/klang/include/klang/Driver/Driver.h:23:10: fatal error: 'llvm/Support/IRBuilder.h' file not found #include "llvm/Support/IRBuilder.h" ^ 1 error generated. -- Regards, Peng
Klang is tested with LLVM 3.1 Header file location is often changed. I guess that's why.. What version of LLVM do you use? 2012/12/30 Peng Yu <pengyu.ut at gmail.com>:> On Sat, Dec 29, 2012 at 7:30 PM, Journeyer J. Joh > <oosaprogrammer at gmail.com> wrote: >> Hello Peng Yu and List, >> >> I have put toy.cpp into github but it has a form of LLVM project >> makefile infrastructure. So you can build it together with LLVM >> Project source tree. >> >> git://github.com/Journeyer/klang.git >> >> There exist many branches and each branch is for each chapter of Kaleidoscope. > > Hi Journeyer, > > Thanks! I'm following instructions in the README. But I get the > following error when run make -j8 in llvm_obj_dir$. Do you know what > is wrong? > > > llvm[4]: Compiling ASTNodes.cpp for Debug+Asserts build > In file included from > /Users/py/dvcs_src/llvm/projects/klang/lib/AST/ASTNodes.cpp:15: > /Users/py/dvcs_src/llvm_obj_dir/projects/klang/../../../llvm/projects/klang/include/klang/Driver/Driver.h:23:10: > fatal error: > 'llvm/Support/IRBuilder.h' file not found > #include "llvm/Support/IRBuilder.h" > ^ > 1 error generated. > > > -- > Regards, > Peng-- ---------------------------------------- Journeyer J. Joh o o s a p r o g r a m m e r a t g m a i l d o t c o m ----------------------------------------
On Sat, Dec 29, 2012 at 10:45 PM, Journeyer J. Joh <oosaprogrammer at gmail.com> wrote:> Klang is tested with LLVM 3.1 > Header file location is often changed. I guess that's why.. > > What version of LLVM do you use?I use the lastest one from github. ~/dvcs_src/llvm/.git$ cat config ... [remote "origin"] url = https://github.com/llvm-mirror/llvm.git fetch = +refs/heads/*:refs/remotes/origin/* -- Regards, Peng
On Sat, Dec 29, 2012 at 9:45 PM, Journeyer J. Joh <oosaprogrammer at gmail.com> wrote:> Klang is tested with LLVM 3.1 > Header file location is often changed. I guess that's why..I think that klang should be based on the latest SVN/git version of LLVM. -- Sean Silva