<table border="1" cellspacing="0" cellpadding="8">
    <tr>
        <th>Issue</th>
        <td>
            <a href=https://github.com/llvm/llvm-project/issues/57197>57197</a>
        </td>
    </tr>

    <tr>
        <th>Summary</th>
        <td>
            Building Clang on Windows (Cygwin): Fatal error: can't write 41 bytes to section .text of CMakeFiles/LLVMVectorize.dir/SLPVectorizer.cpp.o: 'file too big'
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
            new issue
      </td>
    </tr>

    <tr>
      <th>Assignees</th>
      <td>
      </td>
    </tr>

    <tr>
      <th>Reporter</th>
      <td>
          pmor13
      </td>
    </tr>
</table>

<pre>
    ```
# /cygdrive/D/llvm-project-main/build
$ make clang
...
[ 54%] Building CXX object lib/Transforms/Vectorize/CMakeFiles/LLVMVectorize.dir/SLPVectorizer.cpp.o
/usr/lib/gcc/x86_64-pc-cygwin/11/../../../../x86_64-pc-cygwin/bin/as: CMakeFiles/LLVMVectorize.dir/SLPVectorizer.cpp.o: too many sections (33753)
/tmp/ccFbrVB4.s: Assembler messages:
/tmp/ccFbrVB4.s: Fatal error: can't write 41 bytes to section .text of CMakeFiles/LLVMVectorize.dir/SLPVectorizer.cpp.o: 'file too big'
/usr/lib/gcc/x86_64-pc-cygwin/11/../../../../x86_64-pc-cygwin/bin/as: CMakeFiles/LLVMVectorize.dir/SLPVectorizer.cpp.o: too many sections (33753)
/tmp/ccFbrVB4.s: Fatal error: CMakeFiles/LLVMVectorize.dir/SLPVectorizer.cpp.o: file too big
make[3]: *** [lib/Transforms/Vectorize/CMakeFiles/LLVMVectorize.dir/build.make:118: lib/Transforms/Vectorize/CMakeFiles/LLVMVectorize.dir/SLPVectorizer.cpp.o] Error 1
make[2]: *** [CMakeFiles/Makefile2:16119: lib/Transforms/Vectorize/CMakeFiles/LLVMVectorize.dir/all] Error 2
make[1]: *** [CMakeFiles/Makefile2:40722: tools/clang/tools/driver/CMakeFiles/clang.dir/rule] Error 2
make: *** [Makefile:11941: clang] Error 2

```
What is the root cause? Any workarounds?

PC: Windows, 64-bit, 32 GB of RAM, HDD 750 GB.
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJzdVU2P2yAQ_TX2BcUy-Cs--JCPuj3sSqu22t1bBTZx6GITAd40_fUdiLPbpKtK3bZSVclGzIyZ9xh4Y6baQxXk8fTE6yBeBCRBAambQ9dq8chhuoZXysd-ttPqM2_srKdiAB8bhWxPi1LU0weOGkmH7uiLomgKZkuUpQHJgmyNlm6RGDq0ur9Hirl8SAoG6T5qOpiN0r0B4xb8SouvDn91DZlrIbkLXF3dXj8Fo1Zo8H24unly6ajZ7SJ1olWPxn1xROiaBsYv8_xTns52zQz2uPc7wRgGoPvD8MK3zI_UBMkCvYoZrLNKQbmGAzIQFGowUPF5khRZEpDyibrtd-4gmprp22UaecSFMbxnkmvUc2Nox533pytqaqlEXGulndlQoF9YtNfCcpRixA6WG2B04oIiy79YpDav3h3k38Aqv0smOjD_19O4qO1rCZxVy-M5LYFsElDMsaKL44PA-btq8bKNPEKywHjuAP6GAkHsb1xlED7bE3lpT2cAbu5KQhy_HOPyTzCkUj4zImeM8C8xSuOCkOnaSBc8tjy4IJPt26a-5OS_mrjoUfKXyVyyOAH7kypT7BXs8S6XT-N5L7_bUosEqHvLkVbKgvpHA8lqtIDrvlf6gWo1Di1c5vr7NDcrB3QnhlbtgfwKgeqYsG6WEPR26brD-8W1s9-t16jIYnBGIa9wnsdg4YyEbZW0ZVLS0AorefXc9x19BH1mSu_EtprkXP4rDSsctay21u58eyW1a1fCbkcWNaqffocXf0UwhTGjx84KXBbhtiqbFGeM0byMM5ZQ3DYFnhM638RNy-fJPJSUcWkqOOmAkIHvkU8BczjfUFQkJiSe4wLqWWISsc2G4nxTlKTBJS_zII05_Itl5HhESnehrjwlNnYGglIYa56D1BjRDZx7OMhPR7tVutr1SuMk9MiVZ_4NIQ1_Mg">