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

Build fails with CMake when using the Ninja backend

Details

    • Bug
    • Status: Closed (View Workflow)
    • Trivial
    • Resolution: Fixed
    • 5.5.33
    • 5.5.34
    • None
    • None

    Description

      The build fails with CMake when using the Ninja backend as follows..

      ninja: error: dependency cycle: sql/GenServerSource -> sql/CMakeFiles/GenServerSource -> sql/sql_builtin.cc -> sql/GenServerSource

      Attached is a patch which seems to fix the issue.

      Attachments

        Activity

          brad0 Brad Smith created issue -
          brad0 Brad Smith added a comment -

          Actually the initial ticket was for 5.5.32, but trying with 5.5.33a I see there is a new build issue.

          ninja: error: 'extra/jemalloc/build/lib/libjemalloc_pic.a', needed by 'unittest/mysys/explain_filename-t', missing and no known rule to make it

          The build was also broken even with CMake's make backend as well.

          brad0 Brad Smith added a comment - Actually the initial ticket was for 5.5.32, but trying with 5.5.33a I see there is a new build issue. ninja: error: 'extra/jemalloc/build/lib/libjemalloc_pic.a', needed by 'unittest/mysys/explain_filename-t', missing and no known rule to make it The build was also broken even with CMake's make backend as well.
          serg Sergei Golubchik made changes -
          Field Original Value New Value
          Assignee Vladislav Vaintroub [ wlad ]
          serg Sergei Golubchik made changes -
          Fix Version/s 5.5.34 [ 13700 ]

          That's BSD again, right?

          serg Sergei Golubchik added a comment - That's BSD again, right?
          wlad Vladislav Vaintroub added a comment - - edited

          Cyclic dependencies is a real bug (thanks for the patch). The other thing is a CMake bug is described here http://www.cmake.org/Bug/view.php?id=13574, (target for the fix is the next CMake version, 2.8.12)

          Until CMake bug is fixed, you can workaround by building like this

          ninja jemalloc && ninja build_lzma && ninja

          This builds external targets first, then the rest of the project

          wlad Vladislav Vaintroub added a comment - - edited Cyclic dependencies is a real bug (thanks for the patch). The other thing is a CMake bug is described here http://www.cmake.org/Bug/view.php?id=13574 , (target for the fix is the next CMake version, 2.8.12) Until CMake bug is fixed, you can workaround by building like this ninja jemalloc && ninja build_lzma && ninja This builds external targets first, then the rest of the project
          wlad Vladislav Vaintroub made changes -
          Priority Major [ 3 ] Trivial [ 5 ]
          wlad Vladislav Vaintroub added a comment - http://lists.askmonty.org/pipermail/commits/2013-September/005424.html
          wlad Vladislav Vaintroub made changes -
          Resolution Fixed [ 1 ]
          Status Open [ 1 ] Closed [ 6 ]

          The 'build_lzma' target mentioned in the last entry, only applies if you build tokudb. If you install jemalloc yourself and use WITH_JEMALLOC=system, or if you use WITH_JEMALLOC=no, you do not need "ninja jemalloc" either.

          wlad Vladislav Vaintroub added a comment - The 'build_lzma' target mentioned in the last entry, only applies if you build tokudb. If you install jemalloc yourself and use WITH_JEMALLOC=system, or if you use WITH_JEMALLOC=no, you do not need "ninja jemalloc" either.
          brad0 Brad Smith added a comment -

          I am using a BSD OS but these issues are not OS specific. I'll be sticking with MariaDB 5.5.32 until these bugs are fixed. Trying to move forward with these bugs is not an option.

          brad0 Brad Smith added a comment - I am using a BSD OS but these issues are not OS specific. I'll be sticking with MariaDB 5.5.32 until these bugs are fixed. Trying to move forward with these bugs is not an option.
          serg Sergei Golubchik made changes -
          Workflow defaullt [ 29100 ] MariaDB v2 [ 44443 ]
          ratzpo Rasmus Johansson (Inactive) made changes -
          Workflow MariaDB v2 [ 44443 ] MariaDB v3 [ 63799 ]
          serg Sergei Golubchik made changes -
          Workflow MariaDB v3 [ 63799 ] MariaDB v4 [ 147061 ]

          People

            wlad Vladislav Vaintroub
            brad0 Brad Smith
            Votes:
            0 Vote for this issue
            Watchers:
            3 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.