Libelektra: CMake : la création du système de build échoue si seul `BUILD_FULL` est activé

Créé le 18 oct. 2018  ·  3Commentaires  ·  Source: ElektraInitiative/libelektra

Étapes pour reproduire le problème

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

résultat attendu

CMake crée le système de construction.

Résultat actuel

CMake ne parvient pas à imprimer les messages d'erreur suivants :

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)

.

Informations système

  • Version Elektra : master
  • Système d' exploitation : macOS 10.14
bug build

Tous les 3 commentaires

Merci d'avoir signalé ce problème!

On dirait que nous construisons cette situation sur le buildserver. Cela devrait être fait pour résoudre complètement le bogue.

@kodebach Pensez-vous que #2266 pourrait être lié à ce problème ?

On dirait que nous construisons cette situation sur le buildserver.

Je ne pense pas. Seule la tâche de construction doc définit BUILD_SHARED à OFF pour autant que je sache .

Cela devrait être fait pour résoudre complètement le bogue.

Si vous voulez dire, nous devrions introduire une tâche de build qui utilise BUILD_SHARED=OFF et BUILD_FULL=ON , alors je suis entièrement d'accord.

@kodebach Pensez-vous que #2266 pourrait être lié à ce problème ?

Oui il semble que ce soit le problème. Je vais essayer de le réparer.

Cette page vous a été utile?
0 / 5 - 0 notes

Questions connexes

mpranj picture mpranj  ·  3Commentaires

sanssecours picture sanssecours  ·  4Commentaires

sanssecours picture sanssecours  ·  4Commentaires

e1528532 picture e1528532  ·  4Commentaires

dominicjaeger picture dominicjaeger  ·  3Commentaires