Can't build tarantool with clang and gcov enabled.
OS: NixOS
OS Version: 24.11 (Vicuna)
Architecture: amd64
git describe
3.3.0-entrypoint-106-g1080995fa4
Steps to reproduce
On a system with clang compiler run:
mkdir build && cd build && cmake -DENABLE_GCOV=ON ../
Actual behavior
CMake Error at cmake/profile.cmake:17 (message):
ENABLE_GCOV option requested but gcov library is not found
Call Stack (most recent call first):
CMakeLists.txt:79 (include)
Full log
```log
CMake Deprecation Warning at CMakeLists.txt:1 (cmake_minimum_required):
Compatibility with CMake < 3.5 will be removed from a future version of
CMake.
Update the VERSION argument value or use a ... suffix to tell
CMake that the project does not need compatibility with older versions.
-- The C compiler identification is Clang 18.1.8
-- The CXX compiler identification is Clang 18.1.8
-- The ASM compiler identification is Clang with GNU-like command-line
-- Found assembler: /nix/store/4rz4z2bkb68vwbdxcwq0jxh2fyhhiqkh-clang-wrapper-18.1.8/bin/clang
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /nix/store/4rz4z2bkb68vwbdxcwq0jxh2fyhhiqkh-clang-wrapper-18.1.8/bin/clang - 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: /nix/store/4rz4z2bkb68vwbdxcwq0jxh2fyhhiqkh-clang-wrapper-18.1.8/bin/clang++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Building for Linux
-- Performing Test HAVE_STD_C11
-- Performing Test HAVE_STD_C11 - Success
-- Performing Test HAVE_STD_GNU99
-- Performing Test HAVE_STD_GNU99 - Success
-- Performing Test HAVE_STD_CXX11
-- Performing Test HAVE_STD_CXX11 - Success
-- Performing Test HAVE_STD_GNUXX0X
-- Performing Test HAVE_STD_GNUXX0X - Success
-- Performing Test CC_HAS_WNO_PARENTHESES
-- Performing Test CC_HAS_WNO_PARENTHESES - Success
-- Performing Test CC_HAS_WNO_PARENTHESES_EQUALITY
-- Performing Test CC_HAS_WNO_PARENTHESES_EQUALITY - Success
-- Performing Test CC_HAS_WNO_TAUTOLOGICAL_COMPARE
-- Performing Test CC_HAS_WNO_TAUTOLOGICAL_COMPARE - Success
-- Performing Test CC_HAS_WNO_MISLEADING_INDENTATION
-- Performing Test CC_HAS_WNO_MISLEADING_INDENTATION - Success
-- Performing Test CC_HAS_WNO_VARARGS
-- Performing Test CC_HAS_WNO_VARARGS - Success
-- Performing Test CC_HAS_WNO_IMPLICIT_FALLTHROUGH
-- Performing Test CC_HAS_WNO_IMPLICIT_FALLTHROUGH - Success
-- Performing Test CC_HAS_WNO_CAST_FUNCTION_TYPE
-- Performing Test CC_HAS_WNO_CAST_FUNCTION_TYPE - Success
-- Performing Test CC_HAS_GGDB
-- Performing Test CC_HAS_GGDB - Success
-- Performing Test HAVE_FORCE_ALIGN_ARG_POINTER_ATTR
-- Performing Test HAVE_FORCE_ALIGN_ARG_POINTER_ATTR - Success
-- Performing Test HAVE_CFI_ASM
-- Performing Test HAVE_CFI_ASM - Success
-- Looking for stdatomic.h
-- Looking for stdatomic.h - found
-- Enabling LTO: FALSE
-- Performing Test CC_HAS_SSE2_INTRINSICS
-- Performing Test CC_HAS_SSE2_INTRINSICS - Success
-- Performing Test CC_HAS_AVX_INTRINSICS
-- Performing Test CC_HAS_AVX_INTRINSICS - Success
-- SSE2 is enabled - target CPU must supppot it
-- Performing Test CC_HAS_ATOMICS
-- Performing Test CC_HAS_ATOMICS - Success
-- Looking for __gcov_flush in
-- Looking for __gcov_flush in - not found
CMake Error at cmake/profile.cmake:17 (message):
ENABLE_GCOV option requested but gcov library is not found
Call Stack (most recent call first):
CMakeLists.txt:79 (include)
```
-- Configuring incomplete, errors occurred!
Expected behavior
cmake finishes successfully, tarantool can be built with gcov support afterwards.
Bug description
Can't build tarantool with clang and gcov enabled.
Steps to reproduce
On a system with clang compiler run:
Actual behavior
Full log
```log CMake Deprecation Warning at CMakeLists.txt:1 (cmake_minimum_required): Compatibility with CMake < 3.5 will be removed from a future version of CMake. Update the VERSION argumentExpected behavior
cmake finishes successfully, tarantool can be built with gcov support afterwards.