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

build failure on MacOS

    XMLWordPrintable

Details

    Description

      Building MariaDB server of any version starting from 10.1 fails on MacOS.
      Building failure happens on attempt to link any executable file.
      Building process breaks due to the use of the unsupported -z flag in the linker options.
      In result cmake terminates building with the following output:
      ld: unknown option: -z
      clang: error: linker command failed with exit code 1 (use -v to see invocation)

      Unsupported linker option is added by the following cmake macros

        MY_CHECK_AND_SET_LINKER_FLAG("-Wl,-z,relro,-z,now")

      that was introduced by the commit

      commit 7473e1841c630d86f1873a2a7afacb53955b3f6f (HEAD)
      Author: Daniel Black <daniel@linux.ibm.com>
      Date:   Tue May 5 11:57:20 2020 +1000
       
      check_linker_flag: use for linker flags
       
      -Wl,-z,relro,-z,now are linker flags and should
      be checked as such.
      

      Attachments

        1. CMakeCache.txt
          100 kB
        2. CMakeError.log
          258 kB
        3. CMakeOutput.log
          659 kB

        Issue Links

          Activity

            People

              danblack Daniel Black
              shulga Dmitry Shulga
              Votes:
              0 Vote for this issue
              Watchers:
              4 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.