[CMake] CMAKE_SIZEOF_VOID_P is unset when building libgit2 on Windows
Gregor Jasny
gjasny at googlemail.com
Fri Mar 25 18:44:05 EDT 2016
On 25/03/16 22:11, Sebastian Schuberth wrote:
> I also just realized CMAKE_C_ABI_COMPILER is set to FALSE in
> CMakeCCompiler.cmake. Looking at CMakeError.log was a good hint. I
> found:
>
> ---8<---
> Building C object CMakeFiles/cmTC_c0166.dir/CMakeCCompilerABI.c.obj
>
> 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<---
To unblock you until the problem is sorted out you might want to install
a 64bit version of cmake which should not have the problematic (x86) in
the path (or you choose a custom install location).
http://ifw.podsvirov.pro/cmake/files/v3.5/
Hope that helps,
Gregor
More information about the CMake
mailing list