# CMake Error 'Operation not permitted' in new WSL Ubuntu session

**URL:** https://discourse.cmake.org/t/cmake-error-operation-not-permitted-in-new-wsl-ubuntu-session/3681
**Category:** Usage
**Created:** [July 2, 2021, 12:37pm UTC](https://discourse.cmake.org/t/cmake-error-operation-not-permitted-in-new-wsl-ubuntu-session/3681 "2021-07-02T12:37:37Z")
**Posts on this page:** 1
**Showing post:** 6

<div class="post-metadata">

### Author: ![AltayAkkus](https://discourse.cmake.org/user_avatar/discourse.cmake.org/altayakkus/32/2554_2.png) [@AltayAkkus](https://discourse.cmake.org/u/AltayAkkus)
#### Post date: [June 29, 2022, 8:27pm UTC](https://discourse.cmake.org/t/cmake-error-operation-not-permitted-in-new-wsl-ubuntu-session/3681/6 "2022-06-29T20:27:17Z")

</div>

> [@ben.boeckel](#):
>
> Can you get logs as to what operation was not permitted?

Here are my complete logs from Clion

```auto
CMake Error at /usr/local/share/cmake-3.22/Modules/CMakeDetermineSystem.cmake:193 (configure_file):
  Operation not permitted
Call Stack (most recent call first):
  CMakeLists.txt:2 (project)

-- The C compiler identification is GNU 9.4.0
CMake Error at /usr/local/share/cmake-3.22/Modules/CMakeDetermineCCompiler.cmake:226 (configure_file):
  Operation not permitted
Call Stack (most recent call first):
  CMakeLists.txt:2 (project)

-- The CXX compiler identification is GNU 9.4.0
CMake Error at /usr/local/share/cmake-3.22/Modules/CMakeDetermineCXXCompiler.cmake:226 (configure_file):
  Operation not permitted
Call Stack (most recent call first):
  CMakeLists.txt:2 (project)

-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - failed
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc - works
-- Detecting C compile features
-- Detecting C compile features - done
CMake Error at /usr/local/share/cmake-3.22/Modules/CMakeTestCCompiler.cmake:85 (configure_file):
  Operation not permitted
Call Stack (most recent call first):
  CMakeLists.txt:2 (project)

-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - failed
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ - works
-- Detecting CXX compile features
-- Detecting CXX compile features - done
CMake Error at /usr/local/share/cmake-3.22/Modules/CMakeTestCXXCompiler.cmake:78 (configure_file):
  Operation not permitted
Call Stack (most recent call first):
  CMakeLists.txt:2 (project)

-- Configuring incomplete, errors occurred!
See also "/mnt/c/Users/Altay/AppData/Local/Temp/cmake_check_environment/_build1400723743840371038/CMakeFiles/CMakeOutput.log".
See also "/mnt/c/Users/Altay/AppData/Local/Temp/cmake_check_environment/_build1400723743840371038/CMakeFiles/CMakeError.log".

Error code: 1

```

---

_[View the full topic](https://discourse.cmake.org/t/cmake-error-operation-not-permitted-in-new-wsl-ubuntu-session/3681)._
