You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues-all@impala.apache.org by "Quanlong Huang (Jira)" <ji...@apache.org> on 2024/01/29 04:25:00 UTC

[jira] [Updated] (IMPALA-12762) Build package from scratch failed by cmake error

     [ https://issues.apache.org/jira/browse/IMPALA-12762?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Quanlong Huang updated IMPALA-12762:
------------------------------------
    Description: 
Saw the following error when building the RPM package from scratch:
{noformat}
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) {noformat}
The command is
{code:java}
./buildall.sh -noclean -notests -package{code}
or
{code:java}
./buildall.sh -noclean -notests -release -package{code}
However, if I build the binaries first without -package and then rebuild with -package, it succeeds.
{code:java}
./buildall.sh -noclean -notests -release && ./buildall.sh -noclean -notests -release -package{code}

  was:
Saw the following error when building the RPM package from scratch:
{noformat}
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) {noformat}
The command is
{code}
./buildall.sh -noclean -notests -package{code}


> Build package from scratch failed by cmake error
> ------------------------------------------------
>
>                 Key: IMPALA-12762
>                 URL: https://issues.apache.org/jira/browse/IMPALA-12762
>             Project: IMPALA
>          Issue Type: Bug
>          Components: Infrastructure
>    Affects Versions: Impala 4.3.0
>            Reporter: Quanlong Huang
>            Priority: Major
>
> Saw the following error when building the RPM package from scratch:
> {noformat}
> 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) {noformat}
> The command is
> {code:java}
> ./buildall.sh -noclean -notests -package{code}
> or
> {code:java}
> ./buildall.sh -noclean -notests -release -package{code}
> However, if I build the binaries first without -package and then rebuild with -package, it succeeds.
> {code:java}
> ./buildall.sh -noclean -notests -release && ./buildall.sh -noclean -notests -release -package{code}



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-all-unsubscribe@impala.apache.org
For additional commands, e-mail: issues-all-help@impala.apache.org