compilation fails on Windows mingw-w64 + MSYS2

249 views
Skip to first unread message

Vincent Torri

unread,
May 18, 2017, 10:41:38 AM5/18/17
to ninja-build
Hello

On windows, using MSYS2 + mingw-w64, the compilation of ninja fails :


i have cloned version 1.7.2 :

git clone https://github.com/martine/ninja.git -b v1.7.2

then in the ninja directory :

15:09 $ python configure.py --bootstrap
bootstrapping ninja...
Traceback (most recent call last):
  File "configure.py", line 320, in <module>
    if platform.msvc_needs_fs():
  File "configure.py", line 84, in msvc_needs_fs
    stderr=subprocess.PIPE)
  File "E:\Documents\programmes_x64\python-3.6.1\lib\subprocess.py", line 707, in __init__
    restore_signals, start_new_session)
  File "E:\Documents\programmes_x64\python-3.6.1\lib\subprocess.py", line 990, in _execute_child
    startupinfo)
FileNotFoundError: [WinError 2] Le fichier sp▒cifi▒ est introuvable


does someone know what to do to solve that error ?

thank you

Vincent Torri

Nico Weber

unread,
May 18, 2017, 10:44:09 AM5/18/17
to Vincent Torri, ninja-build
I think for mingw you might have to pass `--platform mingw`; the default on Windows is msvc.

--
You received this message because you are subscribed to the Google Groups "ninja-build" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ninja-build+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Vincent Torri

unread,
May 18, 2017, 1:58:55 PM5/18/17
to ninja-build, vincen...@gmail.com


Le jeudi 18 mai 2017 16:44:09 UTC+2, Nico Weber a écrit :
I think for mingw you might have to pass `--platform mingw`; the default on Windows is msvc.

it seems to work, indeed. Maybe this should be in the documentation

thank you !

Vincent Torri
 

On Thu, May 18, 2017 at 10:15 AM, Vincent Torri <vincen...@gmail.com> wrote:
Hello

On windows, using MSYS2 + mingw-w64, the compilation of ninja fails :


i have cloned version 1.7.2 :

git clone https://github.com/martine/ninja.git -b v1.7.2

then in the ninja directory :

15:09 $ python configure.py --bootstrap
bootstrapping ninja...
Traceback (most recent call last):
  File "configure.py", line 320, in <module>
    if platform.msvc_needs_fs():
  File "configure.py", line 84, in msvc_needs_fs
    stderr=subprocess.PIPE)
  File "E:\Documents\programmes_x64\python-3.6.1\lib\subprocess.py", line 707, in __init__
    restore_signals, start_new_session)
  File "E:\Documents\programmes_x64\python-3.6.1\lib\subprocess.py", line 990, in _execute_child
    startupinfo)
FileNotFoundError: [WinError 2] Le fichier sp▒cifi▒ est introuvable


does someone know what to do to solve that error ?

thank you

Vincent Torri

--
You received this message because you are subscribed to the Google Groups "ninja-build" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ninja-build...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages