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

cmake updates to build on arm64

    XMLWordPrintable

Details

    Description

      In order to build 10.2 and 10.3 on arm64, additional innodb files need to be built with -O0 when on 4.x gcc compiler, for example on centos7. The following patch includes the necessary fixes to the innobase CMakeLists.txt

      index d291f6f..299efe3 100644
      --- a/storage/innobase/CMakeLists.txt
      +++ b/storage/innobase/CMakeLists.txt
      @@ -175,7 +175,10 @@ IF(CMAKE_COMPILER_IS_GNUCXX AND CMAKE_SYSTEM_PROCESSOR MATCHES "aarch64")
             btr/btr0btr.cc
             btr/btr0cur.cc
             buf/buf0buf.cc
      +      fts/fts0fts.cc
             gis/gis0sea.cc
      +      handler/handler0alter.cc
      +      row/row0mysql.cc
             COMPILE_FLAGS "-O0"
             )
         ENDIF()
      

      Attachments

        Activity

          People

            svoj Sergey Vojtovich
            dthompson David Thompson (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            5 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.