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

Build fails with CMake when using the Ninja backend

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Trivial
    • Resolution: Fixed
    • Affects Version/s: 5.5.33
    • Fix Version/s: 5.5.34
    • Component/s: None
    • Labels:
      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.

        Gliffy Diagrams

          Attachments

            Activity

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

            Show
            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.
            Hide
            serg Sergei Golubchik added a comment -

            That's BSD again, right?

            Show
            serg Sergei Golubchik added a comment - That's BSD again, right?
            Hide
            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

            Show
            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
            Show
            wlad Vladislav Vaintroub added a comment - http://lists.askmonty.org/pipermail/commits/2013-September/005424.html
            Hide
            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.

            Show
            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.
            Hide
            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.

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

              People

              • Assignee:
                wlad Vladislav Vaintroub
                Reporter:
                brad0 Brad Smith
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: