[cfe-dev] 'too many sections' when building an object file for llvm/clang

Manuel Klimek klimek at google.com
Fri Jun 7 11:49:30 PDT 2013


+Sam


On Fri, Jun 7, 2013 at 8:22 PM, Manish Verma <manish.verma at arm.com> wrote:

> Hi,
>
> I have been discussing the same issue on llvm-commit mailing-list.
>
> http://lists.cs.uiuc.edu/pipermail/llvm-commits/Week-of-Mon-20130603/177054.
> html
>
> At the moment, the debug build of LLVM/Clang is broken on Windows.
> This is because when compiling ASTMatchers/Dynamic/Registry.cpp,
> the compilers hit the allowed limit of 2^16 sections in the
> COFF file.
>
> For MSVC it is possible to work around this problem by compiling
> with /bigobj command line option. However, I don't know of an
> equivalent command line option for Min-GW gcc.
>
> On Linux, Registry.o (debug-mode) is about 34M in size and has
> 36986 sections. I can expect it impacting the link-time and memory
> usage.
>
> The last commit has resulted in the build failure, but I don't think
> it is responsible for the failure.
>
> I don't know what should be the correct solution. Hence, I am raising
> it here for discussion.
>
> Regards,
> Manish
>
>
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20130607/6ee6f41c/attachment.html>


More information about the cfe-dev mailing list