MantisBT - CMake
View Issue Details
0016079CMakeCMakepublic2016-04-24 06:392016-06-10 14:21
rtsisyk 
 
normalfeaturealways
closedno change required 
Windows Subsystem for LinuxUbuntu14.04.03
CMake 3.5.2 
 
0016079: Support for Windows Subsystem for Linux
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
---------------------------------------------
```
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 .
No tags attached.
png 7.png (21,809) 2016-04-24 06:39
https://public.kitware.com/Bug/file/5680/7.png
png
Issue History
2016-04-24 06:39rtsisykNew Issue
2016-04-24 06:39rtsisykFile Added: 7.png
2016-04-25 08:54Brad KingSeverityminor => feature
2016-04-25 08:54Brad KingSummaryUnknown extension ".c" for file => Support for Windows Subsystem for Linux
2016-05-01 16:04Rich TurnerNote Added: 0040949
2016-05-02 09:11Brad KingNote Added: 0041002
2016-05-02 09:11Brad KingStatusnew => resolved
2016-05-02 09:11Brad KingResolutionopen => no change required
2016-06-10 14:21Kitware RobotNote Added: 0041181
2016-06-10 14:21Kitware RobotStatusresolved => closed

Notes
(0040949)
Rich Turner   
2016-05-01 16:04   
This issue was due to a bug in WSL. Fix is inbound. Report, discussion & repro's over here: https://github.com/Microsoft/BashOnWindows/issues/272 [^]
(0041002)
Brad King   
2016-05-02 09:11   
Re 0016079:0040949: Thanks. I'll mark this as resolved here for now. Please follow up again here if it turns out CMake needs some changes.
(0041181)
Kitware Robot   
2016-06-10 14:21   
This issue tracker is no longer used. Further discussion of this issue may take place in the current CMake Issues page linked in the banner at the top of this page.