[LLVMdev] Segmentation fault - Kaleidoscope
Juan Carlos Martinez Santos
juanc.martinez.santos at gmail.com
Wed Jun 17 10:43:43 PDT 2009
Hello,
Maybe my version (LLVM 2.5) is incomplete... now get this error:
toy.cpp:11:38: error: llvm/Target/TargetSelect.h: No such file or directory
How can I get this file?
Regards,
Juan Carlos
On Wed, Jun 17, 2009 at 12:51 PM, Chris Lattner <clattner at apple.com> wrote:
>
> On Jun 17, 2009, at 9:46 AM, Paul Melis wrote:
>
> > FWIW, I'm also suddenly experiencing segfaults in code that used to
> > work
> > a few days ago (I'm using svn). This may be unrelated to the problem
> > described below, but perhaps it's the same thing.
> >
> > In my case it seems that creating an ExecutionEngine has changed. I
> > used
> > to do
> >
> > Module* Mod = makeLLVMModule(); // basically create a gcd
> > function
> > verifyModule(*Mod, PrintMessageAction);
> >
> > ExecutionEngine *EE;
> > EE = ExecutionEngine::create(Mod);
> >
> > but I now get 0x0 for EE. The compile command I'm using is
> >
> > g++ -O3 -I ~/llvm/include/ -L ~/llvm bug.cpp `llvm-config --cxxflags
> > --ldflags --libs core jit native` -o bug
> >
> > I noticed something very recently changed w.r.t. the way LLVM's
> > libraries are built (no more .o files). Could this have something to
> > with it?
>
> I *just* changed this. :)
>
> For JIT applications, please include llvm/Target/TargetSelect.h and
> call the llvm::InitializeNativeTarget() function before creating an EE.
>
> -Chris
> _______________________________________________
> LLVM Developers mailing list
> LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev
>
--
Juan Carlos MartÃnez Santos
242 Foster Drive Apt H
Colonial Townhouse Apartments
Willimantic, CT 06226-1538
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20090617/e8e71792/attachment.html>
More information about the llvm-dev
mailing list