mysql源码笔记【8.0.33编译debug】

227 阅读7分钟

编译导语:由于本人笔记本是arm架构的MacBook笔记本所以MySQL的5.7版本过来了 尝试过后各种报错, 只能来尝试8.0了

camke生产相关的编译文件

`cmake日志 // Some code ➜ build git:(8.0) ✗ cmake .. -DDOWNLOAD_BOOST=1 -DWITH_BOOST=/opt/homebrew/Cellar/boost/1.77.0 -DWITH_SSL=/opt/homebrew/Cellar/openssl@3/3.1.1 -DCMAKE_BUILD_TYPE=DEBUG -- Running cmake version 3.26.4 -- CMAKE_MODULE_PATH is /Users/huang/gitcode/cppprojects/mysql-server/cmake -- MySQL 8.0.30 -- Source directory /Users/huang/gitcode/cppprojects/mysql-server -- Binary directory /Users/huang/gitcode/cppprojects/mysql-server/build -- CMAKE_GENERATOR: Unix Makefiles -- SIZEOF_VOIDP 8 -- DEFAULT_PLATFORM macos13.4 -- Packaging as: mysql-8.0.30-macos13.4-arm64 -- Local boost dir /opt/homebrew/Cellar/boost/1.77.0/boost_1_77_0 -- Local boost zip /opt/homebrew/Cellar/boost/1.77.0/boost_1_77_0.tar.bz2 -- Found /opt/homebrew/Cellar/boost/1.77.0/boost_1_77_0/boost/version.hpp -- BOOST_VERSION_NUMBER is #define BOOST_VERSION 107700 -- BOOST_INCLUDE_DIR /opt/homebrew/Cellar/boost/1.77.0/boost_1_77_0 -- NUMA library missing or required version not available -- ZLIB_VERSION (bundled) is 1.2.12 -- ZLIB_INCLUDE_DIR /Users/huang/gitcode/cppprojects/mysql-server/extra/zlib/zlib-1.2.12 -- ZLIB_LIBRARY zlib -- ZSTD_LEGACY_SUPPORT not defined! -- ZSTD_VERSION (bundled) is 1.5.0 -- ZSTD_INCLUDE_DIR /Users/huang/gitcode/cppprojects/mysql-server/extra/zstd/zstd-1.5.0/lib -- ZSTD_LIBRARY zstd -- OPENSSL_VERSION (/opt/homebrew/Cellar/openssl@3/3.1.1) is 3.1.1 -- The openssl command does not support zlib -- OPENSSL_INCLUDE_DIR = /opt/homebrew/Cellar/openssl@3/3.1.1/include -- OPENSSL_LIBRARY = /opt/homebrew/Cellar/openssl@3/3.1.1/lib/libssl.dylib -- CRYPTO_LIBRARY = /opt/homebrew/Cellar/openssl@3/3.1.1/lib/libcrypto.dylib -- OPENSSL_LIB_DIR = -- OPENSSL_VERSION_MAJOR = 3 -- OPENSSL_VERSION_MINOR = 1 -- OPENSSL_FIX_VERSION = 1 -- Looking for SHA512_DIGEST_LENGTH -- Looking for SHA512_DIGEST_LENGTH - found -- SSL_LIBRARIES = /opt/homebrew/Cellar/openssl@3/3.1.1/lib/libssl.dylib;/opt/homebrew/Cellar/openssl@3/3.1.1/lib/libcrypto.dylib -- WITH_SSL_PATH /opt/homebrew/Cellar/openssl@3/3.1.1 -- CRYPTO_EXT .dylib

-- SSL_LIBRARIES = /Users/huang/gitcode/cppprojects/mysql-server/build/library_output_directory/./libssl.dylib;/Users/huang/gitcode/cppprojects/mysql-server/build/library_output_directory/./libcrypto.dylib -- INSTALL openssl TO bin -- INSTALL libcrypto.dylib to lib -- INSTALL libssl.dylib to lib -- KERBEROS path is none, disabling kerberos support. -- HAVE_KRB5_KRB5_H -- KERBEROS_LIBRARIES -- SASL_LIBRARY /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.1.sdk/usr/lib/libsasl2.tbd -- SASL_VERSION (system) is 2.1.26 -- LBER_LIBRARY /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.1.sdk/usr/lib/liblber.tbd -- LDAP_LIBRARY /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.1.sdk/System/Library/Frameworks/ldap.framework -- Looking for lber.h -- Looking for lber.h - found -- Looking for ldap.h -- Looking for ldap.h - found -- Check size of mbstate_t -- Check size of mbstate_t - done -- Performing Test HAVE_LANGINFO_CODESET -- Performing Test HAVE_LANGINFO_CODESET - Success -- Looking for wcsdup -- Looking for wcsdup - found -- Check size of wchar_t -- Check size of wchar_t - done -- Check size of wint_t -- Check size of wint_t - done -- Found Curses: /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.1.sdk/usr/lib/libcurses.tbd -- Looking for include file sys/cdefs.h -- Looking for include file sys/cdefs.h - found -- AWK_EXECUTABLE is /usr/bin/awk -- Performing Test HAVE_GETPW_R_POSIX -- Performing Test HAVE_GETPW_R_POSIX - Success -- Performing Test HAVE_GETPW_R_DRAFT -- Performing Test HAVE_GETPW_R_DRAFT - Failed -- Looking for getline -- Looking for getline - found -- Looking for vis -- Looking for vis - found -- Looking for unvis -- Looking for unvis - found -- Looking for __secure_getenv -- Looking for __secure_getenv - not found -- Looking for secure_getenv -- Looking for secure_getenv - not found -- Performing Test HAVE_POINTER_SIGN -- Performing Test HAVE_POINTER_SIGN - Success -- Performing Test HAVE_STRINGOP_OVERFLOW -- Performing Test HAVE_STRINGOP_OVERFLOW - Failed -- Performing Test HAVE_UNUSED_RESULT -- Performing Test HAVE_UNUSED_RESULT - Success -- Performing Test HAVE_STRINGOP_TRUNCATION -- Performing Test HAVE_STRINGOP_TRUNCATION - Failed -- Performing Test HAVE_CXX_W_dangling_pointer -- Performing Test HAVE_CXX_W_dangling_pointer - Failed -- Found Git: /usr/bin/git -- Performing Test check_c_compiler_flag__Wall -- Performing Test check_c_compiler_flag__Wall - Success -- Performing Test check_c_compiler_flag__Wextra -- Performing Test check_c_compiler_flag__Wextra - Success -- Performing Test check_c_compiler_flag__Wno_unused_parameter -- Performing Test check_c_compiler_flag__Wno_unused_parameter - Success -- Performing Test check_c_compiler_flag__Wstrict_aliasing -- Performing Test check_c_compiler_flag__Wstrict_aliasing - Success -- Performing Test check_c_compiler_flag__Wstrict_prototypes -- Performing Test check_c_compiler_flag__Wstrict_prototypes - Success -- Performing Test check_c_compiler_flag__fno_strict_aliasing -- Performing Test check_c_compiler_flag__fno_strict_aliasing - Success -- Performing Test check_c_compiler_flag__Wmissing_prototypes -- Performing Test check_c_compiler_flag__Wmissing_prototypes - Success -- Performing Test check_c_compiler_flag__Winit_self -- Performing Test check_c_compiler_flag__Winit_self - Success -- Performing Test check_c_compiler_flag__Wmissing_field_initializers -- Performing Test check_c_compiler_flag__Wmissing_field_initializers - Success -- Performing Test check_c_compiler_flag__Wdeclaration_after_statement -- Performing Test check_c_compiler_flag__Wdeclaration_after_statement - Success -- Performing Test check_c_compiler_flag__Waddress -- Performing Test check_c_compiler_flag__Waddress - Success -- Performing Test check_c_compiler_flag__Wnormalized_id -- Performing Test check_c_compiler_flag__Wnormalized_id - Failed -- Performing Test check_c_compiler_flag__Woverride_init -- Performing Test check_c_compiler_flag__Woverride_init - Success -- Performing Test check_c_compiler_flag__Wlogical_op -- Performing Test check_c_compiler_flag__Wlogical_op - Failed -- Performing Test check_c_compiler_flag__Wwrite_strings -- Performing Test check_c_compiler_flag__Wwrite_strings - Success -- Performing Test check_c_compiler_flag__Wno_unused_function -- Performing Test check_c_compiler_flag__Wno_unused_function - Success -- Performing Test check_c_compiler_flag__Wno_error_deprecated_declarations -- Performing Test check_c_compiler_flag__Wno_error_deprecated_declarations - Success -- Performing Test check_c_compiler_flag__Qunused_arguments -- Performing Test check_c_compiler_flag__Qunused_arguments - Success -- Looking for GNU_LIBRARY -- Looking for GNU_LIBRARY - not found -- Looking for _GNU_SOURCE -- Looking for _GNU_SOURCE - not found -- Looking for sys/types.h -- Looking for sys/types.h - found -- Looking for sys/socket.h -- Looking for sys/socket.h - found -- Looking for netinet/in.h -- Looking for netinet/in.h - found -- Looking for sys/un.h -- Looking for sys/un.h - found -- Check size of struct sockaddr_un -- Check size of struct sockaddr_un - done -- Looking for netinet/in6.h -- Looking for netinet/in6.h - not found -- Looking for unistd.h -- Looking for unistd.h - found -- Looking for netdb.h -- Looking for netdb.h - found -- Looking for dlfcn.h -- Looking for dlfcn.h - found -- Looking for arpa/inet.h -- Looking for arpa/inet.h - found -- Looking for fcntl.h -- Looking for fcntl.h - found -- Looking for inttypes.h -- Looking for inttypes.h - found -- Looking for memory.h -- Looking for memory.h - found -- Looking for poll.h -- Looking for poll.h - found -- Looking for port.h -- Looking for port.h - not found -- Looking for signal.h -- Looking for signal.h - found -- Looking for stdarg.h -- Looking for stdarg.h - found -- Looking for stddef.h -- Looking for stddef.h - found -- Looking for stdint.h -- Looking for stdint.h - found -- Looking for stdlib.h -- Looking for stdlib.h - found -- Looking for strings.h -- Looking for strings.h - found -- Looking for string.h -- Looking for string.h - found -- Looking for sys/devpoll.h -- Looking for sys/devpoll.h - not found -- Looking for sys/epoll.h -- Looking for sys/epoll.h - not found -- Looking for sys/eventfd.h -- Looking for sys/eventfd.h - not found -- Looking for sys/event.h -- Looking for sys/event.h - found -- Looking for sys/ioctl.h -- Looking for sys/ioctl.h - found -- Looking for sys/mman.h -- Looking for sys/mman.h - found -- Looking for sys/param.h -- Looking for sys/param.h - found -- Looking for sys/queue.h -- Looking for sys/queue.h - found -- Looking for sys/select.h -- Looking for sys/select.h - found -- Looking for sys/sendfile.h -- Looking for sys/sendfile.h - not found -- Looking for sys/stat.h -- Looking for sys/stat.h - found -- Looking for sys/time.h -- Looking for sys/time.h - found -- Looking for sys/uio.h -- Looking for sys/uio.h - found -- Looking for include files sys/types.h, ifaddrs.h -- Looking for include files sys/types.h, ifaddrs.h - found -- Looking for mach/mach_time.h -- Looking for mach/mach_time.h - found -- Looking for netinet/tcp.h -- Looking for netinet/tcp.h - found -- Looking for sys/wait.h -- Looking for sys/wait.h - found -- Looking for sys/resource.h -- Looking for sys/resource.h - found -- Looking for sys/timerfd.h -- Looking for sys/timerfd.h - not found -- Looking for errno.h -- Looking for errno.h - found -- Looking for epoll_create -- Looking for epoll_create - not found -- Looking for epoll_ctl -- Looking for epoll_ctl - not found -- Looking for eventfd -- Looking for eventfd - not found -- Looking for clock_gettime -- Looking for clock_gettime - found -- Looking for fcntl -- Looking for fcntl - found -- Looking for getaddrinfo -- Looking for getaddrinfo - found -- Looking for getnameinfo -- Looking for getnameinfo - found -- Looking for gettimeofday -- Looking for gettimeofday - found -- Looking for getprotobynumber -- Looking for getprotobynumber - found -- Looking for getservbyname -- Looking for getservbyname - found -- Looking for inet_ntop -- Looking for inet_ntop - found -- Looking for inet_pton -- Looking for inet_pton - found -- Looking for kqueue -- Looking for kqueue - found -- Looking for mmap -- Looking for mmap - found -- Looking for pipe -- Looking for pipe - found -- Looking for pipe2 -- Looking for pipe2 - not found -- Looking for poll -- Looking for poll - found -- Looking for port_create -- Looking for port_create - not found -- Looking for sendfile -- Looking for sendfile - found -- Looking for sigaction -- Looking for sigaction - found -- Looking for signal -- Looking for signal - found -- Looking for splice -- Looking for splice - not found -- Looking for strlcpy -- Looking for strlcpy - found -- Looking for strsep -- Looking for strsep - found -- Looking for strtok_r -- Looking for strtok_r - found -- Looking for strtoll -- Looking for strtoll - found -- Looking for vasprintf -- Looking for vasprintf - found -- Looking for sysctl -- Looking for sysctl - found -- Looking for accept4 -- Looking for accept4 - not found -- Looking for arc4random -- Looking for arc4random - found -- Looking for arc4random_buf -- Looking for arc4random_buf - found -- Looking for epoll_create1 -- Looking for epoll_create1 - not found -- Looking for getegid -- Looking for getegid - found -- Looking for geteuid -- Looking for geteuid - found -- Looking for getifaddrs -- Looking for getifaddrs - found -- Looking for issetugid -- Looking for issetugid - found -- Looking for mach_absolute_time -- Looking for mach_absolute_time - found -- Looking for nanosleep -- Looking for nanosleep - found -- Looking for usleep -- Looking for usleep - found -- Looking for timeradd -- Looking for timeradd - not found -- Looking for timerclear -- Looking for timerclear - not found -- Looking for timercmp -- Looking for timercmp - not found -- Looking for timerfd_create -- Looking for timerfd_create - not found -- Looking for timerisset -- Looking for timerisset - not found -- Looking for putenv -- Looking for putenv - found -- Looking for setenv -- Looking for setenv - found -- Looking for setrlimit -- Looking for setrlimit - found -- Looking for umask -- Looking for umask - found -- Looking for unsetenv -- Looking for unsetenv - found -- Looking for gethostbyname_r -- Looking for gethostbyname_r - not found -- Looking for select -- Looking for select - found -- Check size of uint8_t -- Check size of uint8_t - done -- Check size of uint16_t -- Check size of uint16_t - done -- Check size of uint32_t -- Check size of uint32_t - done -- Check size of uint64_t -- Check size of uint64_t - done -- Check size of short -- Check size of short - done -- Check size of int -- Check size of int - done -- Check size of unsigned -- Check size of unsigned - done -- Check size of unsigned int -- Check size of unsigned int - done -- Check size of long -- Check size of long - done -- Check size of long long -- Check size of long long - done -- Performing Test HAVE_INLINE -- Performing Test HAVE_INLINE - Success -- Looking for func -- Looking for func - found -- Looking for FUNCTION -- Looking for FUNCTION - found -- Looking for TAILQ_FOREACH -- Looking for TAILQ_FOREACH - found -- Performing Test EVENT__HAVE_DECL_CTL_KERN -- Performing Test EVENT__HAVE_DECL_CTL_KERN - Success -- Looking for CTL_KERN - found -- Performing Test EVENT__HAVE_DECL_KERN_ARND -- Performing Test EVENT__HAVE_DECL_KERN_ARND - Failed -- Looking for KERN_ARND - not found -- Performing Test EVENT__HAVE_DECL_KERN_RANDOM -- Performing Test EVENT__HAVE_DECL_KERN_RANDOM - Failed -- Looking for KERN_RANDOM - not found -- Performing Test EVENT__HAVE_DECL_RANDOM_UUID -- Performing Test EVENT__HAVE_DECL_RANDOM_UUID - Failed -- Looking for RANDOM_UUID - not found -- Looking for F_SETFD -- Looking for F_SETFD - found -- Check size of fd_mask -- Check size of fd_mask - done -- Check size of size_t -- Check size of size_t - done -- Check size of off_t -- Check size of off_t - done -- Check size of ssize_t -- Check size of ssize_t - done -- Check size of SSIZE_T -- Check size of SSIZE_T - failed -- Check size of socklen_t -- Check size of socklen_t - done -- Check size of pid_t -- Check size of pid_t - done -- Check size of pthread_t -- Check size of pthread_t - done -- Check size of uintptr_t -- Check size of uintptr_t - done -- Check size of void * -- Check size of void * - done -- Check size of time_t -- Check size of time_t - done -- Checking if kqueue works with pipes... -- Performing Test EVENT__HAVE_WORKING_KQUEUE -- Performing Test EVENT__HAVE_WORKING_KQUEUE - Success -- Check size of struct addrinfo -- Check size of struct addrinfo - done -- Check size of struct in6_addr -- Check size of struct in6_addr - done -- Performing Test EVENT__HAVE_STRUCT_IN6_ADDR_S6_ADDR16 -- Performing Test EVENT__HAVE_STRUCT_IN6_ADDR_S6_ADDR16 - Failed -- Performing Test EVENT__HAVE_STRUCT_IN6_ADDR_S6_ADDR32 -- Performing Test EVENT__HAVE_STRUCT_IN6_ADDR_S6_ADDR32 - Failed -- Check size of sa_family_t -- Check size of sa_family_t - done -- Check size of struct sockaddr_in6 -- Check size of struct sockaddr_in6 - done -- Performing Test EVENT__HAVE_STRUCT_SOCKADDR_IN6_SIN6_LEN -- Performing Test EVENT__HAVE_STRUCT_SOCKADDR_IN6_SIN6_LEN - Success -- Performing Test EVENT__HAVE_STRUCT_SOCKADDR_IN_SIN_LEN -- Performing Test EVENT__HAVE_STRUCT_SOCKADDR_IN_SIN_LEN - Failed -- Check size of struct sockaddr_storage -- Check size of struct sockaddr_storage - done -- Performing Test EVENT__HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY -- Performing Test EVENT__HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY - Success -- Performing Test EVENT__HAVE_STRUCT_SOCKADDR_STORAGE___SS_FAMILY -- Performing Test EVENT__HAVE_STRUCT_SOCKADDR_STORAGE___SS_FAMILY - Failed -- Check size of struct linger -- Check size of struct linger - done -- Performing Test HAVE_ARRAY_PARAMETER -- Performing Test HAVE_ARRAY_PARAMETER - Failed -- LIBEVENT_VERSION (bundled) 2.1.11 -- LIBEVENT_INCLUDE_DIRS /Users/huang/gitcode/cppprojects/mysql-server/extra/libevent/libevent-2.1.11-stable/include;/Users/huang/gitcode/cppprojects/mysql-server/build/extra/libevent/libevent-2.1.11-stable/include -- LIBEVENT_LIBRARIES event_core;event_extra;event_openssl;event_pthreads -- LZ4_VERSION (bundled) is 1.9.3 -- LZ4_INCLUDE_DIR /Users/huang/gitcode/cppprojects/mysql-server/extra/lz4/lz4-1.9.3 -- LZ4_LIBRARY lz4_lib -- Performing Test HAVE_CXX_W_return_local_addr -- Performing Test HAVE_CXX_W_return_local_addr - Failed -- Performing Test HAVE_CXX_W_unused_but_set_variable -- Performing Test HAVE_CXX_W_unused_but_set_variable - Success -- Performing Test HAVE_CXX_W_misleading_indentation -- Performing Test HAVE_CXX_W_misleading_indentation - Success -- Performing Test HAVE_CXX_W_maybe_uninitialized -- Performing Test HAVE_CXX_W_maybe_uninitialized - Failed -- Performing Test HAVE_CXX_W_implicit_int_float_conversion -- Performing Test HAVE_CXX_W_implicit_int_float_conversion - Success -- Performing Test HAVE_CXX_W_restrict -- Performing Test HAVE_CXX_W_restrict - Failed -- Performing Test HAVE_CXX_W_stringop_truncation -- Performing Test HAVE_CXX_W_stringop_truncation - Failed -- ICU_VERSION (bundled) is 69 -- ICU_INCLUDE_DIRS /Users/huang/gitcode/cppprojects/mysql-server/extra/icu/icu-release-69-1/source/common;/Users/huang/gitcode/cppprojects/mysql-server/extra/icu/icu-release-69-1/source/stubdata;/Users/huang/gitcode/cppprojects/mysql-server/extra/icu/icu-release-69-1/source/i18n -- ICU_LIBRARIES icui18n;icuuc;icustubdata -- PROTOBUF_VERSION (bundled) is 3.19.4 -- PROTOBUF_INCLUDE_DIR /Users/huang/gitcode/cppprojects/mysql-server/extra/protobuf/protobuf-3.19.4/src -- PROTOBUF_LIBRARY libprotobuf -- PROTOBUF_LITE_LIBRARY libprotobuf-lite -- PROTOBUF_PROTOC_EXECUTABLE protoc -- Found BISON: /usr/bin/bison (found version "2.3") -- WITH_CURL=none, not using any curl library. -- CURL_LIBRARY = -- CURL_INCLUDE_DIR = -- RAPIDJSON_INCLUDE_DIR /Users/huang/gitcode/cppprojects/mysql-server/extra/rapidjson/include -- RAPIDJSON_MAJOR_VERSION is 1 -- RAPIDJSON_MINOR_VERSION is 1 -- FIDO_VERSION (bundled) is 1.8.0 -- FIDO_INCLUDE_DIR /Users/huang/gitcode/cppprojects/mysql-server/extra/libfido2/libfido2-1.8.0/src -- FIDO_LIBRARY fido2 -- Performing Test HAVE_CXX_W_deprecated_copy -- Performing Test HAVE_CXX_W_deprecated_copy - Success -- Performing Test HAVE_CXX_W_extra_semi -- Performing Test HAVE_CXX_W_extra_semi - Success -- Performing Test HAVE_CXX_W_stringop_overflow -- Performing Test HAVE_CXX_W_stringop_overflow - Failed -- Performing Test HAVE_CXX_W_unused_variable -- Performing Test HAVE_CXX_W_unused_variable - Success -- Performing Test HAVE_CXX_W_unused_const_variable -- Performing Test HAVE_CXX_W_unused_const_variable - Success -- Performing Test protobuf_HAVE_BUILTIN_ATOMICS -- Performing Test protobuf_HAVE_BUILTIN_ATOMICS - Success -- Performing Test HAVE_Wunreachable-code-break -- Performing Test HAVE_Wunreachable-code-break - Success -- Performing Test HAVE_Wunreachable-code-return -- Performing Test HAVE_Wunreachable-code-return - Success -- Performing Test HAVE_CXX_W_inconsistent_missing_destructor_override -- Performing Test HAVE_CXX_W_inconsistent_missing_destructor_override - Success -- Performing Test HAVE_CXX_W_inconsistent_missing_override -- Performing Test HAVE_CXX_W_inconsistent_missing_override - Success -- Performing Test HAVE_CXX_W_shadow_field -- Performing Test HAVE_CXX_W_shadow_field - Success -- Found Unix DNS SRV APIs -- Skipping the LDAP client authentication plugin -- Skipping FIDO client authentication plugin. -- Skipping the KERBEROS client authentication plugin. -- Skipping the OCI authentication client plugin. -- MERGE_CONVENIENCE_LIBRARIES TARGET mysqlclient -- MERGE_CONVENIENCE_LIBRARIES LIBS clientlib;mytime;strings;vio;mysys;zlib;zstd -- Looking for sched_getcpu -- Looking for sched_getcpu - not found -- Looking for nanosleep -- Looking for nanosleep - found -- Performing Test HAVE_FALLOC_PUNCH_HOLE_AND_KEEP_SIZE -- Performing Test HAVE_FALLOC_PUNCH_HOLE_AND_KEEP_SIZE - Failed -- Performing Test HAVE_FALLOC_FL_ZERO_RANGE -- Performing Test HAVE_FALLOC_FL_ZERO_RANGE - Failed -- Performing Test HAVE_IB_GCC_SYNC_SYNCHRONISE -- Performing Test HAVE_IB_GCC_SYNC_SYNCHRONISE - Success -- Performing Test HAVE_IB_GCC_ATOMIC_THREAD_FENCE -- Performing Test HAVE_IB_GCC_ATOMIC_THREAD_FENCE - Success -- Performing Test HAVE_IB_LINUX_FUTEX -- Performing Test HAVE_IB_LINUX_FUTEX - Failed -- Performing Test HAVE_CXX_W_logical_op -- Performing Test HAVE_CXX_W_logical_op - Failed -- Performing Test HAVE_CXX_W_cast_function_type -- Performing Test HAVE_CXX_W_cast_function_type - Success -- Performing Test HAVE_PEERCRED -- Performing Test HAVE_PEERCRED - Failed -- Performing Test HAVE_XDR_OPS_X_PUTINT32 -- Performing Test HAVE_XDR_OPS_X_PUTINT32 - Failed -- Performing Test HAVE_XDR_OPS_X_GETINT32 -- Performing Test HAVE_XDR_OPS_X_GETINT32 - Failed -- Performing Test HAVE_RPC_INLINE_T -- Performing Test HAVE_RPC_INLINE_T - Failed -- Performing Test HAVE_CXX_W_unused_but_set_parameter -- Performing Test HAVE_CXX_W_unused_but_set_parameter - Success -- Performing Test HAVE_CXX_W_suggest_override -- Performing Test HAVE_CXX_W_suggest_override - Success -- MYSQLX - Text log of protobuf messages enabled -- Performing Test HAVE_NO_BUILTIN_MEMCMP -- Performing Test HAVE_NO_BUILTIN_MEMCMP - Success -- Performing Test HAVE_CXX_W_format_overflow -- Performing Test HAVE_CXX_W_format_overflow - Failed -- Performing Test HAVE_CXX_W_unused_local_typedefs -- Performing Test HAVE_CXX_W_unused_local_typedefs - Success -- MERGE_CONVENIENCE_LIBRARIES TARGET json_binlog_static -- MERGE_CONVENIENCE_LIBRARIES LIBS json_client_library;mysys;mytime;strings -- BISON outputs /Users/huang/gitcode/cppprojects/mysql-server/build/sql/sql_yacc.cc;/Users/huang/gitcode/cppprojects/mysql-server/build/sql/sql_yacc.h -- BISON outputs /Users/huang/gitcode/cppprojects/mysql-server/build/sql/sql_hints.yy.cc;/Users/huang/gitcode/cppprojects/mysql-server/build/sql/sql_hints.yy.h -- CONFIG_CLIENT_LIBS -lssl -lcrypto -lresolv -- CONFIG_LIBS_PRIVATE -lssl -lcrypto -lresolv -- INSTALL mysqlclient.pc lib/pkgconfig -- MySQL 8.0.30 -- Looking for prlimit -- Looking for prlimit - not found -- Performing Test COMPILER_HAS_SANITIZE_COVERAGE_TRACE_PC_GUARD -- Performing Test COMPILER_HAS_SANITIZE_COVERAGE_TRACE_PC_GUARD - Success -- Performing Test COMPILER_HAS_SANITIZE_COVERAGE_TRACE_EDGE -- Performing Test COMPILER_HAS_SANITIZE_COVERAGE_TRACE_EDGE - Success -- Performing Test COMPILER_HAS_SANITIZE_COVERAGE_TRACE_CMP -- Performing Test COMPILER_HAS_SANITIZE_COVERAGE_TRACE_CMP - Success -- Performing Test COMPILER_HAS_PROFILE_INSTR_GENERATE -- Performing Test COMPILER_HAS_PROFILE_INSTR_GENERATE - Failed -- Performing Test COMPILER_HAS_COVERAGE_MAPPING -- Performing Test COMPILER_HAS_COVERAGE_MAPPING - Success -- Performing Test COMPILER_HAS_SANITIZE_FUZZER -- Performing Test COMPILER_HAS_SANITIZE_FUZZER - Failed -- Performing Test CLANG_HAS_LIBFUZZER -- Performing Test CLANG_HAS_LIBFUZZER - Failed -- Performing Test COMPILER_HAS_HIDDEN_VISIBILITY -- Performing Test COMPILER_HAS_HIDDEN_VISIBILITY - Success -- Performing Test COMPILER_HAS_HIDDEN_INLINE_VISIBILITY -- Performing Test COMPILER_HAS_HIDDEN_INLINE_VISIBILITY - Success -- Performing Test COMPILER_HAS_DEPRECATED_ATTR -- Performing Test COMPILER_HAS_DEPRECATED_ATTR - Success -- Performing Test HAVE_CXX_W_error -- Performing Test HAVE_CXX_W_error - Success -- Performing Test HAVE_CXX_W_missing_noreturn -- Performing Test HAVE_CXX_W_missing_noreturn - Success -- Performing Test HAVE_CXX_W_conditional_uninitialized -- Performing Test HAVE_CXX_W_conditional_uninitialized - Success -- Performing Test HAVE_CXX_W_suggest_attribute_format -- Performing Test HAVE_CXX_W_suggest_attribute_format - Failed -- Performing Test HAVE_CXX_W_implicit_fallthrough -- Performing Test HAVE_CXX_W_implicit_fallthrough - Success -- Performing Test HAVE_CXX_W_format_truncation -- Performing Test HAVE_CXX_W_format_truncation - Failed -- Performing Test HAVE_CXX_W_parentheses_equality -- Performing Test HAVE_CXX_W_parentheses_equality - Success -- Could NOT find Doxygen (missing: DOXYGEN_EXECUTABLE) -- CMAKE_BUILD_TYPE: RelWithDebInfo -- COMPILE_DEFINITIONS: RAPIDJSON_NO_SIZETYPEDEFINE;RAPIDJSON_SCHEMA_USE_INTERNALREGEX=0;RAPIDJSON_SCHEMA_USE_STDREGEX=1;HAVE_CONFIG_H;__STDC_LIMIT_MACROS;__STDC_FORMAT_MACROS;_USE_MATH_DEFINES;LZ4_DISABLE_DEPRECATE_WARNINGS;HAVE_TLSv13 -- CMAKE_C_FLAGS: -fno-omit-frame-pointer -ftls-model=initial-exec -Wall -Wextra -Wformat-security -Wvla -Wundef -Wmissing-format-attribute -Wwrite-strings -Wconditional-uninitialized -Wextra-semi -Wmissing-noreturn -Wunreachable-code-break -Wunreachable-code-return -- CMAKE_CXX_FLAGS: -std=c++17 -fno-omit-frame-pointer -ftls-model=initial-exec -Wall -Wextra -Wformat-security -Wvla -Wundef -Wmissing-format-attribute -Woverloaded-virtual -Wcast-qual -Wno-null-conversion -Wno-unused-private-field -Wconditional-uninitialized -Wdeprecated -Wextra-semi -Wheader-hygiene -Wnon-virtual-dtor -Wundefined-reinterpret-cast -Winconsistent-missing-destructor-override -Winconsistent-missing-override -Wshadow-field -- CMAKE_CXX_FLAGS_DEBUG: -DSAFE_MUTEX -DENABLED_DEBUG_SYNC -g -- CMAKE_CXX_FLAGS_RELWITHDEBINFO: -ffunction-sections -fdata-sections -O2 -g -DNDEBUG -- CMAKE_CXX_FLAGS_RELEASE: -ffunction-sections -fdata-sections -O3 -DNDEBUG -- CMAKE_CXX_FLAGS_MINSIZEREL: -ffunction-sections -fdata-sections -Os -DNDEBUG -- CMAKE_C_LINK_FLAGS: -Wl,-search_paths_first -Wl,-headerpad_max_install_names -- CMAKE_CXX_LINK_FLAGS: -Wl,-search_paths_first -Wl,-headerpad_max_install_names -- CMAKE_EXE_LINKER_FLAGS -- CMAKE_MODULE_LINKER_FLAGS -- CMAKE_SHARED_LINKER_FLAGS -- Configuring done (29.3s) -- Generating done (3.7s)

-- Build files have been written to: /Users/huang/gitcode/cppprojects/mysql-server/build ➜ build git:(8.0) ✗ ➜ build git:(8.0) ✗ `

-DCMAKE_BUILD_TYPE=DEBUG 代表目标版本是用来调试的,

-DCMAKE_BUILD_TYPE=RelWithDebInfo代表release版本。

看到Build files have been written to: 这句话 第一步应该是OK了。

接着,make -j 8

大概10来分钟

image.png