[LLVMdev] Windows debug builds require /bigobj

Oliver Stannard oliver.stannard at arm.com
Tue Aug 26 06:57:51 PDT 2014


Hi all,

 

Our windows debug builds of clang have started failing with this error
message:

.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.vcx
proj]

 

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.

 

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?

 

The buildbots did not catch this because it only occurs for debug builds.

 

Thanks,

Oliver
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20140826/30ed1512/attachment.html>


More information about the llvm-dev mailing list