Libelektra: CMake: La creación del sistema de compilación falla si solo está habilitado `BUILD_FULL`

Creado en 18 oct. 2018  ·  3Comentarios  ·  Fuente: ElektraInitiative/libelektra

Pasos para reproducir el problema

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

Resultado Esperado

CMake crea el sistema de compilación.

Resultado actual

CMake no imprime los siguientes mensajes de error:

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)

.

Información del sistema

  • Versión de Elektra: master
  • SO: macOS 10.14
bug build

Todos 3 comentarios

¡Gracias por reportar este problema!

Parece que construimos esta situación en buildserver. Esto debe hacerse para resolver completamente el error.

@kodebach ¿Crees que el # 2266 podría estar relacionado con este problema?

Parece que construimos esta situación en buildserver.

No me parece. Solo el trabajo de construcción doc establece BUILD_SHARED en OFF hasta donde yo sé .

Esto debe hacerse para resolver completamente el error.

Si quiere decir, deberíamos presentar un trabajo de construcción que use BUILD_SHARED=OFF y BUILD_FULL=ON , entonces estoy totalmente de acuerdo.

@kodebach ¿Crees que el # 2266 podría estar relacionado con este problema?

Sí, parece que ese es el problema. Intentaré arreglarlo.

¿Fue útil esta página
0 / 5 - 0 calificaciones

Temas relacionados

dmoisej picture dmoisej  ·  3Comentarios

markus2330 picture markus2330  ·  4Comentarios

markus2330 picture markus2330  ·  3Comentarios

e1528532 picture e1528532  ·  4Comentarios

mpranj picture mpranj  ·  4Comentarios