Skip to content

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

Open
gartung wants to merge 1 commit 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 1 commit 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#945

@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

@gartung gartung changed the title sbncode/OpDet: don't declare PDMapAlgSimple in header so link library works correctly sbncode/OpDet: don't declare PDMapAlgSimple in header so link library works correctly. Add WireCell cmake targets for spack mpd build Jul 15, 2026
@gartung gartung changed the title sbncode/OpDet: don't declare PDMapAlgSimple in header so link library works correctly. Add WireCell cmake targets for spack mpd build sbncode/OpDet: don't declare PDMapAlgSimple in header so link library works correctly. Jul 15, 2026
@gartung

gartung commented Jul 15, 2026

Copy link
Copy Markdown
Contributor Author

trigger build SBNSoftware/sbndcode#943 #662 LArSoft/lar*@LARSOFT_SUITE_v10_22_00 SBNSoftware/sbndaq-artdaq-core@v1_10_06 SBNSoftware/sbn*@develop

@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 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 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 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

@gartung

gartung commented Jul 15, 2026

Copy link
Copy Markdown
Contributor Author

trigger build SBNSoftware/sbndcode#945 #662 LArSoft/lar*@LARSOFT_SUITE_v10_22_00 SBNSoftware/sbndaq-artdaq-core@v1_10_06 SBNSoftware/sbn*@develop

@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 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 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 Warning 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 warning phase, check the ci_tests SBND phase logs

parent CI build details are available through the CI dashboard

@gartung

gartung commented Jul 16, 2026

Copy link
Copy Markdown
Contributor Author

@hgreenlee can this be merged?

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