error: The command line is too long when building MESA on Windows with MinGW-W64
Submitted by sav..@..kr.net
Assigned to mes..@..op.org
- 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
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 https://lists.freedesktop.org/archives/mesa-users/2012-October/000496.html ).
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 https://wiki.qt.io/Cross_compiling_Mesa_for_Windows ).
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 https://bitbucket.org/scons/scons/wiki/LongCmdLinesOnWin32 ).
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?