Libelektra: CMake: `BUILD_FULL`のみが有効になっていると、ビルドシステムの作成に失敗します

作成日 2018年10月18日  ·  3コメント  ·  ソース: ElektraInitiative/libelektra

問題を再現する手順

git clone https://github.com/ElektraInitiative/libelektra.git
cd libelektra
mkdir build
cd build
cmake -DBUILD_FULL=ON -DBUILD_SHARED=OFF ..

期待される結果

CMakeはビルドシステムを作成します。

実結果

CMakeは次のエラーメッセージの印刷に失敗します:

CMake Error at cmake/Modules/LibAddPlugin.cmake:128 (add_dependencies):
  The dependency target "elektra-hosts" of target "testmod_hosts" does not
  exist.
Call Stack (most recent call first):
  cmake/Modules/LibAddPlugin.cmake:428 (add_plugintest)
  src/plugins/hosts/CMakeLists.txt:3 (add_plugin)
  src/plugins/CMakeLists.txt:14 (include)


CMake Error at cmake/Modules/LibAddPlugin.cmake:130 (add_dependencies):
  The dependency target "elektra-xmltool" of target "testmod_xmltool" does
  not exist.
Call Stack (most recent call first):
  src/plugins/xmltool/CMakeLists.txt:23 (add_plugintest)
  src/plugins/CMakeLists.txt:14 (include)


CMake Error at cmake/Modules/LibAddPlugin.cmake:128 (add_dependencies):
  The dependency target "elektra-date" of target "testmod_date" does not
  exist.
Call Stack (most recent call first):
  cmake/Modules/LibAddPlugin.cmake:428 (add_plugintest)
  src/plugins/date/CMakeLists.txt:16 (add_plugin)
  src/plugins/CMakeLists.txt:14 (include)


CMake Error at cmake/Modules/LibAddPlugin.cmake:128 (add_dependencies):
  The dependency target "elektra-validation" of target "testmod_validation"
  does not exist.
Call Stack (most recent call first):
  cmake/Modules/LibAddPlugin.cmake:428 (add_plugintest)
  src/plugins/validation/CMakeLists.txt:3 (add_plugin)
  src/plugins/CMakeLists.txt:14 (include)


CMake Error at cmake/Modules/LibAddPlugin.cmake:128 (add_dependencies):
  The dependency target "elektra-rename" of target "testmod_rename" does not
  exist.
Call Stack (most recent call first):
  cmake/Modules/LibAddPlugin.cmake:428 (add_plugintest)
  src/plugins/rename/CMakeLists.txt:1 (add_plugin)
  src/plugins/CMakeLists.txt:14 (include)


CMake Error at cmake/Modules/LibAddPlugin.cmake:128 (add_dependencies):
  The dependency target "elektra-range" of target "testmod_range" does not
  exist.
Call Stack (most recent call first):
  cmake/Modules/LibAddPlugin.cmake:428 (add_plugintest)
  src/plugins/range/CMakeLists.txt:11 (add_plugin)
  src/plugins/CMakeLists.txt:14 (include)


CMake Error at cmake/Modules/LibAddPlugin.cmake:128 (add_dependencies):
  The dependency target "elektra-keytometa" of target "testmod_keytometa"
  does not exist.
Call Stack (most recent call first):
  cmake/Modules/LibAddPlugin.cmake:428 (add_plugintest)
  src/plugins/keytometa/CMakeLists.txt:3 (add_plugin)
  src/plugins/CMakeLists.txt:14 (include)


CMake Error at cmake/Modules/LibAddPlugin.cmake:128 (add_dependencies):
  The dependency target "elektra-ni" of target "testmod_ni" does not exist.
Call Stack (most recent call first):
  cmake/Modules/LibAddPlugin.cmake:428 (add_plugintest)
  src/plugins/ni/CMakeLists.txt:9 (add_plugin)
  src/plugins/CMakeLists.txt:14 (include)


CMake Error at cmake/Modules/LibAddPlugin.cmake:128 (add_dependencies):
  The dependency target "elektra-dump" of target "testmod_dump" does not
  exist.
Call Stack (most recent call first):
  cmake/Modules/LibAddPlugin.cmake:428 (add_plugintest)
  src/plugins/dump/CMakeLists.txt:3 (add_plugin)
  src/plugins/CMakeLists.txt:14 (include)


CMake Error at cmake/Modules/LibAddPlugin.cmake:130 (add_dependencies):
  The dependency target "elektra-network" of target "testmod_network" does
  not exist.
Call Stack (most recent call first):
  src/plugins/network/CMakeLists.txt:7 (add_plugintest)
  src/plugins/CMakeLists.txt:14 (include)


CMake Error at cmake/Modules/LibAddPlugin.cmake:128 (add_dependencies):
  The dependency target "elektra-glob" of target "testmod_glob" does not
  exist.
Call Stack (most recent call first):
  cmake/Modules/LibAddPlugin.cmake:428 (add_plugintest)
  src/plugins/glob/CMakeLists.txt:3 (add_plugin)
  src/plugins/CMakeLists.txt:14 (include)


CMake Error at cmake/Modules/LibAddPlugin.cmake:128 (add_dependencies):
  The dependency target "elektra-mmapstorage_crc" of target
  "testmod_mmapstorage_crc" does not exist.
Call Stack (most recent call first):
  cmake/Modules/LibAddPlugin.cmake:428 (add_plugintest)
  src/plugins/mmapstorage/CMakeLists.txt:13 (add_plugin)
  src/plugins/CMakeLists.txt:14 (include)


CMake Error at cmake/Modules/LibAddPlugin.cmake:128 (add_dependencies):
  The dependency target "elektra-type" of target "testmod_type" does not
  exist.
Call Stack (most recent call first):
  cmake/Modules/LibAddPlugin.cmake:428 (add_plugintest)
  src/plugins/type/CMakeLists.txt:5 (add_plugin)
  src/plugins/CMakeLists.txt:14 (include)


CMake Error at cmake/Modules/LibAddPlugin.cmake:128 (add_dependencies):
  The dependency target "elektra-lineendings" of target "testmod_lineendings"
  does not exist.
Call Stack (most recent call first):
  cmake/Modules/LibAddPlugin.cmake:428 (add_plugintest)
  src/plugins/lineendings/CMakeLists.txt:5 (add_plugin)
  src/plugins/CMakeLists.txt:14 (include)


CMake Error at cmake/Modules/LibAddPlugin.cmake:128 (add_dependencies):
  The dependency target "elektra-yamlcpp" of target "testmod_yamlcpp" does
  not exist.
Call Stack (most recent call first):
  cmake/Modules/LibAddPlugin.cmake:428 (add_plugintest)
  src/plugins/yamlcpp/CMakeLists.txt:11 (add_plugin)
  src/plugins/CMakeLists.txt:14 (include)


CMake Error at cmake/Modules/LibAddPlugin.cmake:128 (add_dependencies):
  The dependency target "elektra-ipaddr" of target "testmod_ipaddr" does not
  exist.
Call Stack (most recent call first):
  cmake/Modules/LibAddPlugin.cmake:428 (add_plugintest)
  src/plugins/ipaddr/CMakeLists.txt:3 (add_plugin)
  src/plugins/CMakeLists.txt:14 (include)


CMake Error at cmake/Modules/LibAddPlugin.cmake:128 (add_dependencies):
  The dependency target "elektra-ini" of target "testmod_ini" does not exist.
Call Stack (most recent call first):
  cmake/Modules/LibAddPlugin.cmake:428 (add_plugintest)
  src/plugins/ini/CMakeLists.txt:6 (add_plugin)
  src/plugins/CMakeLists.txt:14 (include)


CMake Error at cmake/Modules/LibAddPlugin.cmake:128 (add_dependencies):
  The dependency target "elektra-mmapstorage" of target "testmod_mmapstorage"
  does not exist.
Call Stack (most recent call first):
  cmake/Modules/LibAddPlugin.cmake:428 (add_plugintest)
  src/plugins/mmapstorage/CMakeLists.txt:25 (add_plugin)
  src/plugins/CMakeLists.txt:14 (include)


CMake Error at cmake/Modules/LibAddPlugin.cmake:128 (add_dependencies):
  The dependency target "elektra-hexnumber" of target "testmod_hexnumber"
  does not exist.
Call Stack (most recent call first):
  cmake/Modules/LibAddPlugin.cmake:428 (add_plugintest)
  src/plugins/hexnumber/CMakeLists.txt:3 (add_plugin)
  src/plugins/CMakeLists.txt:14 (include)


CMake Error at cmake/Modules/LibAddPlugin.cmake:130 (add_dependencies):
  The dependency target "elektra-dbus" of target "testmod_dbus" does not
  exist.
Call Stack (most recent call first):
  src/plugins/dbus/CMakeLists.txt:17 (add_plugintest)
  src/plugins/CMakeLists.txt:14 (include)


CMake Error at cmake/Modules/LibAddPlugin.cmake:128 (add_dependencies):
  The dependency target "elektra-hexcode" of target "testmod_hexcode" does
  not exist.
Call Stack (most recent call first):
  cmake/Modules/LibAddPlugin.cmake:428 (add_plugintest)
  src/plugins/hexcode/CMakeLists.txt:3 (add_plugin)
  src/plugins/CMakeLists.txt:14 (include)


CMake Error at cmake/Modules/LibAddPlugin.cmake:128 (add_dependencies):
  The dependency target "elektra-ccode" of target "testmod_ccode" does not
  exist.
Call Stack (most recent call first):
  cmake/Modules/LibAddPlugin.cmake:428 (add_plugintest)
  src/plugins/ccode/CMakeLists.txt:1 (add_plugin)
  src/plugins/CMakeLists.txt:14 (include)


CMake Error at cmake/Modules/LibAddPlugin.cmake:130 (add_dependencies):
  The dependency target "elektra-fcrypt" of target "testmod_fcrypt" does not
  exist.
Call Stack (most recent call first):
  src/plugins/fcrypt/CMakeLists.txt:13 (add_plugintest)
  src/plugins/CMakeLists.txt:14 (include)


CMake Error at cmake/Modules/LibAddPlugin.cmake:128 (add_dependencies):
  The dependency target "elektra-mini" of target "testmod_mini" does not
  exist.
Call Stack (most recent call first):
  cmake/Modules/LibAddPlugin.cmake:428 (add_plugintest)
  src/plugins/mini/CMakeLists.txt:3 (add_plugin)
  src/plugins/CMakeLists.txt:14 (include)


CMake Error at cmake/Modules/LibAddPlugin.cmake:128 (add_dependencies):
  The dependency target "elektra-directoryvalue" of target
  "testmod_directoryvalue" does not exist.
Call Stack (most recent call first):
  cmake/Modules/LibAddPlugin.cmake:428 (add_plugintest)
  src/plugins/directoryvalue/CMakeLists.txt:3 (add_plugin)
  src/plugins/CMakeLists.txt:14 (include)


CMake Error at cmake/Modules/LibAddPlugin.cmake:128 (add_dependencies):
  The dependency target "elektra-filecheck" of target "testmod_filecheck"
  does not exist.
Call Stack (most recent call first):
  cmake/Modules/LibAddPlugin.cmake:428 (add_plugintest)
  src/plugins/filecheck/CMakeLists.txt:10 (add_plugin)
  src/plugins/CMakeLists.txt:14 (include)


CMake Error at cmake/Modules/LibAddPlugin.cmake:128 (add_dependencies):
  The dependency target "elektra-enum" of target "testmod_enum" does not
  exist.
Call Stack (most recent call first):
  cmake/Modules/LibAddPlugin.cmake:428 (add_plugintest)
  src/plugins/enum/CMakeLists.txt:3 (add_plugin)
  src/plugins/CMakeLists.txt:14 (include)


CMake Error at cmake/Modules/LibAddPlugin.cmake:130 (add_dependencies):
  The dependency target "elektra-line" of target "testmod_line" does not
  exist.
Call Stack (most recent call first):
  src/plugins/line/CMakeLists.txt:17 (add_plugintest)
  src/plugins/CMakeLists.txt:14 (include)


CMake Error at cmake/Modules/LibAddPlugin.cmake:128 (add_dependencies):
  The dependency target "elektra-conditionals" of target
  "testmod_conditionals" does not exist.
Call Stack (most recent call first):
  cmake/Modules/LibAddPlugin.cmake:428 (add_plugintest)
  src/plugins/conditionals/CMakeLists.txt:3 (add_plugin)
  src/plugins/CMakeLists.txt:14 (include)


CMake Error at cmake/Modules/LibAddPlugin.cmake:128 (add_dependencies):
  The dependency target "elektra-iconv" of target "testmod_iconv" does not
  exist.
Call Stack (most recent call first):
  cmake/Modules/LibAddPlugin.cmake:428 (add_plugintest)
  src/plugins/iconv/CMakeLists.txt:9 (add_plugin)
  src/plugins/CMakeLists.txt:14 (include)


CMake Error at cmake/Modules/LibAddPlugin.cmake:128 (add_dependencies):
  The dependency target "elektra-yajl" of target "testmod_yajl" does not
  exist.
Call Stack (most recent call first):
  cmake/Modules/LibAddPlugin.cmake:428 (add_plugintest)
  src/plugins/yajl/CMakeLists.txt:11 (add_plugin)
  src/plugins/CMakeLists.txt:14 (include)


CMake Error at cmake/Modules/LibAddPlugin.cmake:128 (add_dependencies):
  The dependency target "elektra-list" of target "testmod_list" does not
  exist.
Call Stack (most recent call first):
  cmake/Modules/LibAddPlugin.cmake:428 (add_plugintest)
  src/plugins/list/CMakeLists.txt:3 (add_plugin)
  src/plugins/CMakeLists.txt:14 (include)


CMake Error at cmake/Modules/LibAddPlugin.cmake:128 (add_dependencies):
  The dependency target "elektra-camel" of target "testmod_camel" does not
  exist.
Call Stack (most recent call first):
  cmake/Modules/LibAddPlugin.cmake:428 (add_plugintest)
  src/plugins/camel/CMakeLists.txt:3 (add_plugin)
  src/plugins/CMakeLists.txt:14 (include)


CMake Error at cmake/Modules/LibAddPlugin.cmake:128 (add_dependencies):
  The dependency target "elektra-base64" of target "testmod_base64" does not
  exist.
Call Stack (most recent call first):
  cmake/Modules/LibAddPlugin.cmake:428 (add_plugintest)
  src/plugins/base64/CMakeLists.txt:3 (add_plugin)
  src/plugins/CMakeLists.txt:14 (include)


CMake Error at cmake/Modules/LibAddPlugin.cmake:128 (add_dependencies):
  The dependency target "elektra-boolean" of target "testmod_boolean" does
  not exist.
Call Stack (most recent call first):
  cmake/Modules/LibAddPlugin.cmake:428 (add_plugintest)
  src/plugins/boolean/CMakeLists.txt:3 (add_plugin)
  src/plugins/CMakeLists.txt:14 (include)


CMake Error at cmake/Modules/LibAddPlugin.cmake:128 (add_dependencies):
  The dependency target "elektra-uname" of target "testmod_uname" does not
  exist.
Call Stack (most recent call first):
  cmake/Modules/LibAddPlugin.cmake:428 (add_plugintest)
  src/plugins/uname/CMakeLists.txt:11 (add_plugin)
  src/plugins/CMakeLists.txt:14 (include)


CMake Error at cmake/Modules/LibAddPlugin.cmake:130 (add_dependencies):
  The dependency target "elektra-mathcheck" of target "testmod_mathcheck"
  does not exist.
Call Stack (most recent call first):
  src/plugins/mathcheck/CMakeLists.txt:9 (add_plugintest)
  src/plugins/CMakeLists.txt:14 (include)


CMake Error at cmake/Modules/LibAddPlugin.cmake:128 (add_dependencies):
  The dependency target "elektra-csvstorage" of target "testmod_csvstorage"
  does not exist.
Call Stack (most recent call first):
  cmake/Modules/LibAddPlugin.cmake:428 (add_plugintest)
  src/plugins/csvstorage/CMakeLists.txt:5 (add_plugin)
  src/plugins/CMakeLists.txt:14 (include)


CMake Error at cmake/Modules/LibAddPlugin.cmake:128 (add_dependencies):
  The dependency target "elektra-augeas" of target "testmod_augeas" does not
  exist.
Call Stack (most recent call first):
  cmake/Modules/LibAddPlugin.cmake:428 (add_plugintest)
  src/plugins/augeas/CMakeLists.txt:36 (add_plugin)
  src/plugins/CMakeLists.txt:14 (include)

システムインフォメーション

  • Elektraバージョン: master
  • OS: macOS 10.14
bug build

全てのコメント3件

この問題を報告していただきありがとうございます。

この状況をビルドサーバーでビルドしているようです。 これは、バグを完全に解決するために実行する必要があります。

@ kodebach #2266がこの問題に関連していると思いますか?

この状況をビルドサーバーでビルドしているようです。

そうは思わない。 私が知る限り、ビルドジョブdocBUILD_SHAREDOFFに設定します

これは、バグを完全に解決するために実行する必要があります。

つまり、 BUILD_SHARED=OFFBUILD_FULL=ONを使用するビルドジョブを導入する必要があります。そうすれば、私は心から同意します。

@ kodebach #2266がこの問題に関連していると思いますか?

はい、それが問題のようです。 私はそれを修正しようとします。

このページは役に立ちましたか?
0 / 5 - 0 評価

関連する問題

sanssecours picture sanssecours  ·  4コメント

markus2330 picture markus2330  ·  3コメント

mpranj picture mpranj  ·  3コメント

e1528532 picture e1528532  ·  4コメント

mpranj picture mpranj  ·  3コメント