On 03/25/2016 05:08 PM, Sebastian Schuberth wrote:
> Looking at CMakeError.log was a good hint. I found:
> 
> C:/Ruby-DevKit/mingw/bin/gcc.exe    -fPIC    -o
> CMakeFiles/cmTC_c0166.dir/CMakeCCompilerABI.c.obj   -c "C:/Program
> Files (x86)/CMake/share/cmake-3.5/Modules/CMakeCCompilerABI.c"
> 
> /usr/bin/sh: -c: line 0: syntax error near unexpected token `('
> /usr/bin/sh: -c: line 0: `C:/Ruby-DevKit/mingw/bin/gcc.exe    -fPIC
> -o CMakeFiles/cmTC_c0166.dir/CMakeCCompilerABI.c.obj   -c \C:/Program
> Files (x86)/CMake/share/cmake-3.5/Modules/CMakeCCompilerABI.c\'
> CMakeFiles/cmTC_c0166.dir/build.make:65: recipe for target
> 'CMakeFiles/cmTC_c0166.dir/CMakeCCompilerABI.c.obj' failed
> ---8<---
> 
> There seems to be some problem in escaping the non-alphanumeric chars
> in the path to "CMakeCCompilerABI.c".

Strange.  CMake is regularly used from "C:/Program Files (x86)/CMake".

> Any hint how to debug this further?

Try running the logged compiler command line by hand:

  C:/Ruby-DevKit/mingw/bin/gcc.exe -c "C:/Program Files 
(x86)/CMake/share/cmake-3.5/Modules/CMakeCCompilerABI.c"

Also try configuring a small test project in a fresh build tree:

 $ cat CMakeLists.txt
 cmake_minimum_required(VERSION 3.5)
 project(test C)
 message("${CMAKE_SIZEOF_VOID_P}")

If that reproduces the problem, try configuring with --debug-trycompile
so that the CMakeFiles/CmakeTmp/CMakeFiles/cmTC_*.dir/build.make files
will be left behind for inspection.

-Brad
-- 

Powered by www.kitware.com

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

Kitware offers various services to support the CMake community. For more 
information on each offering, please visit:

CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html

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

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

Reply via email to