[PATCH] Fix for LLVM debug build failure on Windows + MSVC2010SP1

Manish Verma Manish.Verma at arm.com
Fri Jun 7 10:20:41 PDT 2013


Hi Aaron,

I checked that on Linux the size of ASTMatchers/Dynamic/CMakeFiles/clangDynamicASTMatchers.dir/Registry.cpp.o
is 34M and number of sections generated is 36986.

Both, MSVC and mingw-gcc fails to build this file on Windows. I think
we should either fix the source in Registry.cpp or add /bigobj option
to build (the debug variant of) LLVM on Windows.

Regards,
Manish


> -----Original Message-----
> From: aaron.ballman at gmail.com [mailto:aaron.ballman at gmail.com] On
> Behalf Of Aaron Ballman
> Sent: 07 June 2013 16:52
> To: Manish Verma
> Cc: llvm-commits
> Subject: Re: [PATCH] Fix for LLVM debug build failure on Windows +
> MSVC2010SP1
>
> On Fri, Jun 7, 2013 at 11:38 AM, Manish Verma <Manish.Verma at arm.com>
> wrote:
> > Hi Aaron,
> >
> >> We have more than 65535 sections in a single object file?  That
> seems
> >> rather large to me; I wonder if that was intended behavior.
> > Good question! The source file doesn't look very big. I wonder what
> is
> > causing MSVC to generate these many sections in single object file.
>
> This is the part that concerns me most -- can we try to find out why
> the sections are being generated and attempt to address that instead?
> Not that I think /bigobj is obnoxious, I just worry that it's masking
> the underlying issue.
>
> ~Aaron


-- IMPORTANT NOTICE: The contents of this email and any attachments are confidential and may also be privileged. If you are not the intended recipient, please notify the sender immediately and do not disclose the contents to any other person, use it for any purpose, or store or copy the information in any medium.  Thank you.




More information about the llvm-commits mailing list