[cfe-dev] "File too big/too many sections" when building Registry.cpp in MSYS2 Environment

Reid Kleckner via cfe-dev cfe-dev at lists.llvm.org
Tue Jan 3 09:24:09 PST 2017


On Sun, Jan 1, 2017 at 11:35 PM, kyra via cfe-dev <cfe-dev at lists.llvm.org>
wrote:
>
> 3. I believe, we should pay more attention to support self-hosted
> mingw-w64 clang, I maintain a couple of patches which allow me to build it,
> but I never tried to publish them, because I saw no interest. Btw, that
> recent LLVM patch introducing big-obj switch (
> https://github.com/llvm-mirror/llvm/commit/e1c9f504c6810be7
> 82714b8b39f11579e50fa5c7) also breaks self-hosted clang because gnu clang
> driver doesn't understand -Wa,-mbig-obj option. AFAIUI, LLVM handles COFF
> format automatically, selecting bigobj format if necessary, and msvc clang
> driver simply ignores '/bigobj' flag. I have a patch fixing gnu driver too.
>

I'm happy to review these kinds of patches if you want to CC me on them. I
don't have a lot of time to dedicate to mingw support in clang, so I mostly
apply other people's patches and confirm that things seem to work.

Accepting and ignoring the -mbig-obj flag in clang seems totally reasonable
to me. Our assembler should implicitly do the right thing, as you described.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20170103/7bc76e3a/attachment.html>


More information about the cfe-dev mailing list