Installation error at make step

Hello,

I am trying to install Garfield++ using the instructions from this webpage: Installation - Garfield++

At the “make -j4” step, I encountered the following error

In file included from input_line_9:7:
In file included from /home/d/Nuclear_phys4bash/Garfield/Include/Garfield/ComponentFieldMap.hh:10:
In file included from /home/d/Nuclear_phys4bash/Garfield/Include/Garfield/Component.hh:9:
/home/d/Nuclear_phys4bash/Garfield/Include/Garfield/Symmetry.hh:144:7: error: cannot initialize a variable of type 'const Garfield::Symmetry::Type' with an rvalue of type 'unsigned int'
      static_cast<std::uint32_t>(Type::PeriodicX) |
      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/d/Nuclear_phys4bash/Garfield/Include/Garfield/Symmetry.hh:152:7: error: cannot initialize a variable of type 'const Garfield::Symmetry::Type' with an rvalue of type 'unsigned int'
      static_cast<std::uint32_t>(Type::PeriodicY) |
      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/d/Nuclear_phys4bash/Garfield/Include/Garfield/Symmetry.hh:160:7: error: cannot initialize a variable of type 'const Garfield::Symmetry::Type' with an rvalue of type 'unsigned int'
      static_cast<std::uint32_t>(Type::PeriodicZ) |
      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

I am not sure what is wrong. Before this step, I did “cmake $GARFIELD_HOME”, and it ran successfully. I only got the following warning that it couldn’t find Geant4:

CMake Warning at Examples/Geant4GarfieldInterface/CMakeLists.txt:16 (find_package):
  By not providing "FindGeant4.cmake" in CMAKE_MODULE_PATH this project has
  asked CMake to find a package configuration file provided by "Geant4", but
  CMake did not find one.

  Could not find a package configuration file provided by "Geant4" with any
  of the following names:

    Geant4Config.cmake
    geant4-config.cmake

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

Please note that I haven’t installed Geant4. Also, the installation page has no mention regarding Geant4.

Any suggestions on how to solve this error? I have no prior knowledge to Garfield, so, sorry in advance if this question is too naive. My ROOT and OS versions are

OS: Ubuntu 20.04.6 LTS x86_64
ROOT: 6.24/08 (Built for linuxx8664gcc)

Best,
Divyang.

Perhaps @hschindl can help with this.