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 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

            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.