[cfe-users] cmake error with cmake 3.9.1

masaru tsuchiyama via cfe-users cfe-users at lists.llvm.org
Sun Aug 27 01:49:11 PDT 2017


Hello

This was fixed at https://gitlab.kitware.com/cmake/cmake/merge_requests/1179
It will be released at cmake 3.9.2

Regards.
Masaru


2017-08-20 11:22 GMT+09:00 Masaru Tsuchiyama <m.tmatma at gmail.com>:

> Hello
>
> This was a bug of cmake.
>
> cmake doesn't create 'rules.ninja' while the build process
> even though generated build.ninja has a line "include rules.ninja".
>
> I can reproduce it with the other project which uses cmake.
>
> Regards.
> Masaru.
>
>
> Masaru Tsuchiyama wrote:
>
>> Hello
>>
>> I updated cmake to 3.9.1, then got the following error message on Win10.
>> I don't get this error with cmake 3.7.1.
>>
>> Do you know what is wrong? a bug of cmake?
>>
>>  > "C:\Program Files\CMake\bin\cmake.exe" -G Ninja -D
>> CMAKE_INSTALL_PREFIX=c:\clang -D CMAKE_BUILD_TYPE=Release ..
>> -- The C compiler identification is MSVC 19.11.25506.0
>> -- The CXX compiler identification is MSVC 19.11.25506.0
>> -- The ASM compiler identification is MSVC
>> -- Found assembler: C:/Program Files (x86)/Microsoft Visual
>> Studio/2017/Community/VC/Tools/MSVC/14.11.25503/bin/HostX86/x86/cl.exe
>> -- Check for working C compiler: C:/Program Files (x86)/Microsoft Visual
>> Studio/2017/Community/VC/Tools/MSVC/14.11.25503/bin/HostX86/x86/cl.exe
>> -- Check for working C compiler: C:/Program Files (x86)/Microsoft Visual
>> Studio/2017/Community/VC/Tools/MSVC/14.11.25503/bin/HostX86/x86/cl.exe
>> -- broken
>> CMake Error at C:/Program Files/CMake/share/cmake-3.9/Mo
>> dules/CMakeTestCCompiler.cmake:51 (message):
>>    The C compiler "C:/Program Files (x86)/Microsoft Visual
>>
>> Studio/2017/Community/VC/Tools/MSVC/14.11.25503/bin/HostX86/x86/cl.exe"
>> is
>>    not able to compile a simple test program.
>>
>>    It fails with the following output:
>>
>>     Change Dir: C:/svnwork/llvm2/build/CMakeFiles/CMakeTmp
>>
>>
>> This is a batch file to compile llvm.
>> -------------------------------------------------------------
>> set ROOTDIR=llvm2
>> set DIR=%~dp0
>>
>> cd /d %DIR%
>>
>> if exist %ROOTDIR%     rmdir /s /q %ROOTDIR%
>> if exist %ROOTDIR%     exit /b 1
>>
>> svn co    http://llvm.org/svn/llvm-project/llvm/trunk        %ROOTDIR%
>> svn co    http://llvm.org/svn/llvm-project/cfe/trunk
>> %ROOTDIR%\tools\clang
>> svn co    http://llvm.org/svn/llvm-project/lld/trunk %ROOTDIR%\tools\lld
>> svn co    http://llvm.org/svn/llvm-project/polly/trunk
>> %ROOTDIR%\tools\polly
>> svn co    http://llvm.org/svn/llvm-project/compiler-rt/trunk
>> %ROOTDIR%\projects\compiler-rt
>> svn co    http://llvm.org/svn/llvm-project/libcxx/trunk
>> %ROOTDIR%\projects\libcxx
>> svn co    http://llvm.org/svn/llvm-project/libcxxabi/trunk
>> %ROOTDIR%\projects\libcxxabi
>>
>> cd %ROOTDIR% || exit /b 1
>>
>> if exist build     rmdir /s /q build
>> if exist build     exit /b 1
>> if not exist build mkdir build
>> cd build
>>
>> del /Q LLVM-*.exe
>>
>> call "C:\Program Files (x86)\Microsoft Visual
>> Studio\2017\Community\VC\Auxiliary\Build\vcvarsall.bat" x86
>> "C:\Program Files\CMake\bin\cmake.exe" -G Ninja -D
>> CMAKE_INSTALL_PREFIX=c:\clang -D CMAKE_BUILD_TYPE=Release ..
>> ninja -v package
>> -------------------------------------------------------------------------------------
>>
>>
>>
>
> --
> Masaru Tsuchiyama <m.tmatma at gmail.com>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-users/attachments/20170827/2aa5063e/attachment.html>


More information about the cfe-users mailing list