<html>
    <head>
      <base href="https://bugs.freedesktop.org/" />
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - error: The command line is too long when building MESA on Windows with MinGW-W64"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=94072">94072</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>error: The command line is too long when building MESA on Windows with MinGW-W64
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>Mesa
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>unspecified
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>x86-64 (AMD64)
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>Windows (All)
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>normal
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>medium
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>Other
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>mesa-dev@lists.freedesktop.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>sav_ix@ukr.net
          </td>
        </tr>

        <tr>
          <th>QA Contact</th>
          <td>mesa-dev@lists.freedesktop.org
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Hi,

Used stuff:
- Windows 10,
- MinGW-W64 (5.3.0-<i686,x86_64),
- MSYS2 (4.3.42(4)-release-(x86_64-pc-msys)),
- Python (2.7.11),
- SCons (2.4.1),
- MESA (11.1.*-dev from git-repository).

For <i686,x86_64> builds got error:
===============================================================
scons.py build=release platform=windows toolchain=mingw machine=x86_64
libgl-gdi

[snip]

  Archiving build\windows-x86\mesa\libmesa.a ...
  Compiling src\gallium\auxiliary\draw\draw_pipe_twoside.c ...
The command line is too long.
scons: *** [build\windows-x86_64\mesa\libmesa.a] Error 1
scons: building terminated because of errors.
===============================================================

I found that it's very similar to which was reported four years ago:
"The command line is too long..."
(details at
<a href="https://lists.freedesktop.org/archives/mesa-users/2012-October/000496.html">https://lists.freedesktop.org/archives/mesa-users/2012-October/000496.html</a> ).

Other users also experienced it:
"Compiling Mesa natively on Windows using GCC with SCons results in "the
command line is too long" error during linking..."
(details at <a href="https://wiki.qt.io/Cross_compiling_Mesa_for_Windows">https://wiki.qt.io/Cross_compiling_Mesa_for_Windows</a> ).

While looking for solution, found in SCons wiki:
"MingW had some problems during the link phase of the build process. It turned
out our link lines were in excess of 10000 characters, and this was causing
some major grief with python calling spawn()..."
(details at <a href="https://bitbucket.org/scons/scons/wiki/LongCmdLinesOnWin32">https://bitbucket.org/scons/scons/wiki/LongCmdLinesOnWin32</a> ).

I assume this error last for such long, because testing of MESA builds using
MinGW* was made on Linux with cross-compiling to Windows. Could it be fixed?


Regards,

Alexander</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are the QA Contact for the bug.</li>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>