Skip to content

Problems building dependent packages #10

@tmadlener

Description

@tmadlener

This might again be just me not fully understanding the concept yet, but maybe it's also the way the packages are structured and depend on each other.

I tried to make a minimal non-trivial test by building podio and EDM4hep. EDM4hep depends on podio, as that provides the code generator and some libraries that it links against.

I did the following:

  • create a new project via spack mpd-project -T $(pwd)/edm4hep-minimal --name edm4hep-minimal cxxstd=20 %gcc@13.2.0
  • symlink the repositories into edm4hep-minimal/srcs (making sure to lowercase them to make match the names spack expects)
  • spack mpd refresh
  • spack env activate edm4hep-minimal/local
  • spack mpd build

With this I run into the following issue:

CMake Error at edm4hep/CMakeLists.txt:12 (find_package):
  Could not find a package configuration file provided by "podio" (requested
  version 1.1) with any of the following names:

    podioConfig.cmake
    podio-config.cmake

  Add the installation prefix of "podio" to CMAKE_PREFIX_PATH or set
  "podio_DIR" to a directory containing one of the above files.  If "podio"
  provides a separate development package or SDK, be sure it has been
  installed.


-- Configuring incomplete, errors occurred!

I am not sure I fully understand yet why this happens, as podioConfig.cmake and podioConfigVersion.cmake are present in the podio build folder:

$ ls edm4hep-minimal/build/podio/*.cmake
edm4hep-minimal/build/podio/podioConfig.cmake  
edm4hep-minimal/build/podio/podioConfigVersion.cmake

Is this a podio issue (not being completely fetch-content-able) or is this something that can be fixed in spack-mpd?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions