View Issue Details [ Jump to Notes ] | [ Print ] |
ID | Project | Category | View Status | Date Submitted | Last Update |
0014586 | CMake | CMake | public | 2013-11-20 06:19 | 2014-06-02 08:37 |
|
Reporter | Daniel Pfeifer | |
Assigned To | | |
Priority | normal | Severity | minor | Reproducibility | always |
Status | closed | Resolution | duplicate | |
Platform | | OS | Windows | OS Version | |
Product Version | CMake 2.8.12 | |
Target Version | | Fixed in Version | | |
|
Summary | 0014586: LLVM platform toolset for Visual Studio |
Description | When configuring a CMake project with an LLVM toolset, CMake complains about the compiler not being able to compile a simpe test program. The complete output is attached.
It seems the problem is the '-g' compile flag. |
Steps To Reproduce | * Install Visual Studio
* Install LLVM from http://llvm.org/builds/ [^]
* `cmake -G "Visual Studio 12" -T "LLVM-vs2013"` |
Tags | No tags attached. |
|
Attached Files | output.txt [^] (2,774 bytes) 2013-11-20 06:19 [Show Content] [Hide Content]-- The CXX compiler identification is Clang 3.4.0
-- Check for working CXX compiler using: Visual Studio 12
-- Check for working CXX compiler using: Visual Studio 12 -- broken
CMake Error at C:/Program Files (x86)/CMake 2.8/share/cmake-2.8/Modules/CMakeTestCXXCompiler.cmake:54 (message):
The C++ compiler "C:/Program Files (x86)/LLVM 3.4.svn/msbuild-bin/cl.exe"
is not able to compile a simple test program.
It fails with the following output:
Change Dir: C:/Work/reQ/build/CMakeFiles/CMakeTmp
Run Build Command:C:\PROGRA~2\MSBuild\12.0\Bin\MSBuild.exe
cmTryCompileExec1644981537.vcxproj /p:Configuration=Debug
/p:VisualStudioVersion=12.0
Microsoft (R) Build Engine version 12.0.21005.1
[Microsoft .NET Framework, version 4.0.30319.18408]
Copyright (C) Microsoft Corporation. All rights reserved.
Build started 20.11.2013 12:13:02.
Project
"C:\Work\reQ\build\CMakeFiles\CMakeTmp\cmTryCompileExec1644981537.vcxproj"
on node 1 (default targets).
PrepareForBuild:
Creating directory "cmTryCompileExec1644981537.dir\Debug\".
Creating directory "C:\Work\reQ\build\CMakeFiles\CMakeTmp\Debug\".
Creating directory "cmTryCompileExec1644981537.dir\Debug\cmTryCom.EF07EABE.tlog\".
InitializeBuildStatus:
Creating "cmTryCompileExec1644981537.dir\Debug\cmTryCom.EF07EABE.tlog\unsuccessfulbuild" because "AlwaysCreate" was specified.
ClCompile:
C:\Program Files (x86)\LLVM 3.4.svn\msbuild-bin\CL.exe /c /W1 /WX- /O2 /Oy- /D "CMAKE_INTDIR=\"Debug\"" /D _MBCS /Gm- /MD /GS /fp:precise /Zc:wchar_t /Zc:forScope /Fo"cmTryCompileExec1644981537.dir\Debug\\" /Fd"cmTryCompileExec1644981537.dir\Debug\vc120.pdb" /Gd /TP /analyze- /errorReport:queue -g -fmsc-version=1800 testCXXCompiler.cxx
clang-cl.exe : error : unknown argument: '-g'
[C:\Work\reQ\build\CMakeFiles\CMakeTmp\cmTryCompileExec1644981537.vcxproj]
Done Building Project
"C:\Work\reQ\build\CMakeFiles\CMakeTmp\cmTryCompileExec1644981537.vcxproj"
(default targets) -- FAILED.
Build FAILED.
"C:\Work\reQ\build\CMakeFiles\CMakeTmp\cmTryCompileExec1644981537.vcxproj"
(default target) (1) ->
(ClCompile target) ->
clang-cl.exe : error : unknown argument: '-g' [C:\Work\reQ\build\CMakeFiles\CMakeTmp\cmTryCompileExec1644981537.vcxproj]
0 Warning(s)
1 Error(s)
Time Elapsed 00:00:00.25
CMake will not be able to correctly generate this project.
Call Stack (most recent call first):
CMakeLists.txt:10 (project)
-- Configuring incomplete, errors occurred!
See also "C:/Work/reQ/build/CMakeFiles/CMakeOutput.log".
See also "C:/Work/reQ/build/CMakeFiles/CMakeError.log".
|
|