# Unknow system error when using cmake-gui

**URL:** https://discourse.cmake.org/t/unknow-system-error-when-using-cmake-gui/172
**Category:** Usage
**Created:** [November 8, 2019, 8:11pm UTC](https://discourse.cmake.org/t/unknow-system-error-when-using-cmake-gui/172 "2019-11-08T20:11:20Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![Rufus7](https://discourse.cmake.org/letter_avatar_proxy/v4/letter/r/aca169/32.png) [@Rufus7](https://discourse.cmake.org/u/Rufus7)
#### Post date: [November 8, 2019, 8:11pm UTC](https://discourse.cmake.org/t/unknow-system-error-when-using-cmake-gui/172/1 "2019-11-08T20:11:20Z")

</div>

Few days ago, I used cmake to configure a package and it worked fine. But for some reason I need to uninstall this package and install it all over again. So I run these commands under /build:

$sudo make uninstall  
$sudo make clean

then I removed /build and the whole package file.

after that, I git the new package on the github and tried to install it.

And the problem occurred when I tried to use cmake-gui to configure the package I just downloaded.

# The error message pop up in gui is:

* * *

System is unknown to cmake, create:  
Platform/sh: 0: getcwd() failed: No such file or directory  
Linux to use this system, please send your config file to [cmake@www.cmake.org](mailto:cmake@www.cmake.org) so it can be added to cmake  
Your CMakeCache.txt file was copied to CopyOfCMakeCache.txt. Please send that file to [cmake@www.cmake.org](mailto:cmake@www.cmake.org).  
CMake Error at CMakeLists.txt:41 (message):  
Unsupported operating system. Only Windows, Mac and Unix systems  
supported.

* * *

# and the CMakeError.log:

* * *

Compiling the C compiler identification source file “CMakeCCompilerId.c” failed.  
Compiler: /usr/bin/cc  
Build flags:  
Id flags:

The output was:  
No such file or directory

Compiling the C compiler identification source file “CMakeCCompilerId.c” failed.  
Compiler: /usr/bin/cc  
Build flags:  
Id flags: -c

The output was:  
No such file or directory

Compiling the C compiler identification source file “CMakeCCompilerId.c” failed.  
Compiler: /usr/bin/cc  
Build flags:  
Id flags: -Aa

The output was:  
No such file or directory

Checking whether the C compiler is IAR using “” did not match “IAR .+ Compiler”:  
Compiling the CXX compiler identification source file “CMakeCXXCompilerId.cpp” failed.  
Compiler: /usr/bin/c++  
Build flags:  
Id flags:

The output was:  
No such file or directory

Compiling the CXX compiler identification source file “CMakeCXXCompilerId.cpp” failed.  
Compiler: /usr/bin/c++  
Build flags:  
Id flags: -c

The output was:  
No such file or directory

Checking whether the CXX compiler is IAR using “” did not match “IAR .+ Compiler”:

* * *

# and the CMakeCache.txt as follow:

* * *

This is the CMakeCache file.  
For build in directory: /home/rongqi/openpose/openpose/build  
It was generated by CMake: /usr/bin/cmake  
You can edit this file to change values found and used by cmake.  
If you do not want to change any of the values, simply exit the editor.  
If you do want to change a value, simply edit, save, and exit the editor.  
The syntax for the file is as follows:  
KEY:TYPE=VALUE  
KEY is the name of a variable in the cache.  
TYPE is a hint to GUIs for the type of VALUE, DO NOT EDIT TYPE!.  
VALUE is the current value for the KEY.

########################

# EXTERNAL cache entries

########################

//Path to a program.  
CMAKE\_AR:FILEPATH=/usr/bin/ar

//Choose the type of build, options are: None(CMAKE\_CXX\_FLAGS or  
// CMAKE\_C\_FLAGS used) Debug Release RelWithDebInfo MinSizeRel.  
CMAKE\_BUILD\_TYPE:STRING=

//Enable/Disable color output during build.  
CMAKE\_COLOR\_MAKEFILE:BOOL=ON

//CXX compiler  
CMAKE\_CXX\_COMPILER:FILEPATH=/usr/bin/c++

//Flags used by the compiler during all build types.  
CMAKE\_CXX\_FLAGS:STRING=

//Flags used by the compiler during debug builds.  
CMAKE\_CXX\_FLAGS\_DEBUG:STRING=

//Flags used by the compiler during release builds for minimum  
// size.  
CMAKE\_CXX\_FLAGS\_MINSIZEREL:STRING=

//Flags used by the compiler during release builds.  
CMAKE\_CXX\_FLAGS\_RELEASE:STRING=

//Flags used by the compiler during release builds with debug info.  
CMAKE\_CXX\_FLAGS\_RELWITHDEBINFO:STRING=

//C compiler  
CMAKE\_C\_COMPILER:FILEPATH=/usr/bin/cc

//Flags used by the compiler during all build types.  
CMAKE\_C\_FLAGS:STRING=

//Flags used by the compiler during debug builds.  
CMAKE\_C\_FLAGS\_DEBUG:STRING=

//Flags used by the compiler during release builds for minimum  
// size.  
CMAKE\_C\_FLAGS\_MINSIZEREL:STRING=

//Flags used by the compiler during release builds.  
CMAKE\_C\_FLAGS\_RELEASE:STRING=

//Flags used by the compiler during release builds with debug info.  
CMAKE\_C\_FLAGS\_RELWITHDEBINFO:STRING=

//Flags used by the linker.  
CMAKE\_EXE\_LINKER\_FLAGS:STRING=

//Flags used by the linker during debug builds.  
CMAKE\_EXE\_LINKER\_FLAGS\_DEBUG:STRING=

//Flags used by the linker during release minsize builds.  
CMAKE\_EXE\_LINKER\_FLAGS\_MINSIZEREL:STRING=

//Flags used by the linker during release builds.  
CMAKE\_EXE\_LINKER\_FLAGS\_RELEASE:STRING=

//Flags used by the linker during Release with Debug Info builds.  
CMAKE\_EXE\_LINKER\_FLAGS\_RELWITHDEBINFO:STRING=

//Enable/Disable output of compile commands during generation.  
CMAKE\_EXPORT\_COMPILE\_COMMANDS:BOOL=OFF

//Install path prefix, prepended onto install directories.  
CMAKE\_INSTALL\_PREFIX:PATH=/usr/local

//Path to a program.  
CMAKE\_LINKER:FILEPATH=/usr/bin/ld

//Path to a program.  
CMAKE\_MAKE\_PROGRAM:FILEPATH=/usr/bin/make

//Flags used by the linker during the creation of modules.  
CMAKE\_MODULE\_LINKER\_FLAGS:STRING=

//Flags used by the linker during debug builds.  
CMAKE\_MODULE\_LINKER\_FLAGS\_DEBUG:STRING=

//Flags used by the linker during release minsize builds.  
CMAKE\_MODULE\_LINKER\_FLAGS\_MINSIZEREL:STRING=

//Flags used by the linker during release builds.  
CMAKE\_MODULE\_LINKER\_FLAGS\_RELEASE:STRING=

//Flags used by the linker during Release with Debug Info builds.  
CMAKE\_MODULE\_LINKER\_FLAGS\_RELWITHDEBINFO:STRING=

//Path to a program.  
CMAKE\_NM:FILEPATH=/usr/bin/nm

//Path to a program.  
CMAKE\_OBJCOPY:FILEPATH=/usr/bin/objcopy

//Path to a program.  
CMAKE\_OBJDUMP:FILEPATH=/usr/bin/objdump

//Value Computed by CMake  
CMAKE\_PROJECT\_NAME:STATIC=OpenPose

//Path to a program.  
CMAKE\_RANLIB:FILEPATH=/usr/bin/ranlib

//Flags used by the linker during the creation of dll’s.  
CMAKE\_SHARED\_LINKER\_FLAGS:STRING=

//Flags used by the linker during debug builds.  
CMAKE\_SHARED\_LINKER\_FLAGS\_DEBUG:STRING=

//Flags used by the linker during release minsize builds.  
CMAKE\_SHARED\_LINKER\_FLAGS\_MINSIZEREL:STRING=

//Flags used by the linker during release builds.  
CMAKE\_SHARED\_LINKER\_FLAGS\_RELEASE:STRING=

//Flags used by the linker during Release with Debug Info builds.  
CMAKE\_SHARED\_LINKER\_FLAGS\_RELWITHDEBINFO:STRING=

//If set, runtime paths are not added when installing shared libraries,  
// but are added when building.  
CMAKE\_SKIP\_INSTALL\_RPATH:BOOL=OFF

//If set, runtime paths are not added when using shared libraries.  
CMAKE\_SKIP\_RPATH:BOOL=OFF

//Flags used by the linker during the creation of static libraries.  
CMAKE\_STATIC\_LINKER\_FLAGS:STRING=

//Flags used by the linker during debug builds.  
CMAKE\_STATIC\_LINKER\_FLAGS\_DEBUG:STRING=

//Flags used by the linker during release minsize builds.  
CMAKE\_STATIC\_LINKER\_FLAGS\_MINSIZEREL:STRING=

//Flags used by the linker during release builds.  
CMAKE\_STATIC\_LINKER\_FLAGS\_RELEASE:STRING=

//Flags used by the linker during Release with Debug Info builds.  
CMAKE\_STATIC\_LINKER\_FLAGS\_RELWITHDEBINFO:STRING=

//Path to a program.  
CMAKE\_STRIP:FILEPATH=/usr/bin/strip

//If this value is on, makefiles will be generated without the  
// .SILENT directive, and all commands will be echoed to the console  
// during the make. This is useful for debugging only. With Visual  
// Studio IDE projects all commands are done without /nologo.  
CMAKE\_VERBOSE\_MAKEFILE:BOOL=OFF

//Value Computed by CMake  
OpenPose\_BINARY\_DIR:STATIC=/home/rongqi/openpose/openpose/build

//Value Computed by CMake  
OpenPose\_SOURCE\_DIR:STATIC=/home/rongqi/openpose/openpose

########################

# INTERNAL cache entries

########################

//ADVANCED property for variable: CMAKE\_AR  
CMAKE\_AR-ADVANCED:INTERNAL=1  
//This is the directory where this CMakeCache.txt was created  
CMAKE\_CACHEFILE\_DIR:INTERNAL=/home/rongqi/openpose/openpose/build  
//Major version of cmake used to create the current loaded cache  
CMAKE\_CACHE\_MAJOR\_VERSION:INTERNAL=3  
//Minor version of cmake used to create the current loaded cache  
CMAKE\_CACHE\_MINOR\_VERSION:INTERNAL=5  
//Patch version of cmake used to create the current loaded cache  
CMAKE\_CACHE\_PATCH\_VERSION:INTERNAL=1  
//ADVANCED property for variable: CMAKE\_COLOR\_MAKEFILE  
CMAKE\_COLOR\_MAKEFILE-ADVANCED:INTERNAL=1  
//Path to CMake executable.  
CMAKE\_COMMAND:INTERNAL=/usr/bin/cmake  
//Path to cpack program executable.  
CMAKE\_CPACK\_COMMAND:INTERNAL=/usr/bin/cpack  
//Path to ctest program executable.  
CMAKE\_CTEST\_COMMAND:INTERNAL=/usr/bin/ctest  
//ADVANCED property for variable: CMAKE\_CXX\_COMPILER  
CMAKE\_CXX\_COMPILER-ADVANCED:INTERNAL=1  
//ADVANCED property for variable: CMAKE\_CXX\_FLAGS  
CMAKE\_CXX\_FLAGS-ADVANCED:INTERNAL=1  
//ADVANCED property for variable: CMAKE\_CXX\_FLAGS\_DEBUG  
CMAKE\_CXX\_FLAGS\_DEBUG-ADVANCED:INTERNAL=1  
//ADVANCED property for variable: CMAKE\_CXX\_FLAGS\_MINSIZEREL  
CMAKE\_CXX\_FLAGS\_MINSIZEREL-ADVANCED:INTERNAL=1  
//ADVANCED property for variable: CMAKE\_CXX\_FLAGS\_RELEASE  
CMAKE\_CXX\_FLAGS\_RELEASE-ADVANCED:INTERNAL=1  
//ADVANCED property for variable: CMAKE\_CXX\_FLAGS\_RELWITHDEBINFO  
CMAKE\_CXX\_FLAGS\_RELWITHDEBINFO-ADVANCED:INTERNAL=1  
//ADVANCED property for variable: CMAKE\_C\_COMPILER  
CMAKE\_C\_COMPILER-ADVANCED:INTERNAL=1  
//ADVANCED property for variable: CMAKE\_C\_FLAGS  
CMAKE\_C\_FLAGS-ADVANCED:INTERNAL=1  
//ADVANCED property for variable: CMAKE\_C\_FLAGS\_DEBUG  
CMAKE\_C\_FLAGS\_DEBUG-ADVANCED:INTERNAL=1  
//ADVANCED property for variable: CMAKE\_C\_FLAGS\_MINSIZEREL  
CMAKE\_C\_FLAGS\_MINSIZEREL-ADVANCED:INTERNAL=1  
//ADVANCED property for variable: CMAKE\_C\_FLAGS\_RELEASE  
CMAKE\_C\_FLAGS\_RELEASE-ADVANCED:INTERNAL=1  
//ADVANCED property for variable: CMAKE\_C\_FLAGS\_RELWITHDEBINFO  
CMAKE\_C\_FLAGS\_RELWITHDEBINFO-ADVANCED:INTERNAL=1  
//Path to cache edit program executable.  
CMAKE\_EDIT\_COMMAND:INTERNAL=/usr/bin/cmake-gui  
//Executable file format  
CMAKE\_EXECUTABLE\_FORMAT:INTERNAL=Unknown  
//ADVANCED property for variable: CMAKE\_EXE\_LINKER\_FLAGS  
CMAKE\_EXE\_LINKER\_FLAGS-ADVANCED:INTERNAL=1  
//ADVANCED property for variable: CMAKE\_EXE\_LINKER\_FLAGS\_DEBUG  
CMAKE\_EXE\_LINKER\_FLAGS\_DEBUG-ADVANCED:INTERNAL=1  
//ADVANCED property for variable: CMAKE\_EXE\_LINKER\_FLAGS\_MINSIZEREL  
CMAKE\_EXE\_LINKER\_FLAGS\_MINSIZEREL-ADVANCED:INTERNAL=1  
//ADVANCED property for variable: CMAKE\_EXE\_LINKER\_FLAGS\_RELEASE  
CMAKE\_EXE\_LINKER\_FLAGS\_RELEASE-ADVANCED:INTERNAL=1  
//ADVANCED property for variable: CMAKE\_EXE\_LINKER\_FLAGS\_RELWITHDEBINFO  
CMAKE\_EXE\_LINKER\_FLAGS\_RELWITHDEBINFO-ADVANCED:INTERNAL=1  
//ADVANCED property for variable: CMAKE\_EXPORT\_COMPILE\_COMMANDS  
CMAKE\_EXPORT\_COMPILE\_COMMANDS-ADVANCED:INTERNAL=1  
//Name of external makefile project generator.  
CMAKE\_EXTRA\_GENERATOR:INTERNAL=  
//Name of generator.  
CMAKE\_GENERATOR:INTERNAL=Unix Makefiles  
//Name of generator platform.  
CMAKE\_GENERATOR\_PLATFORM:INTERNAL=  
//Name of generator toolset.  
CMAKE\_GENERATOR\_TOOLSET:INTERNAL=  
//Source directory with the top level CMakeLists.txt file for this  
// project  
CMAKE\_HOME\_DIRECTORY:INTERNAL=/home/rongqi/openpose/openpose  
//ADVANCED property for variable: CMAKE\_LINKER  
CMAKE\_LINKER-ADVANCED:INTERNAL=1  
//ADVANCED property for variable: CMAKE\_MAKE\_PROGRAM  
CMAKE\_MAKE\_PROGRAM-ADVANCED:INTERNAL=1  
//ADVANCED property for variable: CMAKE\_MODULE\_LINKER\_FLAGS  
CMAKE\_MODULE\_LINKER\_FLAGS-ADVANCED:INTERNAL=1  
//ADVANCED property for variable: CMAKE\_MODULE\_LINKER\_FLAGS\_DEBUG  
CMAKE\_MODULE\_LINKER\_FLAGS\_DEBUG-ADVANCED:INTERNAL=1  
//ADVANCED property for variable: CMAKE\_MODULE\_LINKER\_FLAGS\_MINSIZEREL  
CMAKE\_MODULE\_LINKER\_FLAGS\_MINSIZEREL-ADVANCED:INTERNAL=1  
//ADVANCED property for variable: CMAKE\_MODULE\_LINKER\_FLAGS\_RELEASE  
CMAKE\_MODULE\_LINKER\_FLAGS\_RELEASE-ADVANCED:INTERNAL=1  
//ADVANCED property for variable: CMAKE\_MODULE\_LINKER\_FLAGS\_RELWITHDEBINFO  
CMAKE\_MODULE\_LINKER\_FLAGS\_RELWITHDEBINFO-ADVANCED:INTERNAL=1  
//ADVANCED property for variable: CMAKE\_NM  
CMAKE\_NM-ADVANCED:INTERNAL=1  
//number of local generators  
CMAKE\_NUMBER\_OF\_MAKEFILES:INTERNAL=1  
//ADVANCED property for variable: CMAKE\_OBJCOPY  
CMAKE\_OBJCOPY-ADVANCED:INTERNAL=1  
//ADVANCED property for variable: CMAKE\_OBJDUMP  
CMAKE\_OBJDUMP-ADVANCED:INTERNAL=1  
//ADVANCED property for variable: CMAKE\_RANLIB  
CMAKE\_RANLIB-ADVANCED:INTERNAL=1  
//Path to CMake installation.  
CMAKE\_ROOT:INTERNAL=/usr/share/cmake-3.5  
//ADVANCED property for variable: CMAKE\_SHARED\_LINKER\_FLAGS  
CMAKE\_SHARED\_LINKER\_FLAGS-ADVANCED:INTERNAL=1  
//ADVANCED property for variable: CMAKE\_SHARED\_LINKER\_FLAGS\_DEBUG  
CMAKE\_SHARED\_LINKER\_FLAGS\_DEBUG-ADVANCED:INTERNAL=1  
//ADVANCED property for variable: CMAKE\_SHARED\_LINKER\_FLAGS\_MINSIZEREL  
CMAKE\_SHARED\_LINKER\_FLAGS\_MINSIZEREL-ADVANCED:INTERNAL=1  
//ADVANCED property for variable: CMAKE\_SHARED\_LINKER\_FLAGS\_RELEASE  
CMAKE\_SHARED\_LINKER\_FLAGS\_RELEASE-ADVANCED:INTERNAL=1  
//ADVANCED property for variable: CMAKE\_SHARED\_LINKER\_FLAGS\_RELWITHDEBINFO  
CMAKE\_SHARED\_LINKER\_FLAGS\_RELWITHDEBINFO-ADVANCED:INTERNAL=1  
//ADVANCED property for variable: CMAKE\_SKIP\_INSTALL\_RPATH  
CMAKE\_SKIP\_INSTALL\_RPATH-ADVANCED:INTERNAL=1  
//ADVANCED property for variable: CMAKE\_SKIP\_RPATH  
CMAKE\_SKIP\_RPATH-ADVANCED:INTERNAL=1  
//ADVANCED property for variable: CMAKE\_STATIC\_LINKER\_FLAGS  
CMAKE\_STATIC\_LINKER\_FLAGS-ADVANCED:INTERNAL=1  
//ADVANCED property for variable: CMAKE\_STATIC\_LINKER\_FLAGS\_DEBUG  
CMAKE\_STATIC\_LINKER\_FLAGS\_DEBUG-ADVANCED:INTERNAL=1  
//ADVANCED property for variable: CMAKE\_STATIC\_LINKER\_FLAGS\_MINSIZEREL  
CMAKE\_STATIC\_LINKER\_FLAGS\_MINSIZEREL-ADVANCED:INTERNAL=1  
//ADVANCED property for variable: CMAKE\_STATIC\_LINKER\_FLAGS\_RELEASE  
CMAKE\_STATIC\_LINKER\_FLAGS\_RELEASE-ADVANCED:INTERNAL=1  
//ADVANCED property for variable: CMAKE\_STATIC\_LINKER\_FLAGS\_RELWITHDEBINFO  
CMAKE\_STATIC\_LINKER\_FLAGS\_RELWITHDEBINFO-ADVANCED:INTERNAL=1  
//ADVANCED property for variable: CMAKE\_STRIP  
CMAKE\_STRIP-ADVANCED:INTERNAL=1  
//uname command  
CMAKE\_UNAME:INTERNAL=/bin/uname  
//ADVANCED property for variable: CMAKE\_VERBOSE\_MAKEFILE  
CMAKE\_VERBOSE\_MAKEFILE-ADVANCED:INTERNAL=1

* * *

# system that I used:

ubuntu 16.04.12

cmake version 3.5.1

GNU Make 4.1  
Built for x86\_64-pc-linux-gnu

cmake-gui: cmake-qt-gui

* * *

# Question:

1.what happened to the package so that cmake cannot recognize my system.(cmake works fine before I remove the package file and downloaded it again)  
2.How to solve this problem

* * *

If more information is needed, please feel free to reply and ask.

Thanks in advance

---

<div class="post-metadata">

### Author: ![ben.boeckel](https://discourse.cmake.org/letter_avatar_proxy/v4/letter/b/ea5d25/32.png) [@ben.boeckel](https://discourse.cmake.org/u/ben.boeckel)
#### Post date: [February 15, 2020, 10:26pm UTC](https://discourse.cmake.org/t/unknow-system-error-when-using-cmake-gui/172/2 "2020-02-15T22:26:39Z")

</div>

> [@Rufus7](#):
>
> then I removed /build and the whole package file.

> [@Rufus7](#):
>
> Platform/sh: 0: getcwd() failed: No such file or directory

You removed `/build` (and presumably recreated it), but did you get the shell you ran CMake from to _use_ that new directory? I think this is what you saw:

Shell 1 (with sequence points for Shell 2):

```sh
$ mkdir foo
# seq1
$ rmdir foo
# seq2

```

```sh
# seq1
$ cd foo
# seq2
$ touch bar
touch: cannot touch 'bar': No such file or directory

```

This is because the cwd of the second shell was removed.

---

<div class="post-metadata">

### Author: ![Rufus7](https://discourse.cmake.org/letter_avatar_proxy/v4/letter/r/aca169/32.png) [@Rufus7](https://discourse.cmake.org/u/Rufus7)
#### Post date: [February 17, 2020, 11:27pm UTC](https://discourse.cmake.org/t/unknow-system-error-when-using-cmake-gui/172/3 "2020-02-17T23:27:47Z")

</div>

Thank you for your reply!  
Since I have moved on to another project, I will look at that when the error pop again.

Thanks again!
