# virtualbox, cmake, nautilus samba mountpoints leading to system and compilers undefined

**URL:** https://discourse.cmake.org/t/virtualbox-cmake-nautilus-samba-mountpoints-leading-to-system-and-compilers-undefined/6167
**Category:** Usage
**Created:** [July 28, 2022, 5:40pm UTC](https://discourse.cmake.org/t/virtualbox-cmake-nautilus-samba-mountpoints-leading-to-system-and-compilers-undefined/6167 "2022-07-28T17:40:12Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![Gonzalo\_Garramuno](https://discourse.cmake.org/user_avatar/discourse.cmake.org/gonzalo_garramuno/32/265_2.png) [@Gonzalo\_Garramuno](https://discourse.cmake.org/u/Gonzalo_Garramuno)
#### Post date: [July 28, 2022, 5:40pm UTC](https://discourse.cmake.org/t/virtualbox-cmake-nautilus-samba-mountpoints-leading-to-system-and-compilers-undefined/6167/1 "2022-07-28T17:40:12Z")

</div>

I am using virtualbox’s bridge adapter on Ubuntu host with guest CentOS 7. I am running samba server on the Ubuntu machine.  
I can mount the directory I want from nautilus and the directory appears on the desktop, with a folder like:

“code in 192.xxx.0.85”.

If I launch a terminal on that directory, it points to:

/run/user/1000/gvfs/smb-share:server=192.xxx.0.85,share=code/

However, if I try to run cmake I get:

$ mkdir tmp && cd tmp  
$ cmake …  
CMake Error at /usr/local/share/cmake-3.24/Modules/CMakeDetermineSystem.cmake:194 (configure\_file):  
Operation not supported  
Call Stack (most recent call first):  
CMakeLists.txt:5 (project)

– The C compiler identification is unknown  
CMake Error at /usr/local/share/cmake-3.24/Modules/CMakeDetermineCCompiler.cmake:226 (configure\_file):  
Operation not supported  
Call Stack (most recent call first):  
CMakeLists.txt:5 (project)

– The CXX compiler identification is unknown  
CMake Error at /usr/local/share/cmake-3.24/Modules/CMakeDetermineCXXCompiler.cmake:226 (configure\_file):  
Operation not supported  
Call Stack (most recent call first):  
CMakeLists.txt:5 (project)

I am at a loss here. Any ideas on what I could try? cmake and the CMakeLists.txt file work fine when run in the Ubuntu machine as well as in the CentOS 7 machine when using virtualbox’s shared folders (instead of network share), except for hard links which are not supported on shared folders.

---

<div class="post-metadata">

### Author: ![craig.scott](https://discourse.cmake.org/user_avatar/discourse.cmake.org/craig.scott/32/20_2.png) [@craig.scott](https://discourse.cmake.org/u/craig.scott)
#### Post date: [July 29, 2022, 12:01am UTC](https://discourse.cmake.org/t/virtualbox-cmake-nautilus-samba-mountpoints-leading-to-system-and-compilers-undefined/6167/2 "2022-07-29T00:01:53Z")

</div>

Do you get the same error with earlier versions of CMake?

---

<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: [July 29, 2022, 1:42am UTC](https://discourse.cmake.org/t/virtualbox-cmake-nautilus-samba-mountpoints-leading-to-system-and-compilers-undefined/6167/3 "2022-07-29T01:42:38Z")

</div>

Using `strace` to find out what operation is not actually supported would be useful. I suspect there’s an issue setting timestamps or permissions, but that’s just a guess.

---

<div class="post-metadata">

### Author: ![Gonzalo\_Garramuno](https://discourse.cmake.org/user_avatar/discourse.cmake.org/gonzalo_garramuno/32/265_2.png) [@Gonzalo\_Garramuno](https://discourse.cmake.org/u/Gonzalo_Garramuno)
#### Post date: [July 29, 2022, 10:10pm UTC](https://discourse.cmake.org/t/virtualbox-cmake-nautilus-samba-mountpoints-leading-to-system-and-compilers-undefined/6167/4 "2022-07-29T22:10:20Z")

</div>

I was able to solve the issue, by moving the mounting of the file system to /etc/fstab. Now the only thing I am facing is a file stamp issue which makes the project recompile every time I run make.
