Restarting halld_sim Independence Project

Notes on a halld_recon-independent halld_sim

Error building hd_hddm under C7:

[marki@markdesk5 build]$ make
Consolidate compiler generated dependencies of target HDDM
[ 10%] Building CXX object CMakeFiles/HDDM.dir/src/DEventSourceHDDM.cc.o
In file included from /home/marki/halld_recon-independent_halld_sim/hd_hddm/src/DEventSourceHDDM.cc:36:
/home/marki/halld_recon-independent_halld_sim/hd_hddm/include/HDDM/DEventSourceHDDM.h:27:10: fatal error: HDDM/hddm_s.hpp: No such file or directory
   27 | #include <HDDM/hddm_s.hpp>
      |          ^~~~~~~~~~~~~~~~~
compilation terminated.
make[2]: *** [CMakeFiles/HDDM.dir/build.make:90: CMakeFiles/HDDM.dir/src/DEventSourceHDDM.cc.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:83: CMakeFiles/HDDM.dir/all] Error 2
make: *** [Makefile:91: all] Error 2

Need to make the header file and need to put it somewhere where it can be found.

This is the command to create hddm_s++.cpp from event.xml

.Linux_CentOS7-x86_64-gcc4.8.5-cntr/programs/Utilities/hddm/hddm-cpp -o .Linux_CentOS7-x86_64-gcc4.8.5-cntr/libraries/HDDM/hddm_s libraries/HDDM/event.xml
mv .Linux_CentOS7-x86_64-gcc4.8.5-cntr/libraries/HDDM/hddm_s.cpp .Linux_CentOS7-x86_64-gcc4.8.5-cntr/libraries/HDDM/hddm_s++.cpp

Created an example of custom command creation in CMake.

Tried another build of halld_sim after unset’ing HALLD_RECON_HOME. The following error ensues.

Compiling  [libraries/AMPTOOLS_AMPS/Lambda1520tdist.cc]
libraries/AMPTOOLS_AMPS/Lambda1520tdist.cc:12:10: fatal error: particleType.h: No such file or directory
   12 | #include "particleType.h"
      |          ^~~~~~~~~~~~~~~~
compilation terminated.
scons: *** [.Linux_Fedora34-x86_64-gcc11.2.1/libraries/AMPTOOLS_AMPS/Lambda1520tdist.o] Error 1
scons: building terminated because of errors.

particleType.h should now come from the HDDM package.

Got halld_recon to build with no libraries/HDDM, no programs/Utilties/HDDM, and none of the header files migrated to libhddm. This is on branch hdrihds of markito3/halld_recon.

Got halld_sim and hdgeant4 to build against the aforementioned version of halld_recon. Used this version set file (markdesk5:/home/marki/halld_recon-independent_halld_sim/version.xml):

<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" href="https://halldweb.jlab.org/halld_versions/version6.xsl"?>
<gversions file="version_5.0.1.xml" date="2021-10-07">
<description>Same as 5.0.0 except with hd_utilities upgraded to 1.35 to use updated DSelector-running batch scripts.</description>
<package name="amptools" version="0.12.2" dirtag="root62404"/>
<package name="ccdb" version="1.06.07"/>
<package name="cernlib" version="2005" word_length="64-bit"/>
<package name="diracxx" version="2.0.1" dirtag="root62404"/>
<package name="evio" version="4.4.6"/>
<package name="evtgen" version="01.07.00"/>
<package name="geant4" version="10.04.p02" home="/home/marki/halld_recon-independent_halld_sim/geant4.10.04.p02"/>
<package name="gluex_MCwrapper" version="v2.5.2"/>
<package name="gluex_root_analysis" version="1.20.0" dirtag="hdr4291"/>
<package name="halld_recon" home="/home/marki/halld_recon-independent_halld_sim/halld_recon" url="git@github.com:markito3/halld_recon" branch="hdrihds"/>
<package name="halld_sim" home="/home/marki/halld_recon-independent_halld_sim/halld_sim" url="git@github.com:markito3/halld_sim" branch="hdrihds"/>
<package name="hddm" home="/home/marki/halld_recon-independent_halld_sim/HDDM" url="https://github.com/markito3/HDDM"/>
<package name="libhddm" home="/home/marki/halld_recon-independent_halld_sim/libhddm" url="git@github.com:markito3/libhddm"/>
<package name="hdds" version="4.14.0" dirtag="root62404"/>
<package name="hdgeant4" home="/home/marki/halld_recon-independent_halld_sim/hdgeant4" url="git@github.com:markito3/hdgeant4" branch="hdrihds"/>
<package name="hd_utilities" version="1.35"/>
<package name="hepmc" version="2.06.10"/>
<package name="jana" version="0.8.2" dirtag="root62404"/>
<package name="lapack" version="3.9.0"/>
<package name="photos" version="3.61"/>
<package name="rcdb" version="0.06.00"/>
<package name="root" version="6.24.04"/>
<package name="sqlitecpp" version="3.1.1"/>
<package name="sqlite" version="3.36.0" year="2021"/>
<package name="xerces-c" version="3.2.3"/>
<package name="hddm" home="/home/marki/halld_recon-independent_halld_sim/HDDM"/>
</gversions>

Tagged the following packages as standalone-hddm, all on branch hdrihds, where they build with HDDM-related stuff extracted from halld_recon:

  • build_scripts
  • gluex_root_analysis
  • halld_recon
  • halld_sim
  • HDDM
  • hdgeant4
  • libhddm

Merge in Pasteurized Branches and their Allies

  • here is the base:
    • build_scripts master
    • versions captured in version_python_dist_indep.xml.
  • compare with ubuntu work
    • bs: ubuntu20_v2
    • vs: version_ubuntu20.xml
  • halld_recon: pasteurize_centos8_mmi, new branch pasteurize_rebased_mmi, rebased from 4.21.0
  • halld_sim: pasteurize_centos8_mmi, new branch pasteurize_rebased_mmi, rebased from 4.23.0
  • hdds: pasteurize_mmi
  • hdgeant4: input_python_info_mmi
  • builds in the centos7 container on markdesk5
  • container build on ifarm1901 with default singularity module and singularity container for centos7 created on markdesk5 works
  • problems building on sandd1:
    • needed python2-future rpm
    • needed scons rpm to be able to use python2-future
    • needed to eliminate /apps/bin from path to use scons from rpm (i.e., use /usr/bin/scons)
    • after merging Richard’s HDF5 changes, needed to merge them into halld_recon branch (i.e., pasteurize_rebased_mmi) in order to be able to do automerge to master by the reviewer, should a reviewer appear
    • needed libtirpc-devel rpm to build halld_sim on sandd1
  • submitted four pull requests to the four above-mentioned repositories, using branches named above