<div dir="ltr">Mmmm, delicious template instantiation. This has come up before, and the solution was to reduce the complexity of the template to avoid follow-on instantiations like SmallVector<T>.</div><div class="gmail_extra">
<br><br><div class="gmail_quote">On Tue, Aug 26, 2014 at 6:57 AM, Oliver Stannard <span dir="ltr"><<a href="mailto:oliver.stannard@arm.com" target="_blank">oliver.stannard@arm.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div lang="EN-GB" link="blue" vlink="purple"><div><p class="MsoNormal">Hi all,<u></u><u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">Our windows debug builds of clang have started failing with this error message:<u></u><u></u></p>
<p class="MsoNormal">…snip…\llvm\tools\clang\lib\ASTMatchers\Dynamic\Registry.cpp : fatal error C1128: number of sections exceeded object file format limit : compile with /bigobj […snip…\llvm\tools\clang\lib\ASTMatchers\Dynamic\clangDynamicASTMatchers.vcxproj]<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">This is building the debug configuration using the MSVC from Visual Studio Pro 2012 update 4, the release build of the same source succeeded. The source used was LLVM/clang trunk as of about 0500 UTC. The build of the source from the same time a day before succeeded.<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">The error is caused by one object file which would have to contain more than 2^16 sections. Adding /bigobj should fix this, but should LLVM be able to build without this option?<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">The buildbots did not catch this because it only occurs for debug builds.<u></u><u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">Thanks,<u></u><u></u></p>
<p class="MsoNormal">Oliver<u></u><u></u></p></div></div><br>_______________________________________________<br>
LLVM Developers mailing list<br>
<a href="mailto:LLVMdev@cs.uiuc.edu">LLVMdev@cs.uiuc.edu</a>         <a href="http://llvm.cs.uiuc.edu" target="_blank">http://llvm.cs.uiuc.edu</a><br>
<a href="http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev" target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev</a><br>
<br></blockquote></div><br></div>