[cmake-developers] [CMake 0016079]: Unknown extension ".c" for file

Mantis Bug Tracker mantis at public.kitware.com
Sun Apr 24 06:39:58 EDT 2016


The following issue has been SUBMITTED. 
====================================================================== 
https://cmake.org/Bug/view.php?id=16079 
====================================================================== 
Reported By:                rtsisyk
Assigned To:                
====================================================================== 
Project:                    CMake
Issue ID:                   16079
Category:                   CMake
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     new
====================================================================== 
Date Submitted:             2016-04-24 06:39 EDT
Last Modified:              2016-04-24 06:39 EDT
====================================================================== 
Summary:                    Unknown extension ".c" for file
Description: 
Ubuntu 14.04 inside Windows 10 LXSS.



```

-- The C compiler identification is unknown
CMake Error at Modules/CMakeDetermineCCompiler.cmake:181 (configure_file):
  configure_file Problem configuring file
Call Stack (most recent call first):
  CMakeLists.txt:19 (project)


-- The CXX compiler identification is unknown
CMake Error at Modules/CMakeDetermineCXXCompiler.cmake:179 (configure_file):
  configure_file Problem configuring file
Call Stack (most recent call first):
  CMakeLists.txt:19 (project)


-- Check for working C compiler: /usr/bin/gcc
CMake Error at Modules/CMakeTestCCompiler.cmake:47 (try_compile):
  Unknown extension ".c" for file

    /home/roman/cmake-3.5.2/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:19 (project)


-- Check for working C compiler: /usr/bin/gcc -- broken
CMake Error at Modules/CMakeTestCCompiler.cmake:61 (message):
  The C compiler "/usr/bin/gcc" 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:19 (project)


-- Configuring incomplete, errors occurred!
See also "/home/roman/cmake-3.5.2/CMakeFiles/CMakeOutput.log".
See also "/home/roman/cmake-3.5.2/CMakeFiles/CMakeError.log".
---------------------------------------------
Error when bootstrapping CMake:
Problem while running initial CMake
---------------------------------------------
```

Steps to Reproduce: 
1. Install Windows Subsystem for Linux on Windows 10 
http://www.howtogeek.com/249966/how-to-install-and-use-the-linux-bash-shell-on-windows-10/
2. Install cmake (any version)
apt-get install build-essential cmake
3. Try to build a simple C or CXX project
cmake .

====================================================================== 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2016-04-24 06:39 rtsisyk        New Issue                                    
2016-04-24 06:39 rtsisyk        File Added: 7.png                            
======================================================================



More information about the cmake-developers mailing list