[MDEV-25543] Building failure on MacOS in case MariadDB server is compiled with XCode 12.5 Created: 2021-04-27  Updated: 2021-05-18  Resolved: 2021-04-28

Status: Closed
Project: MariaDB Server
Component/s: Compiling
Affects Version/s: 10.2, 10.3, 10.4, 10.5, 10.6
Fix Version/s: 10.2.38, 10.3.29, 10.4.19, 10.5.10, 10.6.1

Type: Bug Priority: Major
Reporter: Dmitry Shulga Assignee: Dmitry Shulga
Resolution: Fixed Votes: 0
Labels: None

Issue Links:
Relates
relates to MDEV-25716 Building failure in S3 engine on MacOS Closed

 Description   

Attempt to build MariaDB server on MacOS could result in compilation errors like the following one:

In file included from server-10.6/storage/perfschema/cursor_by_account.cc:28:
In file included from server-10.6/include/my_global.h:287:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.3.sdk/usr/include/c++/v1/math.h:309:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.3.sdk/usr/include/c++/v1/type_traits:418:
server-10.5/version:1:1: error: expected unqualified-id
MYSQL_VERSION_MAJOR=10
^
server-10.5/build.dir/include/my_config.h:529:29: note: expanded from macro 'MYSQL_VERSION_MAJOR'
#define MYSQL_VERSION_MAJOR 10

Compilation errors observed when XCode 12.5 is used for building server.



 Comments   
Comment by Dmitry Shulga [ 2021-04-28 ]

For this task there are two branches bb-10.2-MDEV-25543 and bb-10.6-MDEV-25543.
Buildbot for the branch bb-10.2-MDEV-25543 is green
Buildbot for the branch bb-10.6-MDEV-25543 shows build failures on aarch64-fedora-32 caused by exhausting of virtual memory. Also some tests fail on aix by reason of out of memory.

Note: During merge from 10.4 to 10.5 the follow-up patch should be applied

--- a/storage/perfschema/pfs_prepared_stmt.h
+++ b/storage/perfschema/pfs_prepared_stmt.h
@@ -29,8 +29,8 @@
 */
 
 #include "pfs_stat.h"
-#include "include/mysql/psi/psi.h"
-#include "include/mysql/psi/mysql_ps.h"
+#include "mysql/psi/psi.h"
+#include "mysql/psi/mysql_ps.h"
 #include "pfs_program.h"
 
 #define PS_NAME_LENGTH NAME_LEN

Comment by Sergei Golubchik [ 2021-04-28 ]

commit b1187836e4458aac8 is ok to push

Generated at Thu Feb 08 09:38:29 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.