[cfe-users] cmake error with cmake 3.9.1

Masaru Tsuchiyama via cfe-users cfe-users at lists.llvm.org
Fri Aug 18 16:31:10 PDT 2017


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/Modules/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>



More information about the cfe-users mailing list