Sahoo, Swarup Kumar
2012-Oct-17 17:38 UTC
[LLVMdev] Using Clang LTO/gold plugin to build clang
Hi, I was trying to build clang (svn head version) using clang-3.1 version. I am building a debug version using LTO/gold plugin. It is crashing with signal 9 when trying to link the bitcode files to build the executable. I am not sure, if this is a bug or just a memory issue. Has anyone done anything similar or noticed similar behavior? Any help would be welcome. Thanks, Swarup. -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20121017/1247e119/attachment.html>
Rafael EspĂndola
2012-Oct-17 20:31 UTC
[LLVMdev] Using Clang LTO/gold plugin to build clang
On 17 October 2012 13:38, Sahoo, Swarup Kumar <ssahoo2 at illinois.edu> wrote:> Hi, > > I was trying to build clang (svn head version) using clang-3.1 version. > I am building a debug version using LTO/gold plugin. It is crashing with > signal 9 when trying to link the bitcode files to build the executable. I am > not sure, if this is a bug or just a memory issue. Has anyone done anything > similar or noticed similar behavior? Any help would be welcome.It is likely just using too much memory. Unfortunately currently LTO uses a lot of memory for the debug info. I would suggest building without it to check if that works.> Thanks, > Swarup. >Cheers, Rafael
Two suggestions: - Use a 64-bit operating system. - You could disable the LTO optimizations by commenting out a few lines in tools/lto/LTOCodeGenerator.cpp to determine if the problem is a pass or with LTO itself. On Wed, Oct 17, 2012 at 10:38 AM, Sahoo, Swarup Kumar <ssahoo2 at illinois.edu> wrote:> Hi, > > I was trying to build clang (svn head version) using clang-3.1 version. > I am building a debug version using LTO/gold plugin. It is crashing with > signal 9 when trying to link the bitcode files to build the executable. I am > not sure, if this is a bug or just a memory issue. Has anyone done anything > similar or noticed similar behavior? Any help would be welcome. > > Thanks, > Swarup. > > _______________________________________________ > LLVM Developers mailing list > LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu > http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev >-- Todd Jackson, Ph.D.
Sahoo, Swarup Kumar
2012-Oct-23 22:17 UTC
[LLVMdev] Using Clang LTO/gold plugin to build clang
Thanks for the help. LTO optimization was not an issue. llvm-ld was just using too much memory (especially with -g option). Now, it is able to link with more memory. But, llc is giving the following assertion violation when compiled with "-g" option. While deleting: metadata % An asserting value handle still pointed to this value! UNREACHABLE executed at Value.cpp:620! I saw the following bug reports with same assertion violation, but doesn't look like anybody is trying fix it :-( http://llvm.org/bugs/show_bug.cgi?id=13495 http://llvm.org/bugs/show_bug.cgi?id=13495 -Swarup. ________________________________________ From: Todd Jackson [quantum.skyline at gmail.com] Sent: Wednesday, October 17, 2012 3:38 PM To: Sahoo, Swarup Kumar Cc: llvmdev at cs.uiuc.edu Subject: Re: [LLVMdev] Using Clang LTO/gold plugin to build clang Two suggestions: - Use a 64-bit operating system. - You could disable the LTO optimizations by commenting out a few lines in tools/lto/LTOCodeGenerator.cpp to determine if the problem is a pass or with LTO itself. On Wed, Oct 17, 2012 at 10:38 AM, Sahoo, Swarup Kumar <ssahoo2 at illinois.edu> wrote:> Hi, > > I was trying to build clang (svn head version) using clang-3.1 version. > I am building a debug version using LTO/gold plugin. It is crashing with > signal 9 when trying to link the bitcode files to build the executable. I am > not sure, if this is a bug or just a memory issue. Has anyone done anything > similar or noticed similar behavior? Any help would be welcome. > > Thanks, > Swarup. > > _______________________________________________ > LLVM Developers mailing list > LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu > http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev >-- Todd Jackson, Ph.D.