Uploaded image for project: 'Couchbase Server'
  1. Couchbase Server
  2. MB-45334

CMake 3.20.0 fails to build Analytics

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Critical
    • Resolution: Fixed
    • Cheshire-Cat
    • 6.0.5, 6.6.2, 7.0.0
    • analytics
    • Untriaged
    • 1
    • No
    • CX Sprint 243, CX Sprint 244

    Description

      Problem
      Build fails with cmake 3.20.0:

      `CMake Error at /Users/patrick/Code/Dev/analytics/copy_jre.cmake:31 (endif):
        Flow control statements are not properly nested.
      CMake Error: Error processing file: /Users/patrick/Code/Dev/analytics/copy_jre.cmake
      

      Suggested fix
      Looks like copy_jre.cmake is wrong and has a endif () that does not match a if

        "${_jre_inst}/lib/jfr.jar"
      )
       
      endif ()
      

      If the endif () is removed it builds successfully. I assume the newer version of cmake as bit stricter.

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          Build couchbase-server-7.0.0-5084 contains cbas-core commit 56f5e1e with commit message:
          MB-45334: Fixes building with Cmake 3.20.0

          build-team Couchbase Build Team added a comment - Build couchbase-server-7.0.0-5084 contains cbas-core commit 56f5e1e with commit message: MB-45334 : Fixes building with Cmake 3.20.0

          Build couchbase-server-7.0.0-5084 contains cbas-core commit 487c735 with commit message:
          MB-45334: Fixes building with Cmake 3.20.0

          build-team Couchbase Build Team added a comment - Build couchbase-server-7.0.0-5084 contains cbas-core commit 487c735 with commit message: MB-45334 : Fixes building with Cmake 3.20.0

          Build couchbase-server-6.6.2-9598 contains cbas-core commit 56f5e1e with commit message:
          MB-45334: Fixes building with Cmake 3.20.0

          build-team Couchbase Build Team added a comment - Build couchbase-server-6.6.2-9598 contains cbas-core commit 56f5e1e with commit message: MB-45334 : Fixes building with Cmake 3.20.0

          Build couchbase-server-6.6.2-9600 contains cbas-core commit 0e820c0 with commit message:
          MB-45334: Fixes building with Cmake 3.20.0

          build-team Couchbase Build Team added a comment - Build couchbase-server-6.6.2-9600 contains cbas-core commit 0e820c0 with commit message: MB-45334 : Fixes building with Cmake 3.20.0

          Build couchbase-server-6.6.2-9601 contains cbas-core commit 56f5e1e with commit message:
          MB-45334: Fixes building with Cmake 3.20.0

          build-team Couchbase Build Team added a comment - Build couchbase-server-6.6.2-9601 contains cbas-core commit 56f5e1e with commit message: MB-45334 : Fixes building with Cmake 3.20.0

          People

            ali.alsuliman Ali Alsuliman
            pvarley Patrick Varley
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There is 1 open Gerrit change

                PagerDuty