Uploaded image for project: 'IMPALA'
  1. IMPALA
  2. IMPALA-12762

Build package from scratch failed by cmake error

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • Impala 4.3.0
    • Impala 4.4.0
    • Infrastructure
    • None
    • ghx-label-6

    Description

      Saw the following error when building the RPM package from scratch:

      CMake Error at be/CMakeLists.txt:774 (ADD_DEPENDENCIES):
        Cannot add target-level dependencies to non-existent target
        "unified-be-test".
      
        The add_dependencies works for top-level logical targets created by the
        add_executable, add_library, or add_custom_target commands.  If you want to
        add file-level dependencies see the DEPENDS option of the add_custom_target
        and add_custom_command commands.
      Call Stack (most recent call first):
        be/CMakeLists.txt:795 (ADD_UNIFIED_BE_TEST)
        be/src/exec/json/CMakeLists.txt:36 (ADD_UNIFIED_BE_LSAN_TEST) 

      The command is

      ./buildall.sh -noclean -notests -package

      or

      ./buildall.sh -noclean -notests -release -package

      However, if I build the binaries (including tests) with -package, it succeeds.

      ./buildall.sh -noclean -skiptests -release -package

      Attachments

        Issue Links

          Activity

            People

              zhangyifan27 YifanZhang
              stigahuang Quanlong Huang
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: