Hi Peter,

Today I have tried to work with ninja on MSYS.

I have a view questions:

1. Is cmake build on MSYS or build on windows when you test with it the ninja generator?
        I tried the windows version, but it fails, ....

2. MSYS has a bash sh program, why is cmd /c used at a unix like environment? It is not fast to start a a shell the old stupid dos cmd shell again and to have the cmdline length problems again!

3. The gcc, ar, and other binutils I found are quite actual and the @response file options are known But it is a bash, not command, so only posix path separator must be used, '\' and spaces must be quoted!

IMO cmake, at least the ninja generator should respect this, than it works.


An other question about dependancy generation on Windows and MSYS:

I found the Makefile Generator creates dep files on MSYS, but the gcc can do it by the way? He, wait? It is it an open issue for the Nina generator to not create depend files on Windows with cl when cmake know to do it?

//Regards
Claus


That was the result of my test, but the cmake sources are not right sync with yours!

CMake Error at c:/Programme/CMake2.8/share/cmake-2.8/Modules/ CMakeTestCCompiler.cmake:52 (MESSAGE): The C compiler "C:/Wascana/mingw/bin/gcc.exe" is not able to compile a
  simple test program.

  It fails with the following output:

   Change Dir: C:/downloads/ftplibpp-2.0.2-ck/build/CMakeFiles/CMakeTmp


Run Build Command:C:/Wascana/msys/bin/ninja.exe cmTryCompileExec2945905931

  [1/2] Building C object
  CMakeFiles\cmTryCompileExec2945905931.dir\testCCompiler.c.obj


  [2/2] Linking C executable cmTryCompileExec2945905931.exe


FAILED: cmd.exe /c cd. && c:\Programme\CMake2.8\bin\cmake.exe -E remove -f
  CMakeFiles\cmTryCompileExec2945905931.dir/objects.a &&
  C:\Wascana\mingw\bin\ar.exe cr
  CMakeFiles\cmTryCompileExec2945905931.dir/objects.a
  @cmTryCompileExec2945905931.exe.rsp && C:\Wascana\mingw\bin\gcc.exe
-Wl,--whole-archive CMakeFiles\cmTryCompileExec2945905931.dir/ objects.a
  -Wl,--no-whole-archive -o cmTryCompileExec2945905931.exe
  -Wl,--out-implib,libcmTryCompileExec2945905931.dll.a
-Wl,--major-image-version,0,--minor-image-version,0 -lkernel32 - luser32
  -lgdi32 -lwinspool -lshell32 -lole32 -loleaut32 -luuid -lcomdlg32
  -ladvapi32 && cd.

  C:\Wascana\mingw\bin\ar.exe:
CMakeFilescmTryCompileExec2945905931.dirtestCCompiler.c.obj: No such file
  or directory

  ninja: build stopped: subcommand failed.


  CMake will not be able to correctly generate this project.
Call Stack (most recent call first):

On 06.06.2012, at 18:08, Peter Kümmel wrote:

On 06.06.2012 16:27, Bill Hoffman wrote:

I will change the dashboard to use ninja
master. Right now it is still using your branch on git and is failing a
bunch of tests.

Now cmake prepends "cmd.exe /c" and the branched ninja also, so we have
"cmd.exe /c cmd.exe /c cd" which makes no sense.

Peter
--

Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/cgi-bin/mailman/listinfo/cmake-developers

--

Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/cgi-bin/mailman/listinfo/cmake-developers

Reply via email to