Skip to content

sbndcode/OpDetSim: link sbndPDMapAlg_tool to sbncode::OpDet_PDMapAlg link library not sbncode::OpDet_PDMapAlgSimple_tool. #943

Open
gartung wants to merge 1 commit into
SBNSoftware:developfrom
gartung:mpd-build
Open

sbndcode/OpDetSim: link sbndPDMapAlg_tool to sbncode::OpDet_PDMapAlg link library not sbncode::OpDet_PDMapAlgSimple_tool. #943
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)

Relevant PR links (optional)

Can be tested with or without SBNSoftware/sbncode#662

…link library not sbncode::OpDet_PDMapAlgSimple_tool. This fixes a cetmodules error from linking a tool library to another tool library.
@gartung

gartung commented Jul 14, 2026

Copy link
Copy Markdown
Contributor Author

trigger build LArSoft/lar*@LARSOFT_SUITE_v10_21_00 SBNSoftware/sbndaq-artdaq-core@v1_10_06 SBNSoftware/sbn*@SBN_SUITE_v10_21_00

@FNALbuild

Copy link
Copy Markdown
Collaborator

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

@FNALbuild

Copy link
Copy Markdown
Collaborator

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

@FNALbuild

Copy link
Copy Markdown
Collaborator

❌ 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
Collaborator

❌ 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

@gartung

gartung commented Jul 14, 2026

Copy link
Copy Markdown
Contributor Author

trigger build #943 SBNSoftware/sbncode#662 LArSoft/lar*@LARSOFT_SUITE_v10_21_00 SBNSoftware/sbndaq-artdaq-core@v1_10_06 SBNSoftware/sbn*@SBN_SUITE_v10_21_00

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