Skip to content

sbncode/OpDet: don't declare PDMapAlgSimple in header so link library works correctly#662

Open
gartung wants to merge 2 commits into
SBNSoftware:developfrom
gartung:mpd-build
Open

sbncode/OpDet: don't declare PDMapAlgSimple in header so link library works correctly#662
gartung wants to merge 2 commits into
SBNSoftware:developfrom
gartung:mpd-build

Conversation

@gartung

@gartung gartung commented Jul 13, 2026

Copy link
Copy Markdown
Contributor

Description

This fixes the cetmodules error from linking a tool library to another tool library found when building with spack mpd

CMake Error at /scratch/gartung/devtest/mpddev/local/.spack-env/view/Modules/CetProcessLiblist.cmake:68 (message):


  target sbndcode_OpDetSim_sbndPDMapAlg_tool cannot link to target
  sbncode::OpDet_PDMapAlgSimple_tool of CMake type "MODULE_LIBRARY".

  Separate implementation from plugin registration code (e.g.  X.cc vs
  X_<plugin-suffix>.cc) (strongly recommended), specify PUBLIC dependencies
  to basic_plugin() (temporary solution only), or set sbndcode_MODULE_PLUGINS
  to FALSE (not recommended)
Call Stack (most recent call first):
  /scratch/gartung/devtest/mpddev/local/.spack-env/view/Modules/CetProcessLiblist.cmake:24 (_cet_convert_target_arg)
  /scratch/gartung/devtest/mpddev/local/.spack-env/view/Modules/CetProcessLiblist.cmake:12 (cet_convert_target_args)
  /scratch/gartung/devtest/mpddev/local/.spack-env/view/Modules/CetMakeLibrary.cmake:295 (cet_process_liblist)
  /scratch/gartung/devtest/mpddev/local/.spack-env/view/Modules/BasicPlugin.cmake:312 (cet_make_library)
  /scratch/gartung/devtest/mpddev/local/.spack-env/view/Modules/compat/art/art::tool.cmake:35 (basic_plugin)
  /scratch/gartung/devtest/mpddev/local/.spack-env/view/Modules/BasicPlugin.cmake:373 (art::tool)
  /scratch/gartung/devtest/mpddev/local/.spack-env/view/Modules/BasicPlugin.cmake:373 (cmake_language)
  sbndcode/sbndcode/OpDetSim/CMakeLists.txt:2 (cet_build_plugin)


CMake Error at /scratch/gartung/devtest/mpddev/local/.spack-env/view/Modules/CetMakeLibrary.cmake:456 (target_link_libraries):
  Target "sbncode::OpDet_PDMapAlgSimple_tool" of type MODULE_LIBRARY may not
  be linked into another target.  One may link only to INTERFACE, OBJECT,
  STATIC or SHARED libraries, or to executables with the ENABLE_EXPORTS
  property set.
Call Stack (most recent call first):
  /scratch/gartung/devtest/mpddev/local/.spack-env/view/Modules/BasicPlugin.cmake:312 (cet_make_library)
  /scratch/gartung/devtest/mpddev/local/.spack-env/view/Modules/compat/art/art::tool.cmake:35 (basic_plugin)
  /scratch/gartung/devtest/mpddev/local/.spack-env/view/Modules/BasicPlugin.cmake:373 (art::tool)
  /scratch/gartung/devtest/mpddev/local/.spack-env/view/Modules/BasicPlugin.cmake:373 (cmake_language)
  sbndcode/sbndcode/OpDetSim/CMakeLists.txt:2 (cet_build_plugin)

Can be tested with or without SBNSoftware/sbndcode#943

@FNALbuild

Copy link
Copy Markdown

✔️ CI build for LArSoft Succeeded on slf7 for c14:prof -- details available through the CI dashboard

@FNALbuild

Copy link
Copy Markdown

❌ CI build for ICARUS Failed at phase build ICARUS on slf7 for c14:prof -- details available through the CI dashboard

🚨 For more details about the failed phase, check the build ICARUS phase logs

parent CI build details are available through the CI dashboard

@FNALbuild

Copy link
Copy Markdown

❌ CI build for SBND Failed at phase build SBND on slf7 for c14:prof -- details available through the CI dashboard

🚨 For more details about the failed phase, check the build SBND phase logs

parent CI build details are available through the CI dashboard

@FNALbuild

Copy link
Copy Markdown

✔️ CI build for LArSoft Succeeded on slf7 for e26:prof -- details available through the CI dashboard

@FNALbuild

Copy link
Copy Markdown

❌ CI build for ICARUS Failed at phase build ICARUS on slf7 for e26:prof -- details available through the CI dashboard

🚨 For more details about the failed phase, check the build ICARUS phase logs

parent CI build details are available through the CI dashboard

@FNALbuild

Copy link
Copy Markdown

❌ CI build for SBND Failed at phase build SBND on slf7 for e26:prof -- details available through the CI dashboard

🚨 For more details about the failed phase, check the build SBND phase logs

parent CI build details are available through the CI dashboard

@FNALbuild

Copy link
Copy Markdown

✔️ CI build for LArSoft Succeeded on slf7 for e26:prof -- details available through the CI dashboard

@FNALbuild

Copy link
Copy Markdown

✔️ CI build for LArSoft Succeeded on slf7 for c14:prof -- details available through the CI dashboard

@FNALbuild

Copy link
Copy Markdown

❌ CI build for SBND Failed at phase build SBND on slf7 for c14:prof -- details available through the CI dashboard

🚨 For more details about the failed phase, check the build SBND phase logs

parent CI build details are available through the CI dashboard

@FNALbuild

Copy link
Copy Markdown

❌ CI build for ICARUS Failed at phase build ICARUS on slf7 for c14:prof -- details available through the CI dashboard

🚨 For more details about the failed phase, check the build ICARUS phase logs

parent CI build details are available through the CI dashboard

@FNALbuild

Copy link
Copy Markdown

❌ CI build for ICARUS Failed at phase build ICARUS on slf7 for e26:prof -- details available through the CI dashboard

🚨 For more details about the failed phase, check the build ICARUS phase logs

parent CI build details are available through the CI dashboard

@FNALbuild

Copy link
Copy Markdown

❌ CI build for SBND Failed at phase build SBND on slf7 for e26:prof -- details available through the CI dashboard

🚨 For more details about the failed phase, check the build SBND phase logs

parent CI build details are available through the CI dashboard

@FNALbuild

Copy link
Copy Markdown

✔️ CI build for LArSoft Succeeded on slf7 for c14:prof -- details available through the CI dashboard

@FNALbuild

Copy link
Copy Markdown

✔️ CI build for LArSoft Succeeded on slf7 for e26:prof -- details available through the CI dashboard

@FNALbuild

Copy link
Copy Markdown

✔️ CI build for LArSoft Succeeded on slf7 for c14:prof -- details available through the CI dashboard

@FNALbuild

Copy link
Copy Markdown

❌ CI build for SBND Failed at phase build SBND on slf7 for c14:prof -- details available through the CI dashboard

🚨 For more details about the failed phase, check the build SBND phase logs

parent CI build details are available through the CI dashboard

@FNALbuild

Copy link
Copy Markdown

❌ CI build for ICARUS Failed at phase build ICARUS on slf7 for c14:prof -- details available through the CI dashboard

🚨 For more details about the failed phase, check the build ICARUS phase logs

parent CI build details are available through the CI dashboard

@FNALbuild

Copy link
Copy Markdown

❌ CI build for ICARUS Failed at phase build ICARUS on slf7 for e26:prof -- details available through the CI dashboard

🚨 For more details about the failed phase, check the build ICARUS phase logs

parent CI build details are available through the CI dashboard

@FNALbuild

Copy link
Copy Markdown

❌ CI build for SBND Failed at phase build SBND on slf7 for c14:prof -- details available through the CI dashboard

🚨 For more details about the failed phase, check the build SBND phase logs

parent CI build details are available through the CI dashboard

@FNALbuild

Copy link
Copy Markdown

❌ CI build for ICARUS Failed at phase build ICARUS on slf7 for c14:prof -- details available through the CI dashboard

🚨 For more details about the failed phase, check the build ICARUS phase logs

parent CI build details are available through the CI dashboard

@FNALbuild

Copy link
Copy Markdown

❌ CI build for ICARUS Failed at phase build ICARUS on slf7 for e26:prof -- details available through the CI dashboard

🚨 For more details about the failed phase, check the build ICARUS phase logs

parent CI build details are available through the CI dashboard

@FNALbuild

Copy link
Copy Markdown

✔️ CI build for LArSoft Succeeded on slf7 for e26:prof -- details available through the CI dashboard

@FNALbuild

Copy link
Copy Markdown

❌ CI build for SBND Failed at phase ci_tests SBND on slf7 for e26:prof - ignored warnings for build -- details available through the CI dashboard

🚨 For more details about the failed phase, check the ci_tests SBND phase logs

parent CI build details are available through the CI dashboard

@FNALbuild

Copy link
Copy Markdown

❌ CI build for ICARUS Failed at phase build ICARUS on slf7 for e26:prof -- details available through the CI dashboard

🚨 For more details about the failed phase, check the build ICARUS phase logs

parent CI build details are available through the CI dashboard

@FNALbuild

Copy link
Copy Markdown

❌ CI build for SBND Failed at phase ci_tests SBND on slf7 for e26:prof - ignored warnings for build -- details available through the CI dashboard

🚨 For more details about the failed phase, check the ci_tests SBND phase logs

parent CI build details are available through the CI dashboard

@FNALbuild

Copy link
Copy Markdown

❌ CI build for ICARUS Failed at phase build ICARUS on slf7 for e26:prof -- details available through the CI dashboard

🚨 For more details about the failed phase, check the build ICARUS phase logs

parent CI build details are available through the CI dashboard

@FNALbuild

Copy link
Copy Markdown

❌ CI build for ICARUS Failed at phase build ICARUS on slf7 for e26:prof -- details available through the CI dashboard

🚨 For more details about the failed phase, check the build ICARUS phase logs

parent CI build details are available through the CI dashboard

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants