Hi,<br><br>i used CVS to checkout the source of llvm and llvm-gcc, compiled and built them on my machine successfully.<br><br>i tried a c-language hello program, it was OK.<br><br>But when i tried a c++-language hello program, i got:
<br><br>~/project/llvm/examples$ llvm-g++ t3.cc -o t3<br>gccld: /developer/zsth/project/llvm/src/llvm/lib/Analysis/IPA/CallGraph.cpp:277:  void llvm::CallGraphNode::removeCallEdgeTo(llvm::CallGraphNode*): Assertion `i && "Cannot find callee to remove!"' failed.
<br>gccld((anonymous namespace)::PrintStackTrace()+0x1a)[0x84eb812]<br>gccld((anonymous namespace)::SignalHandler(int)+0x110)[0x84ebb3a]<br>[0xffffe420]<br>/lib/libc.so.6(abort+0x103)[0x9226e3]<br>/lib/libc.so.6(__assert_fail+0xfd)[0x91aabd]
<br>gccld(llvm::CallGraphNode::removeCallEdgeTo(llvm::CallGraphNode*)+0x41)[0x83c1ac d]<br>gccld((anonymous namespace)::PruneEH::DeleteBasicBlock(llvm::BasicBlock*)+0x175) [0x838c82f]<br>gccld((anonymous namespace)::PruneEH::SimplifyFunction(llvm::Function*)+0x2cf)[0 x838cc55]
<br>gccld((anonymous namespace)::PruneEH::runOnSCC(std::vector<llvm::CallGraphNode*,  std::allocator<llvm::CallGraphNode*> > const&)+0x6e)[0x838cefe]<br>gccld(llvm::CallGraphSCCPass::runOnModule(llvm::Module&)+0x84)[0x83c430a]
<br>gccld(llvm::ModulePassManager::runPass(llvm::ModulePass*, llvm::Module*)+0x1f)[0 x84761ef]<br>gccld(llvm::PassManagerT<llvm::MTraits>::runPasses(llvm::Module*, std::map<llvm: :Pass*, std::vector<llvm::Pass*, std::allocator<llvm::Pass*> >, std::less<llvm:: Pass*>, std::allocator<std::pair<llvm::Pass* const, std::vector<llvm::Pass*, std ::allocator<llvm::Pass*> > > > >&)+0x12a)[0x8488a10]
<br>gccld(llvm::PassManagerT<llvm::MTraits>::runOnUnit(llvm::Module*)+0x184)[0x848a2 dc]<br>gccld(llvm::ModulePassManager::runOnModule(llvm::Module&)+0x23)[0x84737fb]<br>gccld(llvm::PassManager::run(llvm::Module&)+0x23)[0x8473a17]
<br>gccld(llvm::GenerateBytecode(llvm::Module*, int, bool, std::basic_ostream<char, std::char_traits<char> >*)+0x27c)[0x82d848c]<br>gccld(main+0xaad)[0x82dcdd3]<br>/lib/libc.so.6(__libc_start_main+0xdc)[0x90e7e4]
<br>gccld(__gxx_personality_v0+0x145)[0x82d7b91]<br>llvm-g++: Internal error: Aborted (program gccld)<br>Please submit a full bug report.<br>See <URL:<a href="http://llvm.cs.uiuc.edu">http://llvm.cs.uiuc.edu</a>> for instructions.
<br><br>Thanks,<br>Sheng.<br><br>