Hello, I just install the new newest version of LLVM. When I ran the hello.c example I got the below message. Somebody has an idea what is wrong? The problem is just with lli, the other commands worked as I expected. ********************** :~/LLVM/my-test$ lli hello.bc Tried to execute an unknown external function: i32 (i8*)* puts 0 lli 0x0861fab8 Stack dump: 0. Program arguments: lli hello.bc Aborted ********************** Thanks in advance. -- Juan Carlos -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20090625/a227beed/attachment.html>
Jello Juan, The interpreter is quite useless in its current state. Try using a JIT compiler for you computer from the lli command and it should work. --Sam> >From: Juan Carlos Martinez Santos <juanc.martinez.santos at gmail.com> >To: LLVM Developers Mailing List <llvmdev at cs.uiuc.edu> >Sent: Thursday, June 25, 2009 1:04:17 PM >Subject: [LLVMdev] Problems with lli and hello.c > >>Hello, > >I just install the new newest version of LLVM. When I ran the hello.c example I got the below message. Somebody has an idea what is wrong? The problem is just with lli, the other commands worked as I expected. > >********************** >:~/LLVM/my-test$ lli hello.bc >Tried to execute an unknown external function: i32 (i8*)* puts >0 lli 0x0861fab8 >Stack dump: >0. Program arguments: lli hello.bc >Aborted >********************** > >Thanks in advance. > >-- >Juan Carlos >-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20090625/2d073abc/attachment.html>
Thanks. On Thu, Jun 25, 2009 at 2:44 PM, Samuel Crow <samuraileumas at yahoo.com>wrote:> Jello Juan, > > The interpreter is quite useless in its current state. Try using a JIT > compiler for you computer from the lli command and it should work. > > --Sam > > > *From:* Juan Carlos Martinez Santos <juanc.martinez.santos at gmail.com> > *To:* LLVM Developers Mailing List <llvmdev at cs.uiuc.edu> > *Sent:* Thursday, June 25, 2009 1:04:17 PM > *Subject:* [LLVMdev] Problems with lli and hello.c > > Hello, > > I just install the new newest version of LLVM. When I ran the hello.c > example I got the below message. Somebody has an idea what is wrong? The > problem is just with lli, the other commands worked as I expected. > > ********************** > :~/LLVM/my-test$ lli hello.bc > Tried to execute an unknown external function: i32 (i8*)* puts > 0 lli 0x0861fab8 > Stack dump: > 0. Program arguments: lli hello.bc > Aborted > ********************** > > Thanks in advance. > > -- > Juan Carlos > > > > _______________________________________________ > 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/20090625/209a77e3/attachment.html>