| Bug #105760 | MySQL doesn't compile with macos 12.0 | ||
|---|---|---|---|
| Submitted: | 1 Dec 2021 6:50 | Modified: | 1 Dec 2021 7:19 |
| Reporter: | Rahul Malik | Email Updates: | |
| Status: | Duplicate | Impact on me: | |
| Category: | MySQL Server: Compiling | Severity: | S3 (Non-critical) |
| Version: | 8.0.027 | OS: | Any |
| Assigned to: | CPU Architecture: | Any | |
[1 Dec 2021 7:19]
MySQL Verification Team
Hello Rahul, Thank you for the report and feedback. Imho this is duplicate of Bug #105464, and per Terje this issue has been resolved upstream already. Thank you. regards, Umesh

Description: Getting error when trying to compiling MySQL 8.0 with macos 12.0. -- SIZEOF_VOIDP 8 CMake Error at cmake/package_name.cmake:92 (MESSAGE): Could not run sw_vers Call Stack (most recent call first): cmake/package_name.cmake:150 (GET_PACKAGE_FILE_NAME) CMakeLists.txt:754 (INCLUDE) -- Configuring incomplete, errors occurred! How to repeat: Just try compiling with 8.0.27 Suggested fix: {Rahuls-MacBook-Pro o8 o8}$git diff cmake/package_name.cmake diff --git a/cmake/package_name.cmake b/cmake/package_name.cmake index 058b0bcbd8c..7983475221c 100644 --- a/cmake/package_name.cmake +++ b/cmake/package_name.cmake @@ -88,7 +88,7 @@ MACRO(GET_PACKAGE_FILE_NAME Var) STRING(REGEX MATCH "ProductVersion:[\n\t ]*([0-9]+)\\.([0-9]+)" UNUSED ${SW_VERS_PRODUCTVERSION}) - IF(NOT CMAKE_MATCH_1 OR NOT CMAKE_MATCH_2) + IF(NOT DEFINED CMAKE_MATCH_1 OR NOT DEFINED CMAKE_MATCH_2) MESSAGE(FATAL_ERROR "Could not run sw_vers") ENDIF()