Vladimir Merzliakov
2005-Feb-05 21:24 UTC
[LLVMdev] Improving Makefile.rules header install rules [PATCH]
>> Is attached patch acceptable? > > Looks great, applied, thanks! > http://mail.cs.uiuc.edu/pipermail/llvm-commits/Week-of-Mon-20050131/023931.htmlThanks!>> Also I have in Makefile.rules (but not include in patch) some >> modification for simplify used common Makefile.rules in LLVM projects and >> non-LLVM project (guarding some LLVM specific parts by ifdef >> LLVM_OBJ_ROOT/LLVM_SRC_ROOT vars).At this moment I am test ability use installed LLVM version to build project instead requare have builded LLVM object dir. And i have problem with installed LLVM include dir. Makefile.rules install only $(PROJ_SRC_ROOT)/include (including *.in files) and ignore headers in $(PROJ_OBJ_ROOT)/include As result installed LLVM does't have all headers for building external projects, for example, llvm/ADT/iterator Proposed patch attached. It tested making full LLVM build, install and uninstall. Vladimir -------------- next part -------------- A non-text attachment was scrubbed... Name: Makefile.rules.patch Type: application/octet-stream Size: 1418 bytes Desc: not available URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20050206/5b9c1a5b/attachment.obj>
Tanu Sharma
2005-Feb-07 13:46 UTC
[LLVMdev] Segmentation Fault(Modifying BasicBlockPlacement.cpp)
Hi, I have been trying to randomize blocks in a program and modified "BasicBlockPlacement.cpp" for the purpose but getting segmentation fault.I am not able to determine the problem.Can anyone please decrypt these error messages or suggest what might be the possible cause of failure? ----------------------------------------------------------------------------------------------------- opt((anonymous namespace)::PrintStackTrace()+0x18)[0x8691968] opt((anonymous namespace)::SignalHandler(int)+0xd8)[0x8691bc8] /lib/tls/libc.so.6[0x688a48] opt(llvm::BasicBlock::getNext()+0x6)[0x83d36d0] opt(llvm::SymbolTableListTraits<llvm::BasicBlock, llvm::Function, llvm::Function, llvm::ilist_traits<llvm::BasicBlock> >::getNext(llvm::BasicBlock*)+0x11)[0x83d36c5] opt(llvm::ilist_iterator<llvm::BasicBlock>::operator++()+0x17)[0x83d011d] opt(llvm::ilist_iterator<llvm::BasicBlock>::operator++(int)+0x1c)[0x849c64e] /home/tsharma/ankur/llvm/Debug/lib/LLVMHello.so((anonymous namespace)::Hello::PlaceBlocks(llvm::BasicBlock*)+0x196)[0x115616] /home/tsharma/ankur/llvm/Debug/lib/LLVMHello.so((anonymous namespace)::Hello::runOnFunction(llvm::Function&)+0x68)[0x115450] opt(llvm::PassManagerTraits<llvm::Function>::runPass(llvm::FunctionPass*, llvm::Function*)+0x1b)[0x8645e0b] opt(llvm::PassManagerT<llvm::Function>::runOnUnit(llvm::Function*)+0x5c5)[0x8645739] opt(llvm::PassManagerTraits<llvm::Function>::runOnFunction(llvm::Function&)+0x1b)[0x86463af] opt(llvm::FunctionPass::runOnModule(llvm::Module&)+0xa4)[0x85ef606] opt(llvm::PassManagerTraits<llvm::Module>::runPass(llvm::ModulePass*, llvm::Module*)+0x1b)[0x8640f7b] opt(llvm::PassManagerT<llvm::Module>::runOnUnit(llvm::Module*)+0x5c5)[0x863ff8b] opt(llvm::PassManagerTraits<llvm::Module>::runOnModule(llvm::Module&)+0x1b)[0x8642f0d] opt(llvm::PassManager::run(llvm::Module&)+0x1f)[0x85ee965] opt(main+0x988)[0x83b225c] /lib/tls/libc.so.6(__libc_start_main+0xe3)[0x675e33] opt(__gxx_personality_v0+0x111)[0x83b1751] Segmentation fault ------------------------------------------------------------------------------------------------------ Thanks Tanu --------------------------------- Do you Yahoo!? Yahoo! Mail - Helps protect you from nasty viruses. -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20050207/0cd45ec4/attachment.html>
Chris Lattner
2005-Feb-07 16:34 UTC
[LLVMdev] Segmentation Fault(Modifying BasicBlockPlacement.cpp)
On Mon, 7 Feb 2005, Tanu Sharma wrote:> I have been trying to randomize blocks in a program and modified > "BasicBlockPlacement.cpp" for the purpose but getting segmentation > fault.I am not able to determine the problem.Can anyone please decrypt > these error messages or suggest what might be the possible cause of > failure?I'd be happy to fix this, but I need a proper testcase and instructions to reproduce it. Can you please send me the bytecode file and commands you are using to do this? Also, have you tried out bugpoint? Please give it a try first, as it will probably shrink the testcase down to something small. You should be able to run it like: bugpoint -block-placement -other-options-you-need test.bc ... and it should hopefully give you a smaller .bc file. Regardless, if you send me the testcase, I'll fix the bug. Thanks! -Chris> ----------------------------------------------------------------------------------------------------- > > opt((anonymous namespace)::PrintStackTrace()+0x18)[0x8691968] > opt((anonymous namespace)::SignalHandler(int)+0xd8)[0x8691bc8] > /lib/tls/libc.so.6[0x688a48] > opt(llvm::BasicBlock::getNext()+0x6)[0x83d36d0] > opt(llvm::SymbolTableListTraits<llvm::BasicBlock, llvm::Function, llvm::Function, llvm::ilist_traits<llvm::BasicBlock> >::getNext(llvm::BasicBlock*)+0x11)[0x83d36c5] > opt(llvm::ilist_iterator<llvm::BasicBlock>::operator++()+0x17)[0x83d011d] > opt(llvm::ilist_iterator<llvm::BasicBlock>::operator++(int)+0x1c)[0x849c64e] > /home/tsharma/ankur/llvm/Debug/lib/LLVMHello.so((anonymous namespace)::Hello::PlaceBlocks(llvm::BasicBlock*)+0x196)[0x115616] > /home/tsharma/ankur/llvm/Debug/lib/LLVMHello.so((anonymous namespace)::Hello::runOnFunction(llvm::Function&)+0x68)[0x115450] > opt(llvm::PassManagerTraits<llvm::Function>::runPass(llvm::FunctionPass*, llvm::Function*)+0x1b)[0x8645e0b] > opt(llvm::PassManagerT<llvm::Function>::runOnUnit(llvm::Function*)+0x5c5)[0x8645739] > opt(llvm::PassManagerTraits<llvm::Function>::runOnFunction(llvm::Function&)+0x1b)[0x86463af] > opt(llvm::FunctionPass::runOnModule(llvm::Module&)+0xa4)[0x85ef606] > opt(llvm::PassManagerTraits<llvm::Module>::runPass(llvm::ModulePass*, llvm::Module*)+0x1b)[0x8640f7b] > opt(llvm::PassManagerT<llvm::Module>::runOnUnit(llvm::Module*)+0x5c5)[0x863ff8b] > opt(llvm::PassManagerTraits<llvm::Module>::runOnModule(llvm::Module&)+0x1b)[0x8642f0d] > opt(llvm::PassManager::run(llvm::Module&)+0x1f)[0x85ee965] > opt(main+0x988)[0x83b225c] > /lib/tls/libc.so.6(__libc_start_main+0xe3)[0x675e33] > opt(__gxx_personality_v0+0x111)[0x83b1751] > Segmentation fault > ------------------------------------------------------------------------------------------------------ > > Thanks > > Tanu > > > > > --------------------------------- > Do you Yahoo!? > Yahoo! Mail - Helps protect you from nasty viruses.-Chris -- http://nondot.org/sabre/ http://llvm.cs.uiuc.edu/
Chris Lattner
2005-Feb-09 02:29 UTC
[LLVMdev] Improving Makefile.rules header install rules [PATCH]
On Sun, 6 Feb 2005, Vladimir Merzliakov wrote:> And i have problem with installed LLVM include dir. > > Makefile.rules install only $(PROJ_SRC_ROOT)/include (including *.in files) > and ignore headers in $(PROJ_OBJ_ROOT)/include > As result installed LLVM does't have all headers for building external > projects, for example, llvm/ADT/iterator > > Proposed patch attached. > It tested making full LLVM build, install and uninstall.Looks good to me, patch applied: http://mail.cs.uiuc.edu/pipermail/llvm-commits/Week-of-Mon-20050207/023978.html Thanks! -Chris -- http://nondot.org/sabre/ http://llvm.cs.uiuc.edu/
Possibly Parallel Threads
- [LLVMdev] Segmentation Fault(Modifying BasicBlockPlacement.cpp)
- [LLVMdev] Segmentation Fault(Modifying BasicBlockPlacement.cpp)
- [LLVMdev] Improving Makefile.rules header install rules [PATCH]
- [LLVMdev] Re: Creating Release 1.7 Branch at 1:00pm PDT
- [LLVMdev] Re: Creating Release 1.7 Branch at 1:00pm PDT