[cmake-developers] [CMake 0015334]: CMake cannot work
Mantis Bug Tracker
mantis at public.kitware.com
Sat Jan 3 19:34:31 EST 2015
The following issue has been SUBMITTED.
======================================================================
http://www.cmake.org/Bug/view.php?id=15334
======================================================================
Reported By: jhuang
Assigned To:
======================================================================
Project: CMake
Issue ID: 15334
Category: CMake
Reproducibility: always
Severity: major
Priority: immediate
Status: new
======================================================================
Date Submitted: 2015-01-03 19:34 EST
Last Modified: 2015-01-03 19:34 EST
======================================================================
Summary: CMake cannot work
Description:
I installed the latest CMake from Binary and try to test it with a very simple
project, but there're some error in console:
-------------------Console output---------------------------------
-- The C compiler identification is unknown
CMake Error at /home/jhuang/local/package/cmake-3.1.0-Linux-x86_64/share/cmake-3
.1/Modules/CMakeDetermineCCompiler.cmake:172 (configure_file):
configure_file Problem configuring file
Call Stack (most recent call first):
CMakeLists.txt:2 (project)
-- The CXX compiler identification is unknown
CMake Error at /home/jhuang/local/package/cmake-3.1.0-Linux-x86_64/share/cmake-3
.1/Modules/CMakeDetermineCXXCompiler.cmake:170 (configure_file):
configure_file Problem configuring file
Call Stack (most recent call first):
CMakeLists.txt:2 (project)
-- Check for working C compiler: /usr/bin/cc
CMake Error at /home/jhuang/local/package/cmake-3.1.0-Linux-x86_64/share/cmake-3
.1/Modules/CMakeTestCCompiler.cmake:47
(try_compile):
Unknown extension ".c" for file
/home/jhuang/cmake_test/CMakeFiles/CMakeTmp/testCCompiler.c
try_compile() works only for enabled languages. Currently these are:
C CXX
See project() command to enable other languages.
Call Stack (most recent call first):
CMakeLists.txt:2 (project)
-- Check for working C compiler: /usr/bin/cc -- broken
CMake Error at /home/jhuang/local/package/cmake-3.1.0-Linux-x86_64/share/cmake-3
.1/Modules/CMakeTestCCompiler.cmake:61
(message):
The C compiler "/usr/bin/cc" is not able to compile a simple test program.
It fails with the following output:
CMake will not be able to correctly generate this project.
Call Stack (most recent call first):
CMakeLists.txt:2 (project)
-- Configuring incomplete, errors occurred!
See also "/home/jhuang/cmake_test/CMakeFiles/CMakeOutput.log".
See also "/home/jhuang/cmake_test/CMakeFiles/CMakeError.log".
-------------------Console output---------------------------------
Following is the 172 in CMakeDetermineCCompiler.cmake
# configure variables set in this file for fast reload later on
configure_file(${CMAKE_ROOT}/Modules/CMakeCCompiler.cmake.in
${CMAKE_PLATFORM_INFO_DIR}/CMakeCCompiler.cmake
@ONLY
)
Why there's an CMakeERROR on this line, no any hints, even in the
CMakeOutput.log and CMakeError.log
======================================================================
Issue History
Date Modified Username Field Change
======================================================================
2015-01-03 19:34 jhuang New Issue
2015-01-03 19:34 jhuang File Added: CMakeLog and CMakeList.txt
======================================================================
More information about the cmake-developers
mailing list