I’m trying to build Couchbase memcached version v4.6.5 on a ppc64le
machine (GCC 11.4.0, CMake 3.22+) and encountered the following issue during the CMake configuration step:
CMake Warning (dev) at CMakeLists.txt:1 (PROJECT):
cmake_minimum_required() should be called prior to this top-level project()
call. Please see the cmake-commands(7) manual for usage documentation of
both commands.
This warning is for project developers. Use -Wno-dev to suppress it.
– The C compiler identification is GNU 11.5.0
– The CXX compiler identification is GNU 11.5.0
– Detecting C compiler ABI info
– Detecting C compiler ABI info - done
– Check for working C compiler: /usr/bin/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/bin/c++ - skipped
– Detecting CXX compile features
– Detecting CXX compile features - done
CMake Deprecation Warning at CMakeLists.txt:2 (CMAKE_MINIMUM_REQUIRED):
Compatibility with CMake < 2.8.12 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.
– Performing Test HAVE_PKCS5_PBKDF2_HMAC_SHA1
– Performing Test HAVE_PKCS5_PBKDF2_HMAC_SHA1 - Failed
– Performing Test HAVE_PKCS5_PBKDF2_HMAC
– Performing Test HAVE_PKCS5_PBKDF2_HMAC - Failed
– Performing Test HAVE_SSL_OP_NO_TLSv1_1
– Performing Test HAVE_SSL_OP_NO_TLSv1_1 - Success
– Looking for memalign
– Looking for memalign - found
– Looking for include file numa.h
– Looking for include file numa.h - not found
CMake Error at CMakeLists.txt:212 (ENABLE_CODE_COVERAGE_REPORT):
Unknown CMake command "ENABLE_CODE_COVERAGE_REPORT.
– Configuring incomplete, errors occurred!
It appears the ENABLE_CODE_COVERAGE_REPORT
macro is missing or undefined