# CMake error in CLion: /builder.py: ValueError: Could not determine compiler family. Use --compiler-family to disambiguate

**URL:** https://forum.yugabyte.com/t/cmake-error-in-clion-builder-py-valueerror-could-not-determine-compiler-family-use-compiler-family-to-disambiguate/2048
**Category:** General
**Created:** [March 30, 2023, 7:30am UTC](https://forum.yugabyte.com/t/cmake-error-in-clion-builder-py-valueerror-could-not-determine-compiler-family-use-compiler-family-to-disambiguate/2048 "2023-03-30T07:30:39Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![liubaogang](https://avatars.discourse-cdn.com/v4/letter/l/f9ae1b/32.png) [@liubaogang](https://forum.yugabyte.com/u/liubaogang)
#### Post date: [March 30, 2023, 7:30am UTC](https://forum.yugabyte.com/t/cmake-error-in-clion-builder-py-valueerror-could-not-determine-compiler-family-use-compiler-family-to-disambiguate/2048/1 "2023-03-30T07:30:39Z")

</div>

Hi,

In terminal, ‘./yb\_build.sh release’, ‘./yb\_build.sh’ and ‘YB\_USE\_NINJA=0 ./yb\_build.sh’ succeed. But in CLion, the CMake output error message as below. I am using CLion 2022.3.3 on AlmaLinux 8.7, with yugabyte-db source code version ‘Commit 661f4736 by tnayak, 03/24/2023 01:49 PM committed 03/28/2023 08:02 AM parent 3831c854’.

Below is the screen shot of the CMake configuration in CLion. Any other configuration needed for CMake in CLion?

 ![image](https://canada1.discourse-cdn.com/flex027/uploads/yugabyte/original/1X/bc023bf58e4ab232a268671053547a7b7a42ac60.jpeg)

> /home/liubaogang/.local/share/JetBrains/Toolbox/apps/CLion/ch-0/223.8836.42/bin/cmake/linux/x64/bin/cmake -DCMAKE\_BUILD\_TYPE=Debug -S /home/liubaogang/code/yugabyte-db -B /home/liubaogang/code/yugabyte-db/build/debug-clang-dynamic  
> – The C compiler identification is GNU 8.5.0  
> – The CXX compiler identification is GNU 8.5.0  
> – Detecting C compiler ABI info  
> – Detecting C compiler ABI info - done  
> – Check for working C compiler: /usr/lib64/ccache/cc - skipped  
> – Detecting C compile features  
> – Detecting C compile features - done  
> – Detecting CXX compiler ABI info  
> – Detecting CXX compiler ABI info - done  
> – Check for working CXX compiler: /usr/lib64/ccache/c++ - skipped  
> – Detecting CXX compile features  
> – Detecting CXX compile features - done  
> – CMAKE\_SYSTEM\_INFO\_FILE: Platform/Linux  
> – CMAKE\_SYSTEM\_NAME: Linux  
> – CMAKE\_SYSTEM\_PROCESSOR: x86\_64  
> – CMAKE\_SYSTEM: Linux-4.18.0-425.13.1.el8\_7.x86\_64  
> – CMAKE\_VERSION: 3.24.2  
> – PRECOMPILED HEADERS: OFF  
> Will build tests by default  
> YB\_BUILD\_TESTS=ON  
> Will not build fuzz targets by default  
> YB\_BUILD\_FUZZ\_TARGETS=OFF  
> YB\_BUILD\_TYPE: debug  
> YB\_LINKING\_TYPE: dynamic  
> CMAKE\_MAKE\_PROGRAM: /usr/bin/gmake  
> YB\_SRC\_ROOT: /home/liubaogang/code/yugabyte-db  
> YB\_THIRDPARTY\_DIR: /home/liubaogang/code/yugabyte-db/thirdparty  
> YB\_BUILD\_ROOT: /home/liubaogang/code/yugabyte-db/build/debug-clang-dynamic  
> YB\_TARGET\_ARCH: x86\_64  
> Detected the number of logical CPUs: 4  
> Using shared library suffix ‘.so’.  
> CMAKE\_C\_COMPILER=/usr/lib64/ccache/cc  
> CMAKE\_CXX\_COMPILER=/usr/lib64/ccache/c++  
> LATEST SYMLINK PATH: /home/liubaogang/code/yugabyte-db/build/latest  
> YB\_COMPILER\_TYPE env var: clang  
> CMAKE\_CXX\_COMPILER=/usr/lib64/ccache/c++  
> Compiler version information:  
> Using built-in specs.  
> COLLECT\_GCC=/usr/bin/c++  
> COLLECT\_LTO\_WRAPPER=/usr/libexec/gcc/x86\_64-redhat-linux/8/lto-wrapper  
> OFFLOAD\_TARGET\_NAMES=nvptx-none  
> OFFLOAD\_TARGET\_DEFAULT=1  
> Target: x86\_64-redhat-linux  
> Configured with: …/configure --enable-bootstrap --enable-languages=c,c++,fortran,lto --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --with-bugurl=[http://bugs.almalinux.org/](http://bugs.almalinux.org/) --enable-shared --enable-threads=posix --enable-checking=release --enable-multilib --with-system-zlib --enable-\_\_cxa\_atexit --disable-libunwind-exceptions --enable-gnu-unique-object --enable-linker-build-id --with-gcc-major-version-only --with-linker-hash-style=gnu --enable-plugin --enable-initfini-array --with-isl --disable-libmpx --enable-offload-targets=nvptx-none --without-cuda-driver --enable-gnu-indirect-function --enable-cet --with-tune=generic --with-arch\_32=x86-64 --build=x86\_64-redhat-linux  
> Thread model: posix  
> gcc version 8.5.0 20210514 (Red Hat 8.5.0-16) (GCC)
> 
> Selected compiler family ‘gcc’, version ‘8.5.0’  
> THIRDPARTY\_INSTRUMENTATION\_TYPE=uninstrumented  
> Invoking build\_thirdparty.sh with these arguments: --build-type;uninstrumented
> 
> - cd /home/liubaogang/code/yugabyte-db/thirdparty
> - pip3 install --quiet -r requirements.txt  
> WARNING: You are using pip version 20.2.4; however, version 23.0.1 is available.  
> You should consider upgrading via the ‘/home/liubaogang/code/yugabyte-db/thirdparty/venv/bin/python3 -m pip install --upgrade pip’ command.
> 
> Logging to /home/liubaogang/logs/build\_thirdparty\_2023-03-30T14\_49\_17.log (linked to build\_thirdparty\_latest.log)
> 
> - python3 /home/liubaogang/code/yugabyte-db/thirdparty/python/yugabyte\_db\_thirdparty/yb\_build\_thirdparty\_main.py --build-type uninstrumented  
> Unsetting CC for third-party build (was set to “/usr/lib64/ccache/cc”).  
> Unsetting CXX for third-party build (was set to “/usr/lib64/ccache/c++”).  
> Traceback (most recent call last):  
> File “/home/liubaogang/code/yugabyte-db/thirdparty/python/yugabyte\_db\_thirdparty/yb\_build\_thirdparty\_main.py”, line 105, in   
> main()  
> File “/home/liubaogang/code/yugabyte-db/thirdparty/python/yugabyte\_db\_thirdparty/yb\_build\_thirdparty\_main.py”, line 53, in main  
> builder.parse\_args()  
> File “/home/liubaogang/code/yugabyte-db/thirdparty/python/yugabyte\_db\_thirdparty/builder.py”, line 259, in parse\_args  
> compiler\_family, compiler\_prefix = self.determine\_compiler\_family\_and\_prefix()  
> File “/home/liubaogang/code/yugabyte-db/thirdparty/python/yugabyte\_db\_thirdparty/builder.py”, line 239, in determine\_compiler\_family\_and\_prefix  
> raise ValueError(  
> ValueError: Could not determine compiler family. Use --compiler-family to disambiguate.
> 
> Log saved to /home/liubaogang/logs/build\_thirdparty\_2023-03-30T14\_49\_17.log
> 
> CMake Error at CMakeLists.txt:248 (message):  
> Thirdparty was built unsuccessfully, terminating.
> 
> – Configuring incomplete, errors occurred!  
> See also “/home/liubaogang/code/yugabyte-db/build/debug-clang-dynamic/CMakeFiles/CMakeOutput.log”.
> 
> [Finished]

---

<div class="post-metadata">

### Author: ![dorian\_yugabyte](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.yugabyte.com/dorian_yugabyte/32/206_2.png) [@dorian\_yugabyte](https://forum.yugabyte.com/u/dorian_yugabyte)
#### Post date: [April 12, 2023, 2:28pm UTC](https://forum.yugabyte.com/t/cmake-error-in-clion-builder-py-valueerror-could-not-determine-compiler-family-use-compiler-family-to-disambiguate/2048/2 "2023-04-12T14:28:45Z")

</div>

cc @svarnau @mbautin
