[LLVMdev] cpp program crashes

Zhou Sheng zhousheng00 at gmail.com
Fri Sep 15 18:56:17 PDT 2006


Hi,

Sorry for the newbie question. I downloaded llvm 1.8a and llvm-gcc3.4-binary,
tried out the simple cpp program like this:
#include <iostream>
using std::cout;
using std::endl;

int main()
{
cout << "Hello World" << endl;
return 0;
}

but got the following error:
lli((anonymous namespace)::PrintStackTrace()+0x15)[0x85c4d85]
lli(llvm::JIT::runFunction(llvm::Function*, std::vector<llvm::GenericValue,
std::allocator<llvm::GenericValue> > const&)+0x3d0)[0x81bcce0]
Segmentation fault

My system is Debian-31r2 linux 2.6.8-2-686-smp and gcc version 3.4.4

Thanks
Arthur.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20060916/357b897b/attachment.html>


More information about the llvm-dev mailing list