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

MariaDB 10.2.18 and 10.3.9 do not build on MacOS - ranlib error

    XMLWordPrintable

Details

    Description

      When attempting to compile either MariaDB 10.2.18 or 10.3.9 from source on MacOS X 10.8.5 using Homebrew, in accordance with the instructions, make fails at around 20% with the following (10.3.9 example, 10.2.18 is very similar):

      ==> cmake . -DCMAKE_C_FLAGS_RELEASE=-DNDEBUG -DCMAKE_CXX_FLAGS_RELEASE=-DNDEBUG -DCMAKE_INSTALL_PREFIX=/usr/local/Cellar/mariadb/10.3.9 -
      ==> make
      Last 15 lines from /Users/username/Library/Logs/Homebrew/mariadb/02.make:
      /usr/bin/ranlib: file: libgroonga.a(mrb_table_cursor.c.o) has no symbols
      /usr/bin/ranlib: file: libgroonga.a(mrb_table_cursor_flags.c.o) has no symbols
      /usr/bin/ranlib: file: libgroonga.a(mrb_table_group_flags.c.o) has no symbols
      /usr/bin/ranlib: file: libgroonga.a(mrb_table_group_result.c.o) has no symbols
      /usr/bin/ranlib: file: libgroonga.a(mrb_table_sort_flags.c.o) has no symbols
      /usr/bin/ranlib: file: libgroonga.a(mrb_table_sort_key.c.o) has no symbols
      /usr/bin/ranlib: file: libgroonga.a(mrb_thread.c.o) has no symbols
      /usr/bin/ranlib: file: libgroonga.a(mrb_type.c.o) has no symbols
      /usr/bin/ranlib: file: libgroonga.a(mrb_variable_size_column.c.o) has no symbols
      /usr/bin/ranlib: file: libgroonga.a(mrb_void.c.o) has no symbols
      /usr/bin/ranlib: file: libgroonga.a(mrb_window_definition.c.o) has no symbols
      /usr/bin/ranlib: file: libgroonga.a(mrb_writer.c.o) has no symbols
      /usr/bin/ranlib: file: libgroonga.a(ts_plan.c.o) has no symbols
      [ 19%] Built target libgroonga
      make: *** [all] Error 2

      The problem is not in the Homebrew formulae or the groonga package.
      Related mysql bug: https://bugs.mysql.com/bug.php?id=81652

      Meanwhile, MariaDB 10.1.36 builds fine. According to the comments on the Library page with instructions, the 10.1.x branch has a fix in place regarding llvm, but 10.2.x and 10.3.x do not.

      Attachments

        Activity

          People

            psergei Sergei Petrunia
            thoha Thomas Hamann
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:

              Git Integration

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