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

    <tr>
        <th>Summary</th>
        <td>
            Failed to build llvm using i686-w64-mingw32-gcc 9.3
        </td>
    </tr>

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

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

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

<pre>
    Hi there,

I tried to build llvm 19.x using i686-w64-mingw32-gcc, but met with following bug, see

```
[  1%] Building CXX object lib/Support/CMakeFiles/LLVMSupport.dir/raw_socket_stream.cpp.obj
/work/llvm/llvm/lib/Support/raw_socket_stream.cpp:34:10: fatal error: afunix.h: No such file or directory
   34 | #include <afunix.h>
      |          ^~~~~~~~~~
compilation terminated.
```

I cannot find this header file in `/usr/i686-w64-mingw32/include`, it seems this is introduced by https://github.com/llvm/llvm-project/pull/73603 , so is it not possible to cross build llvm windows in a linux machine using this 9.3 version of gcc? How should I do to make it work.

Thanks
</pre>
<img width="1" height="1" alt="" src="http://email.email.llvm.org/o/eJyUU02PpDYQ_TXmUhoENtDdBw5M76JdaTeXRNHeVgYXUNvGJv4YZi757ZHpSXYzSQ6xLPFR5VfPr15J72k2iC2rH1n9LpMxLNa1kzTzEuVvlA1WvbQfCMKCDhm_sqJjRfcRgiNUECwMkbQCrZ9WKC_5M0RPZgZqzs3D3lQPK5l5F_xhHkfGrzDEACsG2CksMFmt7Z7ShzinqEe847OmeN1Fx-pHgJLxmtXv4DFVSyeuX76AHb7hGEDTwHj_c9w26wLj_fWzvGFPGj3j_adPv35-DeWKHOO9k_tXb8cbhq8-OJRrPm5bbodvqRbvd-tujPfpQj883pT4VwwmOlEx0ZUFEx1MMkgN6Jx16VNO0dBzvqT3nyz4OC4wkUawDhQ5HIN1L6zoAEBUwE5XYFyQGXVUCExcv59_f88COLL-Wqx-__ufixXdaNeNtAxkDQR0KxkZUOVvtU2tHKUxNsBERkFYyMOCUqG70yMDKZX30Sfx3vY1_bqTPLKuQCF1cfV3pLRNcFbFERUML7CEsHkmktCM9zOFJQ75aNe_K_6wOZtay3i_Ra0Z70-iKQQcHrEHaoDEebPe06AxGXF01vsf7biTUXZPDECCJhOfYZXjQgZfTXpQvOQCntD5JJSdIPlU9PDB7uAXG7WCj6Bswl_lDVPdZJD8rt0vizQ3n6lWqIu4yAzb8iTqsjjXQmRLe2q4alQpz8PpfJaVOslplIKfp-lcTnKSGbW84FXJeV00ohYir6ayqUV9VqeKl9VUsarAVZLO04Vy6-aMvI_YlrwsLkWm5YDaH7PLucEdjijjPI2yaw8phzh7VhWafPDfYQIFjW0vSf9jiv97gJNWWXS6_d9dPHilcXwl_tTyPwIAAP__lc1vmA">