Uploaded image for project: 'MariaDB Server'
  1. MariaDB Server
  2. MDEV-25543

Building failure on MacOS in case MariadDB server is compiled with XCode 12.5

Details

    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.

      Attachments

        Issue Links

          Activity

            shulga Dmitry Shulga created issue -
            shulga Dmitry Shulga made changes -
            Field Original Value New Value
            Assignee Dmitry Shulga [ JIRAUSER47315 ]
            shulga Dmitry Shulga made changes -
            Status Open [ 1 ] In Progress [ 3 ]
            shulga Dmitry Shulga made changes -
            Assignee Dmitry Shulga [ JIRAUSER47315 ] Sergei Golubchik [ serg ]
            Status In Progress [ 3 ] In Review [ 10002 ]
            shulga Dmitry Shulga added a comment -

            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
            

            shulga Dmitry Shulga added a comment - 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

            commit b1187836e4458aac8 is ok to push

            serg Sergei Golubchik added a comment - commit b1187836e4458aac8 is ok to push
            serg Sergei Golubchik made changes -
            Assignee Sergei Golubchik [ serg ] Dmitry Shulga [ JIRAUSER47315 ]
            Status In Review [ 10002 ] Stalled [ 10000 ]
            shulga Dmitry Shulga made changes -
            Fix Version/s 10.2.38 [ 25207 ]
            Fix Version/s 10.3.29 [ 25206 ]
            Fix Version/s 10.4.19 [ 25205 ]
            Fix Version/s 10.5.10 [ 25204 ]
            Fix Version/s 10.6.1 [ 24437 ]
            Fix Version/s 10.2 [ 14601 ]
            Fix Version/s 10.3 [ 22126 ]
            Fix Version/s 10.4 [ 22408 ]
            Fix Version/s 10.5 [ 23123 ]
            Fix Version/s 10.6 [ 24028 ]
            Resolution Fixed [ 1 ]
            Status Stalled [ 10000 ] Closed [ 6 ]
            alice Alice Sherepa made changes -
            serg Sergei Golubchik made changes -
            Workflow MariaDB v3 [ 121458 ] MariaDB v4 [ 159212 ]

            People

              shulga Dmitry Shulga
              shulga Dmitry Shulga
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Git Integration

                  Error rendering 'com.xiplink.jira.git.jira_git_plugin:git-issue-webpanel'. Please contact your Jira administrators.