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

Aaron Ballman aaron at aaronballman.com
Fri Jun 7 08:15:25 PDT 2013


We have more than 65535 sections in a single object file?  That seems
rather large to me; I wonder if that was intended behavior.

According to MSDN, /bigobj works as far back as VS 2005; do you see
that it fails in practice?  If so, it's not a big deal, we really only
care about 2010 and up at this point.

~Aaron

On Fri, Jun 7, 2013 at 10:59 AM, Manish Verma <manish.verma at arm.com> wrote:
> Hi,
>
> We have recently found that the debug builds on Windows are failing when
> compiled with MSVC 2010SP1. The failure message generated is the following:
>
> f:\work\src\llvm\tools\clang\include\clang\astmatchers\astmatchersinternal.h
> (266): fatal error C1128: number of sections exceeded object file format
> limit : compile with /bigobj
> [F:\work\build\win_32-linkMT-x86_64\cl_16.00.40219.01-vs\dbg\llvm\tools\clan
> g\lib\ASTMatchers\Dynamic\clangDynamicASTMatchers.vcxproj]
>
> A similar build failure is also reported today in
> http://lists.cs.uiuc.edu/pipermail/cfe-dev/2013-June/030043.html.
>
> Please find attached a patch which fixes the build failure and adds /bigobj
> option to CXX_FLAGS for debug builds.
>
> One of the downside of this patch is that the debug builds of LLVM can no
> longer done using Visual Studio C++ 2005 or previous versions. Otherwise, I
> couldn't find any other downside of using /bigobj option.
>
> Manish
> _______________________________________________
> llvm-commits mailing list
> llvm-commits at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits
>



More information about the llvm-commits mailing list