Troubles with WSL toolchain (Test CMake run finished with errors)

Completed

Hello, I've been using cygwin for a while, but I need to use sdl2 libs and it's not really compatible with that, so I thought I'd just migrate to WSL since it's supported now. I've run into an issue though.

In the toolchains section: WSL, SSH, CMake, WSL GDB are all green. but the CMake test runs fail.

What I also find quite puzzling is that no matter what I type into the paths of "make/c compiler/c++ compiler" the error stays exactly the same.

CLion - Build #CL-191.6183.77

Windows - Win10 Home | Version 1803 | OS build 17134.472

Ubuntu - 18.04.2 LTS

WSL CMake - 3.10.2

(note - the CMake[Error|Output].log files don't exist, there's not even the /cmake_check_environment/ folder)

CMake Error at /usr/share/cmake-3.10/Modules/CMakeDetermineSystem.cmake:186 (configure_file):
configure_file Problem configuring file
Call Stack (most recent call first):
CMakeLists.txt:1 (project)


-- The C compiler identification is GNU 7.3.0
CMake Error at /usr/share/cmake-3.10/Modules/CMakeDetermineCCompiler.cmake:192 (configure_file):
configure_file Problem configuring file
Call Stack (most recent call first):
CMakeLists.txt:1 (project)


-- The CXX compiler identification is GNU 7.3.0
CMake Error at /usr/share/cmake-3.10/Modules/CMakeDetermineCXXCompiler.cmake:190 (configure_file):
configure_file Problem configuring file
Call Stack (most recent call first):
CMakeLists.txt:1 (project)


-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - failed
-- Detecting C compile features
-- Detecting C compile features - failed
CMake Error at /usr/share/cmake-3.10/Modules/CMakeTestCCompiler.cmake:72 (configure_file):
configure_file Problem configuring file
Call Stack (most recent call first):
CMakeLists.txt:1 (project)


-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - failed
-- Detecting CXX compile features
-- Detecting CXX compile features - failed
CMake Error at /usr/share/cmake-3.10/Modules/CMakeTestCXXCompiler.cmake:65 (configure_file):
configure_file Problem configuring file
Call Stack (most recent call first):
CMakeLists.txt:1 (project)


-- Configuring incomplete, errors occurred!
See also "/mnt/c/Users/<user>/AppData/Local/Temp/cmake_check_environment/_build543712673987259618/CMakeFiles/CMakeOutput.log".
See also "/mnt/c/Users/<user>/AppData/Local/Temp/cmake_check_environment/_build543712673987259618/CMakeFiles/CMakeError.log".

Error code: 1

1
6 comments

Reinstalled Ubuntu && WSL && CLion, DL'ed all the packages again, and now working... yaay.

0
Avatar
Permanently deleted user

Hi, 
You resolve your problem by reinstall, but I think that I found resolution of this problem: 
1. Create file wsl.conf in /etc/ with content: 

# /etc/wsl.conf
[automount]
options = "metadata"
enabled = true

2. Reboot your wsl
wsl.exe -t Ubuntu // (or other e.g. Debian)


Sources: 
https://docs.microsoft.com/en-us/windows/wsl/wsl-config

https://github.com/microsoft/WSL/issues/3994#issuecomment-507864837

33
Avatar
Permanently deleted user

Thanks for tracking that down!

 

0

Thank you Seweryngla, that worked for me :-)

0
Avatar
Permanently deleted user

The solution from Seweryngla worked for me too. I currently have CLion 2020.3 and WSL 2 with Ubuntu 20.04.2 LTS

0
Avatar
Paultristanwagner

Holy crap, thanks a million times Seweryngla!

0

Please sign in to leave a comment.