Struggling to build an old version of the stack

I am trying to rebuild my analysis as it was when I originally wrote it, I use the following instructions

source /cvmfs/sw.hsf.org/spackages6/key4hep-stack/2023-01-15/x86_64-centos7-gcc11.2.0-opt/csapx/setup.sh
export LOCAL_DIR=$PWD
export PYTHONPATH=${LOCAL_DIR}:${PYTHONPATH}
export PYTHONPATH=${LOCAL_DIR}/python:${PYTHONPATH}
export PATH=${LOCAL_DIR}/bin:${PATH}
export LD_LIBRARY_PATH=${LOCAL_DIR}/install/lib:${LD_LIBRARY_PATH}
export CMAKE_PREFIX_PATH=${LOCAL_DIR}/install:${CMAKE_PREFIX_PATH}
export ROOT_INCLUDE_PATH=${LOCAL_DIR}/install/include:${ROOT_INCLUDE_PATH}
export ONNXRUNTIME_ROOT_DIR=`python -c "import onnxruntime; print(onnxruntime.__path__[0]+'/../../../..')"`
export LD_LIBRARY_PATH=$ONNXRUNTIME_ROOT_DIR/lib:$LD_LIBRARY_PATH
mkdir build install
cd build
cmake .. -DCMAKE_INSTALL_PREFIX=../install
make install

But I get the errors in the attached file

/storage/epp2/phutmn/FCC_fix_cmake/FCCAnalyses
mkdir: cannot create directory 'build': File exists
mkdir: cannot create directory 'install': File exists
-- C++ standard: 17
-- Found Python: /cvmfs/sw.hsf.org/spackages6/python/3.9.12/x86_64-centos7-gcc11.2.0-opt/cqr5o/bin/python3.9 (found version "3.9.12") found components: Interpreter 
-- found Acts version 19.6.0 commit 333082914
-- loading components:
--   Core
-- Including DD4hepBuild.cmake
-- DD4hep uses Geant4
-- Found XercesC: /cvmfs/sw.hsf.org/spackages6/xerces-c/3.2.3/x86_64-centos7-gcc11.2.0-opt/assga/lib/libxerces-c.so (found suitable version "3.2.3", minimum required is "3.2.3") 
-- Found XercesC: /cvmfs/sw.hsf.org/spackages6/xerces-c/3.2.3/x86_64-centos7-gcc11.2.0-opt/assga/lib/libxerces-c.so (found version "3.2.3") 
-- Found Python: /cvmfs/sw.hsf.org/spackages6/python/3.9.12/x86_64-centos7-gcc11.2.0-opt/cqr5o/include/python3.9 (found suitable exact version "3.9.12") found components: Development Development.Module Development.Embed 
-- |++> Using python executable:  /cvmfs/sw.hsf.org/spackages6/python/3.9.12/x86_64-centos7-gcc11.2.0-opt/cqr5o/bin/python3.9
-- DD4hep uses LCIO
-- Check for LCIO (2.19.0)
-- Check for LCIO_LIBRARIES: lcio
-- Check for LCIO_LCIO_LIBRARY: /cvmfs/sw.hsf.org/spackages6/lcio/2.19/x86_64-centos7-gcc11.2.0-opt/fm5su/lib64/liblcio.so -- ok
-- includes-------------------------- fastjet: /cvmfs/sw.hsf.org/spackages6/fastjet/3.3.4/x86_64-centos7-gcc11.2.0-opt/vpxsv/include
-- includes-------------------------- onnxruntime: /cvmfs/sw.hsf.org/spackages6/py-onnx-runtime/1.7.2/x86_64-centos7-gcc11.2.0-opt/geszh/include
-- add-ons--------------------------- FastJet;ONNXRuntime
-- includes-------------------------- dataframe edm4hep: 
-- includes-------------------------- dataframe podio  : /cvmfs/sw.hsf.org/spackages6/podio/0.16.2/x86_64-centos7-gcc11.2.0-opt/x5mhf/include
-- includes headers FCCAnalyses/Algorithms.h;FCCAnalyses/CaloNtupleizer.h;FCCAnalyses/JetClusteringUtils.h;FCCAnalyses/JetConstituentsUtils.h;FCCAnalyses/JetFlavourUtils.h;FCCAnalyses/JetTaggingUtils.h;FCCAnalyses/LinkDef.h;FCCAnalyses/MCParticle.h;FCCAnalyses/ReconstructedParticle.h;FCCAnalyses/ReconstructedParticle2MC.h;FCCAnalyses/ReconstructedParticle2Track.h;FCCAnalyses/SmearObjects.h;FCCAnalyses/Smearing.h;FCCAnalyses/Utils.h;FCCAnalyses/VertexFinderActs.h;FCCAnalyses/VertexFinderLCFIPlus.h;FCCAnalyses/VertexFitterActs.h;FCCAnalyses/VertexFitterSimple.h;FCCAnalyses/VertexingUtils.h;FCCAnalyses/WeaverUtils.h;FCCAnalyses/dummyLoader.h;FCCAnalyses/myFinalSel.h;FCCAnalyses/myUtils.h
-- includes sources /storage/epp2/phutmn/FCC_fix_cmake/FCCAnalyses/analyzers/dataframe/src/Algorithms.cc;/storage/epp2/phutmn/FCC_fix_cmake/FCCAnalyses/analyzers/dataframe/src/CaloNtupleizer.cc;/storage/epp2/phutmn/FCC_fix_cmake/FCCAnalyses/analyzers/dataframe/src/JetClusteringUtils.cc;/storage/epp2/phutmn/FCC_fix_cmake/FCCAnalyses/analyzers/dataframe/src/JetConstituentsUtils.cc;/storage/epp2/phutmn/FCC_fix_cmake/FCCAnalyses/analyzers/dataframe/src/JetFlavourUtils.cc;/storage/epp2/phutmn/FCC_fix_cmake/FCCAnalyses/analyzers/dataframe/src/JetTaggingUtils.cc;/storage/epp2/phutmn/FCC_fix_cmake/FCCAnalyses/analyzers/dataframe/src/MCParticle.cc;/storage/epp2/phutmn/FCC_fix_cmake/FCCAnalyses/analyzers/dataframe/src/ReconstructedParticle.cc;/storage/epp2/phutmn/FCC_fix_cmake/FCCAnalyses/analyzers/dataframe/src/ReconstructedParticle2MC.cc;/storage/epp2/phutmn/FCC_fix_cmake/FCCAnalyses/analyzers/dataframe/src/ReconstructedParticle2Track.cc;/storage/epp2/phutmn/FCC_fix_cmake/FCCAnalyses/analyzers/dataframe/src/SmearObjects.cc;/storage/epp2/phutmn/FCC_fix_cmake/FCCAnalyses/analyzers/dataframe/src/Smearing.cc;/storage/epp2/phutmn/FCC_fix_cmake/FCCAnalyses/analyzers/dataframe/src/VertexFinderActs.cc;/storage/epp2/phutmn/FCC_fix_cmake/FCCAnalyses/analyzers/dataframe/src/VertexFinderLCFIPlus.cc;/storage/epp2/phutmn/FCC_fix_cmake/FCCAnalyses/analyzers/dataframe/src/VertexFitterActs.cc;/storage/epp2/phutmn/FCC_fix_cmake/FCCAnalyses/analyzers/dataframe/src/VertexFitterSimple.cc;/storage/epp2/phutmn/FCC_fix_cmake/FCCAnalyses/analyzers/dataframe/src/VertexingUtils.cc;/storage/epp2/phutmn/FCC_fix_cmake/FCCAnalyses/analyzers/dataframe/src/WeaverUtils.cc;/storage/epp2/phutmn/FCC_fix_cmake/FCCAnalyses/analyzers/dataframe/src/dummyLoader.cc;/storage/epp2/phutmn/FCC_fix_cmake/FCCAnalyses/analyzers/dataframe/src/myFinalSel.cc;/storage/epp2/phutmn/FCC_fix_cmake/FCCAnalyses/analyzers/dataframe/src/myUtils.cc
-- CMAKE_CURRENT_SOURCE_DIR  /storage/epp2/phutmn/FCC_fix_cmake/FCCAnalyses/analyzers/dataframe
-- CMAKE_INSTALL_INCLUDEDIR  include
-- analysis-------------------------- analysis_example: FCCAnalysis_analysis_example
-- Configuring done
-- Generating done
-- Build files have been written to: /storage/epp2/phutmn/FCC_fix_cmake/FCCAnalyses/build
Consolidate compiler generated dependencies of target FastJet
[  8%] Built target FastJet
Consolidate compiler generated dependencies of target ONNXRuntime
[ 15%] Built target ONNXRuntime
[ 17%] Generating G__FCCAnalyses.cxx, libFCCAnalyses_rdict.pcm, libFCCAnalyses.rootmap
In file included from input_line_3:2:
In file included from /cvmfs/sw.hsf.org/contrib/gcc/11.2.0/x86_64-centos7-gcc8.3.0-opt/d3epy/lib/gcc/x86_64-pc-linux-gnu/11.2.0/../../../../include/c++/11.2.0/string:40:
In file included from /cvmfs/sw.hsf.org/contrib/gcc/11.2.0/x86_64-centos7-gcc8.3.0-opt/d3epy/lib/gcc/x86_64-pc-linux-gnu/11.2.0/../../../../include/c++/11.2.0/bits/char_traits.h:40:
In file included from /cvmfs/sw.hsf.org/contrib/gcc/11.2.0/x86_64-centos7-gcc8.3.0-opt/d3epy/lib/gcc/x86_64-pc-linux-gnu/11.2.0/../../../../include/c++/11.2.0/bits/postypes.h:40:
In file included from /cvmfs/sw.hsf.org/contrib/gcc/11.2.0/x86_64-centos7-gcc8.3.0-opt/d3epy/lib/gcc/x86_64-pc-linux-gnu/11.2.0/../../../../include/c++/11.2.0/cwchar:44:
/cvmfs/sw.hsf.org/spackages6/root/6.26.06/x86_64-centos7-gcc11.2.0-opt/bc7bv/etc//cling/lib/clang/9.0.1/include/wchar.h:104:1: error: unknown type name '__BEGIN_NAMESPACE_C99'
__BEGIN_NAMESPACE_C99
^
/cvmfs/sw.hsf.org/spackages6/root/6.26.06/x86_64-centos7-gcc11.2.0-opt/bc7bv/etc//cling/lib/clang/9.0.1/include/wchar.h:106:20: error: expected ';' after top level declarator
typedef __mbstate_t mbstate_t;
                   ^
/cvmfs/sw.hsf.org/spackages6/root/6.26.06/x86_64-centos7-gcc11.2.0-opt/bc7bv/etc//cling/lib/clang/9.0.1/include/wchar.h:107:1: error: unknown type name '__END_NAMESPACE_C99'
__END_NAMESPACE_C99
^
/cvmfs/sw.hsf.org/spackages6/root/6.26.06/x86_64-centos7-gcc11.2.0-opt/bc7bv/etc//cling/lib/clang/9.0.1/include/wchar.h:112:23: error: unknown type name 'mbstate_t'
__USING_NAMESPACE_C99(mbstate_t)
                      ^
/cvmfs/sw.hsf.org/spackages6/root/6.26.06/x86_64-centos7-gcc11.2.0-opt/bc7bv/etc//cling/lib/clang/9.0.1/include/wchar.h:112:33: error: expected ';' after top level declarator
__USING_NAMESPACE_C99(mbstate_t)
                                ^
/cvmfs/sw.hsf.org/spackages6/root/6.26.06/x86_64-centos7-gcc11.2.0-opt/bc7bv/etc//cling/lib/clang/9.0.1/include/wchar.h:134:1: error: unknown type name '__BEGIN_NAMESPACE_STD'
__BEGIN_NAMESPACE_STD
^
/cvmfs/sw.hsf.org/spackages6/root/6.26.06/x86_64-centos7-gcc11.2.0-opt/bc7bv/etc//cling/lib/clang/9.0.1/include/wchar.h:138:1: error: unknown type name '__END_NAMESPACE_STD'
__END_NAMESPACE_STD
^
/cvmfs/sw.hsf.org/spackages6/root/6.26.06/x86_64-centos7-gcc11.2.0-opt/bc7bv/etc//cling/lib/clang/9.0.1/include/wchar.h:145:1: error: expected function body after function declarator
__BEGIN_NAMESPACE_STD
^
/cvmfs/sw.hsf.org/spackages6/root/6.26.06/x86_64-centos7-gcc11.2.0-opt/bc7bv/etc//cling/lib/clang/9.0.1/include/wchar.h:168:1: error: unknown type name '__END_NAMESPACE_STD'
__END_NAMESPACE_STD
^
/cvmfs/sw.hsf.org/spackages6/root/6.26.06/x86_64-centos7-gcc11.2.0-opt/bc7bv/etc//cling/lib/clang/9.0.1/include/wchar.h:180:11: fatal error: 'xlocale.h' file not found
# include <xlocale.h>
          ^~~~~~~~~~~
In file included from input_line_4:2:
In file included from /cvmfs/sw.hsf.org/spackages6/root/6.26.06/x86_64-centos7-gcc11.2.0-opt/bc7bv/include/Rtypes.h:23:
In file included from /cvmfs/sw.hsf.org/spackages6/root/6.26.06/x86_64-centos7-gcc11.2.0-opt/bc7bv/include/RtypesCore.h:28:
In file included from /cvmfs/sw.hsf.org/contrib/gcc/11.2.0/x86_64-centos7-gcc8.3.0-opt/d3epy/lib/gcc/x86_64-pc-linux-gnu/11.2.0/../../../../include/c++/11.2.0/cstddef:50:
In file included from /cvmfs/sw.hsf.org/spackages6/root/6.26.06/x86_64-centos7-gcc11.2.0-opt/bc7bv/etc//cling/lib/clang/9.0.1/include/stddef.h:102:
/cvmfs/sw.hsf.org/spackages6/root/6.26.06/x86_64-centos7-gcc11.2.0-opt/bc7bv/etc//cling/lib/clang/9.0.1/include/__stddef_max_align_t.h:24:3: error: typedef redefinition with different types ('struct max_align_t' vs 'struct max_align_t')
} max_align_t;
  ^
/cvmfs/sw.hsf.org/spackages6/root/6.26.06/x86_64-centos7-gcc11.2.0-opt/bc7bv/etc//cling/lib/clang/9.0.1/include/stddef.h:102:10: note: '/cvmfs/sw.hsf.org/spackages6/root/6.26.06/x86_64-centos7-gcc11.2.0-opt/bc7bv/etc//cling/lib/clang/9.0.1/include/__stddef_max_align_t.h' included multiple times, additional include site here
#include "__stddef_max_align_t.h"
         ^
/cvmfs/sw.hsf.org/spackages6/root/6.26.06/x86_64-centos7-gcc11.2.0-opt/bc7bv/etc//cling/lib/clang/9.0.1/include/stddef.h:102:10: note: '/cvmfs/sw.hsf.org/spackages6/root/6.26.06/x86_64-centos7-gcc11.2.0-opt/bc7bv/etc//cling/lib/clang/9.0.1/include/__stddef_max_align_t.h' included multiple times, additional include site here
#include "__stddef_max_align_t.h"
         ^
/cvmfs/sw.hsf.org/spackages6/root/6.26.06/x86_64-centos7-gcc11.2.0-opt/bc7bv/etc//cling/lib/clang/9.0.1/include/__stddef_max_align_t.h:24:3: note: unguarded header; consider using #ifdef guards or #pragma once
} max_align_t;
  ^
In file included from input_line_4:2:
In file included from /cvmfs/sw.hsf.org/spackages6/root/6.26.06/x86_64-centos7-gcc11.2.0-opt/bc7bv/include/Rtypes.h:23:
In file included from /cvmfs/sw.hsf.org/spackages6/root/6.26.06/x86_64-centos7-gcc11.2.0-opt/bc7bv/include/RtypesCore.h:28:
/cvmfs/sw.hsf.org/contrib/gcc/11.2.0/x86_64-centos7-gcc8.3.0-opt/d3epy/lib/gcc/x86_64-pc-linux-gnu/11.2.0/../../../../include/c++/11.2.0/cstddef:69:14: error: redefinition of 'byte'
  enum class byte : unsigned char {};
             ^
/cvmfs/sw.hsf.org/spackages6/root/6.26.06/x86_64-centos7-gcc11.2.0-opt/bc7bv/include/RtypesCore.h:28:10: note: '/cvmfs/sw.hsf.org/contrib/gcc/11.2.0/x86_64-centos7-gcc8.3.0-opt/d3epy/lib/gcc/x86_64-pc-linux-gnu/11.2.0/../../../../include/c++/11.2.0/cstddef' included multiple times, additional include site here
#include <cstddef> // size_t, NULL
         ^
/cvmfs/sw.hsf.org/spackages6/root/6.26.06/x86_64-centos7-gcc11.2.0-opt/bc7bv/include/RtypesCore.h:28:10: note: '/cvmfs/sw.hsf.org/contrib/gcc/11.2.0/x86_64-centos7-gcc8.3.0-opt/d3epy/lib/gcc/x86_64-pc-linux-gnu/11.2.0/../../../../include/c++/11.2.0/cstddef' included multiple times, additional include site here
#include <cstddef> // size_t, NULL
         ^
/cvmfs/sw.hsf.org/contrib/gcc/11.2.0/x86_64-centos7-gcc8.3.0-opt/d3epy/lib/gcc/x86_64-pc-linux-gnu/11.2.0/../../../../include/c++/11.2.0/cstddef:69:14: note: unguarded header; consider using #ifdef guards or #pragma once
  enum class byte : unsigned char {};
             ^
In file included from input_line_4:2:
In file included from /cvmfs/sw.hsf.org/spackages6/root/6.26.06/x86_64-centos7-gcc11.2.0-opt/bc7bv/include/Rtypes.h:23:
In file included from /cvmfs/sw.hsf.org/spackages6/root/6.26.06/x86_64-centos7-gcc11.2.0-opt/bc7bv/include/RtypesCore.h:28:
/cvmfs/sw.hsf.org/contrib/gcc/11.2.0/x86_64-centos7-gcc8.3.0-opt/d3epy/lib/gcc/x86_64-pc-linux-gnu/11.2.0/../../../../include/c++/11.2.0/cstddef:71:42: error: redefinition of '__byte_operand'
  template<typename _IntegerType> struct __byte_operand { };
                                         ^
/cvmfs/sw.hsf.org/contrib/gcc/11.2.0/x86_64-centos7-gcc8.3.0-opt/d3epy/lib/gcc/x86_64-pc-linux-gnu/11.2.0/../../../../include/c++/11.2.0/cstddef:71:42: note: previous definition is here
  template<typename _IntegerType> struct __byte_operand { };
                                         ^
In file included from input_line_4:2:
In file included from /cvmfs/sw.hsf.org/spackages6/root/6.26.06/x86_64-centos7-gcc11.2.0-opt/bc7bv/include/Rtypes.h:23:
In file included from /cvmfs/sw.hsf.org/spackages6/root/6.26.06/x86_64-centos7-gcc11.2.0-opt/bc7bv/include/RtypesCore.h:28:
/cvmfs/sw.hsf.org/contrib/gcc/11.2.0/x86_64-centos7-gcc8.3.0-opt/d3epy/lib/gcc/x86_64-pc-linux-gnu/11.2.0/../../../../include/c++/11.2.0/cstddef:125:5: error: redefinition of 'operator<<'
    operator<<(byte __b, _IntegerType __shift) noexcept
    ^
/cvmfs/sw.hsf.org/contrib/gcc/11.2.0/x86_64-centos7-gcc8.3.0-opt/d3epy/lib/gcc/x86_64-pc-linux-gnu/11.2.0/../../../../include/c++/11.2.0/cstddef:125:5: note: previous definition is here
    operator<<(byte __b, _IntegerType __shift) noexcept
    ^
In file included from input_line_4:2:
In file included from /cvmfs/sw.hsf.org/spackages6/root/6.26.06/x86_64-centos7-gcc11.2.0-opt/bc7bv/include/Rtypes.h:23:
In file included from /cvmfs/sw.hsf.org/spackages6/root/6.26.06/x86_64-centos7-gcc11.2.0-opt/bc7bv/include/RtypesCore.h:28:
/cvmfs/sw.hsf.org/contrib/gcc/11.2.0/x86_64-centos7-gcc8.3.0-opt/d3epy/lib/gcc/x86_64-pc-linux-gnu/11.2.0/../../../../include/c++/11.2.0/cstddef:130:5: error: redefinition of 'operator>>'
    operator>>(byte __b, _IntegerType __shift) noexcept
    ^
/cvmfs/sw.hsf.org/contrib/gcc/11.2.0/x86_64-centos7-gcc8.3.0-opt/d3epy/lib/gcc/x86_64-pc-linux-gnu/11.2.0/../../../../include/c++/11.2.0/cstddef:130:5: note: previous definition is here
    operator>>(byte __b, _IntegerType __shift) noexcept
    ^
In file included from input_line_4:2:
In file included from /cvmfs/sw.hsf.org/spackages6/root/6.26.06/x86_64-centos7-gcc11.2.0-opt/bc7bv/include/Rtypes.h:23:
In file included from /cvmfs/sw.hsf.org/spackages6/root/6.26.06/x86_64-centos7-gcc11.2.0-opt/bc7bv/include/RtypesCore.h:28:
/cvmfs/sw.hsf.org/contrib/gcc/11.2.0/x86_64-centos7-gcc8.3.0-opt/d3epy/lib/gcc/x86_64-pc-linux-gnu/11.2.0/../../../../include/c++/11.2.0/cstddef:134:3: error: redefinition of 'operator|'
  operator|(byte __l, byte __r) noexcept
  ^
/cvmfs/sw.hsf.org/contrib/gcc/11.2.0/x86_64-centos7-gcc8.3.0-opt/d3epy/lib/gcc/x86_64-pc-linux-gnu/11.2.0/../../../../include/c++/11.2.0/cstddef:134:3: note: previous definition is here
  operator|(byte __l, byte __r) noexcept
  ^
In file included from input_line_4:2:
In file included from /cvmfs/sw.hsf.org/spackages6/root/6.26.06/x86_64-centos7-gcc11.2.0-opt/bc7bv/include/Rtypes.h:23:
In file included from /cvmfs/sw.hsf.org/spackages6/root/6.26.06/x86_64-centos7-gcc11.2.0-opt/bc7bv/include/RtypesCore.h:28:
/cvmfs/sw.hsf.org/contrib/gcc/11.2.0/x86_64-centos7-gcc8.3.0-opt/d3epy/lib/gcc/x86_64-pc-linux-gnu/11.2.0/../../../../include/c++/11.2.0/cstddef:138:3: error: redefinition of 'operator&'
  operator&(byte __l, byte __r) noexcept
  ^
/cvmfs/sw.hsf.org/contrib/gcc/11.2.0/x86_64-centos7-gcc8.3.0-opt/d3epy/lib/gcc/x86_64-pc-linux-gnu/11.2.0/../../../../include/c++/11.2.0/cstddef:138:3: note: previous definition is here
  operator&(byte __l, byte __r) noexcept
  ^
In file included from input_line_4:2:
In file included from /cvmfs/sw.hsf.org/spackages6/root/6.26.06/x86_64-centos7-gcc11.2.0-opt/bc7bv/include/Rtypes.h:23:
In file included from /cvmfs/sw.hsf.org/spackages6/root/6.26.06/x86_64-centos7-gcc11.2.0-opt/bc7bv/include/RtypesCore.h:28:
/cvmfs/sw.hsf.org/contrib/gcc/11.2.0/x86_64-centos7-gcc8.3.0-opt/d3epy/lib/gcc/x86_64-pc-linux-gnu/11.2.0/../../../../include/c++/11.2.0/cstddef:142:3: error: redefinition of 'operator^'
  operator^(byte __l, byte __r) noexcept
  ^
/cvmfs/sw.hsf.org/contrib/gcc/11.2.0/x86_64-centos7-gcc8.3.0-opt/d3epy/lib/gcc/x86_64-pc-linux-gnu/11.2.0/../../../../include/c++/11.2.0/cstddef:142:3: note: previous definition is here
  operator^(byte __l, byte __r) noexcept
  ^
In file included from input_line_4:2:
In file included from /cvmfs/sw.hsf.org/spackages6/root/6.26.06/x86_64-centos7-gcc11.2.0-opt/bc7bv/include/Rtypes.h:23:
In file included from /cvmfs/sw.hsf.org/spackages6/root/6.26.06/x86_64-centos7-gcc11.2.0-opt/bc7bv/include/RtypesCore.h:28:
/cvmfs/sw.hsf.org/contrib/gcc/11.2.0/x86_64-centos7-gcc8.3.0-opt/d3epy/lib/gcc/x86_64-pc-linux-gnu/11.2.0/../../../../include/c++/11.2.0/cstddef:146:3: error: redefinition of 'operator~'
  operator~(byte __b) noexcept
  ^
/cvmfs/sw.hsf.org/contrib/gcc/11.2.0/x86_64-centos7-gcc8.3.0-opt/d3epy/lib/gcc/x86_64-pc-linux-gnu/11.2.0/../../../../include/c++/11.2.0/cstddef:146:3: note: previous definition is here
  operator~(byte __b) noexcept
  ^
In file included from input_line_4:2:
In file included from /cvmfs/sw.hsf.org/spackages6/root/6.26.06/x86_64-centos7-gcc11.2.0-opt/bc7bv/include/Rtypes.h:23:
In file included from /cvmfs/sw.hsf.org/spackages6/root/6.26.06/x86_64-centos7-gcc11.2.0-opt/bc7bv/include/RtypesCore.h:28:
/cvmfs/sw.hsf.org/contrib/gcc/11.2.0/x86_64-centos7-gcc8.3.0-opt/d3epy/lib/gcc/x86_64-pc-linux-gnu/11.2.0/../../../../include/c++/11.2.0/cstddef:151:5: error: redefinition of 'operator<<='
    operator<<=(byte& __b, _IntegerType __shift) noexcept
    ^
/cvmfs/sw.hsf.org/contrib/gcc/11.2.0/x86_64-centos7-gcc8.3.0-opt/d3epy/lib/gcc/x86_64-pc-linux-gnu/11.2.0/../../../../include/c++/11.2.0/cstddef:151:5: note: previous definition is here
    operator<<=(byte& __b, _IntegerType __shift) noexcept
    ^
In file included from input_line_4:2:
In file included from /cvmfs/sw.hsf.org/spackages6/root/6.26.06/x86_64-centos7-gcc11.2.0-opt/bc7bv/include/Rtypes.h:23:
In file included from /cvmfs/sw.hsf.org/spackages6/root/6.26.06/x86_64-centos7-gcc11.2.0-opt/bc7bv/include/RtypesCore.h:28:
/cvmfs/sw.hsf.org/contrib/gcc/11.2.0/x86_64-centos7-gcc8.3.0-opt/d3epy/lib/gcc/x86_64-pc-linux-gnu/11.2.0/../../../../include/c++/11.2.0/cstddef:156:5: error: redefinition of 'operator>>='
    operator>>=(byte& __b, _IntegerType __shift) noexcept
    ^
/cvmfs/sw.hsf.org/contrib/gcc/11.2.0/x86_64-centos7-gcc8.3.0-opt/d3epy/lib/gcc/x86_64-pc-linux-gnu/11.2.0/../../../../include/c++/11.2.0/cstddef:156:5: note: previous definition is here
    operator>>=(byte& __b, _IntegerType __shift) noexcept
    ^
In file included from input_line_4:2:
In file included from /cvmfs/sw.hsf.org/spackages6/root/6.26.06/x86_64-centos7-gcc11.2.0-opt/bc7bv/include/Rtypes.h:23:
In file included from /cvmfs/sw.hsf.org/spackages6/root/6.26.06/x86_64-centos7-gcc11.2.0-opt/bc7bv/include/RtypesCore.h:28:
/cvmfs/sw.hsf.org/contrib/gcc/11.2.0/x86_64-centos7-gcc8.3.0-opt/d3epy/lib/gcc/x86_64-pc-linux-gnu/11.2.0/../../../../include/c++/11.2.0/cstddef:160:3: error: redefinition of 'operator|='
  operator|=(byte& __l, byte __r) noexcept
  ^
/cvmfs/sw.hsf.org/contrib/gcc/11.2.0/x86_64-centos7-gcc8.3.0-opt/d3epy/lib/gcc/x86_64-pc-linux-gnu/11.2.0/../../../../include/c++/11.2.0/cstddef:160:3: note: previous definition is here
  operator|=(byte& __l, byte __r) noexcept
  ^
In file included from input_line_4:2:
In file included from /cvmfs/sw.hsf.org/spackages6/root/6.26.06/x86_64-centos7-gcc11.2.0-opt/bc7bv/include/Rtypes.h:23:
In file included from /cvmfs/sw.hsf.org/spackages6/root/6.26.06/x86_64-centos7-gcc11.2.0-opt/bc7bv/include/RtypesCore.h:28:
/cvmfs/sw.hsf.org/contrib/gcc/11.2.0/x86_64-centos7-gcc8.3.0-opt/d3epy/lib/gcc/x86_64-pc-linux-gnu/11.2.0/../../../../include/c++/11.2.0/cstddef:164:3: error: redefinition of 'operator&='
  operator&=(byte& __l, byte __r) noexcept
  ^
/cvmfs/sw.hsf.org/contrib/gcc/11.2.0/x86_64-centos7-gcc8.3.0-opt/d3epy/lib/gcc/x86_64-pc-linux-gnu/11.2.0/../../../../include/c++/11.2.0/cstddef:164:3: note: previous definition is here
  operator&=(byte& __l, byte __r) noexcept
  ^
In file included from input_line_4:2:
In file included from /cvmfs/sw.hsf.org/spackages6/root/6.26.06/x86_64-centos7-gcc11.2.0-opt/bc7bv/include/Rtypes.h:23:
In file included from /cvmfs/sw.hsf.org/spackages6/root/6.26.06/x86_64-centos7-gcc11.2.0-opt/bc7bv/include/RtypesCore.h:28:
/cvmfs/sw.hsf.org/contrib/gcc/11.2.0/x86_64-centos7-gcc8.3.0-opt/d3epy/lib/gcc/x86_64-pc-linux-gnu/11.2.0/../../../../include/c++/11.2.0/cstddef:168:3: error: redefinition of 'operator^='
  operator^=(byte& __l, byte __r) noexcept
  ^
/cvmfs/sw.hsf.org/contrib/gcc/11.2.0/x86_64-centos7-gcc8.3.0-opt/d3epy/lib/gcc/x86_64-pc-linux-gnu/11.2.0/../../../../include/c++/11.2.0/cstddef:168:3: note: previous definition is here
  operator^=(byte& __l, byte __r) noexcept
  ^
In file included from input_line_4:2:
In file included from /cvmfs/sw.hsf.org/spackages6/root/6.26.06/x86_64-centos7-gcc11.2.0-opt/bc7bv/include/Rtypes.h:23:
In file included from /cvmfs/sw.hsf.org/spackages6/root/6.26.06/x86_64-centos7-gcc11.2.0-opt/bc7bv/include/RtypesCore.h:28:
/cvmfs/sw.hsf.org/contrib/gcc/11.2.0/x86_64-centos7-gcc8.3.0-opt/d3epy/lib/gcc/x86_64-pc-linux-gnu/11.2.0/../../../../include/c++/11.2.0/cstddef:174:5: error: redefinition of 'to_integer'
    to_integer(__byte_op_t<_IntegerType> __b) noexcept
    ^
/cvmfs/sw.hsf.org/contrib/gcc/11.2.0/x86_64-centos7-gcc8.3.0-opt/d3epy/lib/gcc/x86_64-pc-linux-gnu/11.2.0/../../../../include/c++/11.2.0/cstddef:174:5: note: previous definition is here
    to_integer(__byte_op_t<_IntegerType> __b) noexcept
    ^
In file included from input_line_4:2:
In file included from /cvmfs/sw.hsf.org/spackages6/root/6.26.06/x86_64-centos7-gcc11.2.0-opt/bc7bv/include/Rtypes.h:23:
/cvmfs/sw.hsf.org/spackages6/root/6.26.06/x86_64-centos7-gcc11.2.0-opt/bc7bv/include/RtypesCore.h:100:17: error: redefinition of 'kTRUE'
const Bool_t    kTRUE        = true;
                ^
note: '/cvmfs/sw.hsf.org/spackages6/root/6.26.06/x86_64-centos7-gcc11.2.0-opt/bc7bv/include/RtypesCore.h' included multiple times, additional include site here
fatal error: cannot open file 'input_line_3': No such file or directory
/cvmfs/sw.hsf.org/spackages6/root/6.26.06/x86_64-centos7-gcc11.2.0-opt/bc7bv/include/Rtypes.h:23:10: note: '/cvmfs/sw.hsf.org/spackages6/root/6.26.06/x86_64-centos7-gcc11.2.0-opt/bc7bv/include/RtypesCore.h' included multiple times, additional include site here
#include "RtypesCore.h"
         ^
/cvmfs/sw.hsf.org/spackages6/root/6.26.06/x86_64-centos7-gcc11.2.0-opt/bc7bv/include/RtypesCore.h:100:17: note: unguarded header; consider using #ifdef guards or #pragma once
const Bool_t    kTRUE        = true;
                ^
Error: Error loading the default rootcling header files.
make[2]: *** [analyzers/dataframe/CMakeFiles/G__FCCAnalyses.dir/build.make:119: analyzers/dataframe/G__FCCAnalyses.cxx] Error 1
make[1]: *** [CMakeFiles/Makefile2:1114: analyzers/dataframe/CMakeFiles/G__FCCAnalyses.dir/all] Error 2
make: *** [Makefile:146: all] Error 2

I can’t use a newer stack as for some reason the vertexing completely breaks

Hi,

Can you first try to build from scratch, i.e. remove the build and install directories?

Jan

Hi, one thing I forgot to mention is I checkout an old version of the code as well since this is before whatever changed to break the vertexing. So before the instructions above I do git checkout 85d70c43008d6f13fef7c26d2d7ff11550da9ba1

Then if I follow all those steps with a fresh copy I get

-- The CXX compiler identification is GNU 11.2.0
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /cvmfs/sw.hsf.org/contrib/gcc/11.2.0/x86_64-centos7-gcc8.3.0-opt/d3epy/bin/g++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- C++ standard: 17
-- Found nlohmann_json: /cvmfs/sw.hsf.org/spackages6/nlohmann-json/3.10.5/x86_64-centos7-gcc11.2.0-opt/v3dm7/lib64/cmake/nlohmann_json/nlohmann_jsonConfig.cmake (found suitable version "3.10.5", minimum required is "3.10.5") 
-- Found Python: /cvmfs/sw.hsf.org/spackages6/python/3.9.12/x86_64-centos7-gcc11.2.0-opt/cqr5o/bin/python3.9 (found version "3.9.12") found components: Interpreter 
-- Found SIO: /cvmfs/sw.hsf.org/spackages6/sio/0.1/x86_64-centos7-gcc11.2.0-opt/lqsah/include  
-- Found podio: /cvmfs/sw.hsf.org/spackages6/podio/0.16.2/x86_64-centos7-gcc11.2.0-opt/x5mhf/lib64/cmake/podio/podioConfig.cmake  
-- Found EDM4HEP: /cvmfs/sw.hsf.org/spackages6/edm4hep/0.7.2/x86_64-centos7-gcc11.2.0-opt/vqrsn/lib64/cmake/EDM4HEP/EDM4HEPConfig.cmake  
-- Found FastJet: /cvmfs/sw.hsf.org/spackages6/fastjet/3.3.4/x86_64-centos7-gcc11.2.0-opt/vpxsv/include  
-- found Acts version 19.6.0 commit 333082914
-- loading components:
--   Core
-- Including DD4hepBuild.cmake
-- Found Boost: /cvmfs/sw.hsf.org/spackages6/boost/1.79.0/x86_64-centos7-gcc11.2.0-opt/z6hgm/lib/cmake/Boost-1.79.0/BoostConfig.cmake (found version "1.79.0")  
-- DD4hep uses Geant4
-- Found EXPAT: /cvmfs/sw.hsf.org/spackages6/expat/2.4.8/x86_64-centos7-gcc11.2.0-opt/kr4jw/lib/libexpat.so (found suitable version "2.4.8", minimum required is "2.4.8") 
-- Found ZLIB: /cvmfs/sw.hsf.org/spackages6/zlib/1.2.12/x86_64-centos7-gcc11.2.0-opt/vkknl/lib/libz.so (found suitable version "1.2.12", minimum required is "1.2.12") 
-- Looking for C++ include pthread.h
-- Looking for C++ include pthread.h - found
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Success
-- Found Threads: TRUE  
-- Found XercesC: /cvmfs/sw.hsf.org/spackages6/xerces-c/3.2.3/x86_64-centos7-gcc11.2.0-opt/assga/lib/libxerces-c.so (found suitable version "3.2.3", minimum required is "3.2.3") 
-- Found XercesC: /cvmfs/sw.hsf.org/spackages6/xerces-c/3.2.3/x86_64-centos7-gcc11.2.0-opt/assga/lib/libxerces-c.so (found version "3.2.3") 
-- Found OpenGL: /usr/lib64/libOpenGL.so   
-- Found Geant4: /cvmfs/sw.hsf.org/spackages6/geant4/11.0.2/x86_64-centos7-gcc11.2.0-opt/gzn26/lib64/Geant4-11.0.2/Geant4Config.cmake (found suitable version "11.0.2", minimum required is "10.2.2") 
-- Found Python: /cvmfs/sw.hsf.org/spackages6/python/3.9.12/x86_64-centos7-gcc11.2.0-opt/cqr5o/include/python3.9 (found suitable exact version "3.9.12") found components: Development Development.Module Development.Embed 
-- |++> Using python executable:  /cvmfs/sw.hsf.org/spackages6/python/3.9.12/x86_64-centos7-gcc11.2.0-opt/cqr5o/bin/python3.9
-- DD4hep uses LCIO
-- Check for LCIO (2.19.0)
-- Check for LCIO_LIBRARIES: lcio
-- Check for LCIO_LCIO_LIBRARY: /cvmfs/sw.hsf.org/spackages6/lcio/2.19/x86_64-centos7-gcc11.2.0-opt/fm5su/lib64/liblcio.so -- ok
-- Found LCIO: /cvmfs/sw.hsf.org/spackages6/lcio/2.19/x86_64-centos7-gcc11.2.0-opt/fm5su  
-- Found DD4hep: /cvmfs/sw.hsf.org/spackages6/dd4hep/1.22/x86_64-centos7-gcc11.2.0-opt/uxked  
-- Getting test input files
-- Test input files stored in /storage/epp2/phutmn/FCC_forum/FCCAnalyses/build/test_input_data_qxSKlQBz
-- includes-------------------------- fastjet: /cvmfs/sw.hsf.org/spackages6/fastjet/3.3.4/x86_64-centos7-gcc11.2.0-opt/vpxsv/include
-- includes-------------------------- onnxruntime: /cvmfs/sw.hsf.org/spackages6/py-onnx-runtime/1.7.2/x86_64-centos7-gcc11.2.0-opt/geszh/include
-- add-ons--------------------------- FastJet;ONNXRuntime
-- Found Vdt: /cvmfs/sw.hsf.org/spackages6/vdt/0.4.3/x86_64-centos7-gcc11.2.0-opt/wth5f/include (found version "0.4") 
-- includes-------------------------- dataframe edm4hep: 
-- includes-------------------------- dataframe podio  : /cvmfs/sw.hsf.org/spackages6/podio/0.16.2/x86_64-centos7-gcc11.2.0-opt/x5mhf/include
-- includes headers FCCAnalyses/Algorithms.h;FCCAnalyses/CaloNtupleizer.h;FCCAnalyses/JetClusteringUtils.h;FCCAnalyses/JetConstituentsUtils.h;FCCAnalyses/JetFlavourUtils.h;FCCAnalyses/JetTaggingUtils.h;FCCAnalyses/LinkDef.h;FCCAnalyses/MCParticle.h;FCCAnalyses/ReconstructedParticle.h;FCCAnalyses/ReconstructedParticle2MC.h;FCCAnalyses/ReconstructedParticle2Track.h;FCCAnalyses/SmearObjects.h;FCCAnalyses/Smearing.h;FCCAnalyses/Utils.h;FCCAnalyses/VertexFinderActs.h;FCCAnalyses/VertexFinderLCFIPlus.h;FCCAnalyses/VertexFitterActs.h;FCCAnalyses/VertexFitterSimple.h;FCCAnalyses/VertexingUtils.h;FCCAnalyses/WeaverUtils.h;FCCAnalyses/dummyLoader.h;FCCAnalyses/myFinalSel.h;FCCAnalyses/myUtils.h
-- includes sources /storage/epp2/phutmn/FCC_forum/FCCAnalyses/analyzers/dataframe/src/Algorithms.cc;/storage/epp2/phutmn/FCC_forum/FCCAnalyses/analyzers/dataframe/src/CaloNtupleizer.cc;/storage/epp2/phutmn/FCC_forum/FCCAnalyses/analyzers/dataframe/src/JetClusteringUtils.cc;/storage/epp2/phutmn/FCC_forum/FCCAnalyses/analyzers/dataframe/src/JetConstituentsUtils.cc;/storage/epp2/phutmn/FCC_forum/FCCAnalyses/analyzers/dataframe/src/JetFlavourUtils.cc;/storage/epp2/phutmn/FCC_forum/FCCAnalyses/analyzers/dataframe/src/JetTaggingUtils.cc;/storage/epp2/phutmn/FCC_forum/FCCAnalyses/analyzers/dataframe/src/MCParticle.cc;/storage/epp2/phutmn/FCC_forum/FCCAnalyses/analyzers/dataframe/src/ReconstructedParticle.cc;/storage/epp2/phutmn/FCC_forum/FCCAnalyses/analyzers/dataframe/src/ReconstructedParticle2MC.cc;/storage/epp2/phutmn/FCC_forum/FCCAnalyses/analyzers/dataframe/src/ReconstructedParticle2Track.cc;/storage/epp2/phutmn/FCC_forum/FCCAnalyses/analyzers/dataframe/src/SmearObjects.cc;/storage/epp2/phutmn/FCC_forum/FCCAnalyses/analyzers/dataframe/src/Smearing.cc;/storage/epp2/phutmn/FCC_forum/FCCAnalyses/analyzers/dataframe/src/VertexFinderActs.cc;/storage/epp2/phutmn/FCC_forum/FCCAnalyses/analyzers/dataframe/src/VertexFinderLCFIPlus.cc;/storage/epp2/phutmn/FCC_forum/FCCAnalyses/analyzers/dataframe/src/VertexFitterActs.cc;/storage/epp2/phutmn/FCC_forum/FCCAnalyses/analyzers/dataframe/src/VertexFitterSimple.cc;/storage/epp2/phutmn/FCC_forum/FCCAnalyses/analyzers/dataframe/src/VertexingUtils.cc;/storage/epp2/phutmn/FCC_forum/FCCAnalyses/analyzers/dataframe/src/WeaverUtils.cc;/storage/epp2/phutmn/FCC_forum/FCCAnalyses/analyzers/dataframe/src/dummyLoader.cc;/storage/epp2/phutmn/FCC_forum/FCCAnalyses/analyzers/dataframe/src/myFinalSel.cc;/storage/epp2/phutmn/FCC_forum/FCCAnalyses/analyzers/dataframe/src/myUtils.cc
-- CMAKE_CURRENT_SOURCE_DIR  /storage/epp2/phutmn/FCC_forum/FCCAnalyses/analyzers/dataframe
-- CMAKE_INSTALL_INCLUDEDIR  include
-- analysis-------------------------- analysis_example: FCCAnalysis_analysis_example
-- Found Doxygen: /cvmfs/sw.hsf.org/spackages6/doxygen/1.9.3/x86_64-centos7-gcc11.2.0-opt/2jz5v/bin/doxygen (found version "1.9.3 (6518ff3d24ad187b7072bee854d69e285cd366ea*)") found components: doxygen dot 
-- Configuring done
-- Generating done
-- Build files have been written to: /storage/epp2/phutmn/FCC_forum/FCCAnalyses/build
[  2%] Building CXX object addons/FastJet/CMakeFiles/FastJet.dir/src/ExternalRecombiner.cc.o
[  4%] Building CXX object addons/FastJet/CMakeFiles/FastJet.dir/src/JetClustering.cc.o
[  6%] Building CXX object addons/FastJet/CMakeFiles/FastJet.dir/src/ValenciaPlugin.cc.o
[  8%] Linking CXX shared library libFastJet.so
[  8%] Built target FastJet
[ 11%] Building CXX object addons/ONNXRuntime/CMakeFiles/ONNXRuntime.dir/src/ONNXRuntime.cc.o
[ 13%] Building CXX object addons/ONNXRuntime/CMakeFiles/ONNXRuntime.dir/src/WeaverInterface.cc.o
[ 15%] Linking CXX shared library libONNXRuntime.so
[ 15%] Built target ONNXRuntime
[ 17%] Generating G__FCCAnalyses.cxx, libFCCAnalyses_rdict.pcm, libFCCAnalyses.rootmap
In file included from input_line_3:2:
In file included from /cvmfs/sw.hsf.org/contrib/gcc/11.2.0/x86_64-centos7-gcc8.3.0-opt/d3epy/lib/gcc/x86_64-pc-linux-gnu/11.2.0/../../../../include/c++/11.2.0/string:40:
In file included from /cvmfs/sw.hsf.org/contrib/gcc/11.2.0/x86_64-centos7-gcc8.3.0-opt/d3epy/lib/gcc/x86_64-pc-linux-gnu/11.2.0/../../../../include/c++/11.2.0/bits/char_traits.h:40:
In file included from /cvmfs/sw.hsf.org/contrib/gcc/11.2.0/x86_64-centos7-gcc8.3.0-opt/d3epy/lib/gcc/x86_64-pc-linux-gnu/11.2.0/../../../../include/c++/11.2.0/bits/postypes.h:40:
In file included from /cvmfs/sw.hsf.org/contrib/gcc/11.2.0/x86_64-centos7-gcc8.3.0-opt/d3epy/lib/gcc/x86_64-pc-linux-gnu/11.2.0/../../../../include/c++/11.2.0/cwchar:44:
/cvmfs/sw.hsf.org/spackages6/root/6.26.06/x86_64-centos7-gcc11.2.0-opt/bc7bv/etc//cling/lib/clang/9.0.1/include/wchar.h:104:1: error: unknown type name '__BEGIN_NAMESPACE_C99'
__BEGIN_NAMESPACE_C99
^
/cvmfs/sw.hsf.org/spackages6/root/6.26.06/x86_64-centos7-gcc11.2.0-opt/bc7bv/etc//cling/lib/clang/9.0.1/include/wchar.h:106:20: error: expected ';' after top level declarator
typedef __mbstate_t mbstate_t;
                   ^
/cvmfs/sw.hsf.org/spackages6/root/6.26.06/x86_64-centos7-gcc11.2.0-opt/bc7bv/etc//cling/lib/clang/9.0.1/include/wchar.h:107:1: error: unknown type name '__END_NAMESPACE_C99'
__END_NAMESPACE_C99
^
/cvmfs/sw.hsf.org/spackages6/root/6.26.06/x86_64-centos7-gcc11.2.0-opt/bc7bv/etc//cling/lib/clang/9.0.1/include/wchar.h:112:23: error: unknown type name 'mbstate_t'
__USING_NAMESPACE_C99(mbstate_t)
                      ^
/cvmfs/sw.hsf.org/spackages6/root/6.26.06/x86_64-centos7-gcc11.2.0-opt/bc7bv/etc//cling/lib/clang/9.0.1/include/wchar.h:112:33: error: expected ';' after top level declarator
__USING_NAMESPACE_C99(mbstate_t)
                                ^
/cvmfs/sw.hsf.org/spackages6/root/6.26.06/x86_64-centos7-gcc11.2.0-opt/bc7bv/etc//cling/lib/clang/9.0.1/include/wchar.h:134:1: error: unknown type name '__BEGIN_NAMESPACE_STD'
__BEGIN_NAMESPACE_STD
^
/cvmfs/sw.hsf.org/spackages6/root/6.26.06/x86_64-centos7-gcc11.2.0-opt/bc7bv/etc//cling/lib/clang/9.0.1/include/wchar.h:138:1: error: unknown type name '__END_NAMESPACE_STD'
__END_NAMESPACE_STD
^
/cvmfs/sw.hsf.org/spackages6/root/6.26.06/x86_64-centos7-gcc11.2.0-opt/bc7bv/etc//cling/lib/clang/9.0.1/include/wchar.h:145:1: error: expected function body after function declarator
__BEGIN_NAMESPACE_STD
^
/cvmfs/sw.hsf.org/spackages6/root/6.26.06/x86_64-centos7-gcc11.2.0-opt/bc7bv/etc//cling/lib/clang/9.0.1/include/wchar.h:168:1: error: unknown type name '__END_NAMESPACE_STD'
__END_NAMESPACE_STD
^
/cvmfs/sw.hsf.org/spackages6/root/6.26.06/x86_64-centos7-gcc11.2.0-opt/bc7bv/etc//cling/lib/clang/9.0.1/include/wchar.h:180:11: fatal error: 'xlocale.h' file not found
# include <xlocale.h>
          ^~~~~~~~~~~
In file included from input_line_4:2:
In file included from /cvmfs/sw.hsf.org/spackages6/root/6.26.06/x86_64-centos7-gcc11.2.0-opt/bc7bv/include/Rtypes.h:23:
In file included from /cvmfs/sw.hsf.org/spackages6/root/6.26.06/x86_64-centos7-gcc11.2.0-opt/bc7bv/include/RtypesCore.h:28:
In file included from /cvmfs/sw.hsf.org/contrib/gcc/11.2.0/x86_64-centos7-gcc8.3.0-opt/d3epy/lib/gcc/x86_64-pc-linux-gnu/11.2.0/../../../../include/c++/11.2.0/cstddef:50:
In file included from /cvmfs/sw.hsf.org/spackages6/root/6.26.06/x86_64-centos7-gcc11.2.0-opt/bc7bv/etc//cling/lib/clang/9.0.1/include/stddef.h:102:
/cvmfs/sw.hsf.org/spackages6/root/6.26.06/x86_64-centos7-gcc11.2.0-opt/bc7bv/etc//cling/lib/clang/9.0.1/include/__stddef_max_align_t.h:24:3: error: typedef redefinition with different types ('struct max_align_t' vs 'struct max_align_t')
} max_align_t;
  ^
/cvmfs/sw.hsf.org/spackages6/root/6.26.06/x86_64-centos7-gcc11.2.0-opt/bc7bv/etc//cling/lib/clang/9.0.1/include/stddef.h:102:10: note: '/cvmfs/sw.hsf.org/spackages6/root/6.26.06/x86_64-centos7-gcc11.2.0-opt/bc7bv/etc//cling/lib/clang/9.0.1/include/__stddef_max_align_t.h' included multiple times, additional include site here
#include "__stddef_max_align_t.h"
         ^
/cvmfs/sw.hsf.org/spackages6/root/6.26.06/x86_64-centos7-gcc11.2.0-opt/bc7bv/etc//cling/lib/clang/9.0.1/include/stddef.h:102:10: note: '/cvmfs/sw.hsf.org/spackages6/root/6.26.06/x86_64-centos7-gcc11.2.0-opt/bc7bv/etc//cling/lib/clang/9.0.1/include/__stddef_max_align_t.h' included multiple times, additional include site here
#include "__stddef_max_align_t.h"
         ^
/cvmfs/sw.hsf.org/spackages6/root/6.26.06/x86_64-centos7-gcc11.2.0-opt/bc7bv/etc//cling/lib/clang/9.0.1/include/__stddef_max_align_t.h:24:3: note: unguarded header; consider using #ifdef guards or #pragma once
} max_align_t;
  ^
In file included from input_line_4:2:
In file included from /cvmfs/sw.hsf.org/spackages6/root/6.26.06/x86_64-centos7-gcc11.2.0-opt/bc7bv/include/Rtypes.h:23:
In file included from /cvmfs/sw.hsf.org/spackages6/root/6.26.06/x86_64-centos7-gcc11.2.0-opt/bc7bv/include/RtypesCore.h:28:
/cvmfs/sw.hsf.org/contrib/gcc/11.2.0/x86_64-centos7-gcc8.3.0-opt/d3epy/lib/gcc/x86_64-pc-linux-gnu/11.2.0/../../../../include/c++/11.2.0/cstddef:69:14: error: redefinition of 'byte'
  enum class byte : unsigned char {};
             ^
/cvmfs/sw.hsf.org/spackages6/root/6.26.06/x86_64-centos7-gcc11.2.0-opt/bc7bv/include/RtypesCore.h:28:10: note: '/cvmfs/sw.hsf.org/contrib/gcc/11.2.0/x86_64-centos7-gcc8.3.0-opt/d3epy/lib/gcc/x86_64-pc-linux-gnu/11.2.0/../../../../include/c++/11.2.0/cstddef' included multiple times, additional include site here
#include <cstddef> // size_t, NULL
         ^
/cvmfs/sw.hsf.org/spackages6/root/6.26.06/x86_64-centos7-gcc11.2.0-opt/bc7bv/include/RtypesCore.h:28:10: note: '/cvmfs/sw.hsf.org/contrib/gcc/11.2.0/x86_64-centos7-gcc8.3.0-opt/d3epy/lib/gcc/x86_64-pc-linux-gnu/11.2.0/../../../../include/c++/11.2.0/cstddef' included multiple times, additional include site here
#include <cstddef> // size_t, NULL
         ^
/cvmfs/sw.hsf.org/contrib/gcc/11.2.0/x86_64-centos7-gcc8.3.0-opt/d3epy/lib/gcc/x86_64-pc-linux-gnu/11.2.0/../../../../include/c++/11.2.0/cstddef:69:14: note: unguarded header; consider using #ifdef guards or #pragma once
  enum class byte : unsigned char {};
             ^
In file included from input_line_4:2:
In file included from /cvmfs/sw.hsf.org/spackages6/root/6.26.06/x86_64-centos7-gcc11.2.0-opt/bc7bv/include/Rtypes.h:23:
In file included from /cvmfs/sw.hsf.org/spackages6/root/6.26.06/x86_64-centos7-gcc11.2.0-opt/bc7bv/include/RtypesCore.h:28:
/cvmfs/sw.hsf.org/contrib/gcc/11.2.0/x86_64-centos7-gcc8.3.0-opt/d3epy/lib/gcc/x86_64-pc-linux-gnu/11.2.0/../../../../include/c++/11.2.0/cstddef:71:42: error: redefinition of '__byte_operand'
  template<typename _IntegerType> struct __byte_operand { };
                                         ^
/cvmfs/sw.hsf.org/contrib/gcc/11.2.0/x86_64-centos7-gcc8.3.0-opt/d3epy/lib/gcc/x86_64-pc-linux-gnu/11.2.0/../../../../include/c++/11.2.0/cstddef:71:42: note: previous definition is here
  template<typename _IntegerType> struct __byte_operand { };
                                         ^
In file included from input_line_4:2:
In file included from /cvmfs/sw.hsf.org/spackages6/root/6.26.06/x86_64-centos7-gcc11.2.0-opt/bc7bv/include/Rtypes.h:23:
In file included from /cvmfs/sw.hsf.org/spackages6/root/6.26.06/x86_64-centos7-gcc11.2.0-opt/bc7bv/include/RtypesCore.h:28:
/cvmfs/sw.hsf.org/contrib/gcc/11.2.0/x86_64-centos7-gcc8.3.0-opt/d3epy/lib/gcc/x86_64-pc-linux-gnu/11.2.0/../../../../include/c++/11.2.0/cstddef:125:5: error: redefinition of 'operator<<'
    operator<<(byte __b, _IntegerType __shift) noexcept
    ^
/cvmfs/sw.hsf.org/contrib/gcc/11.2.0/x86_64-centos7-gcc8.3.0-opt/d3epy/lib/gcc/x86_64-pc-linux-gnu/11.2.0/../../../../include/c++/11.2.0/cstddef:125:5: note: previous definition is here
    operator<<(byte __b, _IntegerType __shift) noexcept
    ^
In file included from input_line_4:2:
In file included from /cvmfs/sw.hsf.org/spackages6/root/6.26.06/x86_64-centos7-gcc11.2.0-opt/bc7bv/include/Rtypes.h:23:
In file included from /cvmfs/sw.hsf.org/spackages6/root/6.26.06/x86_64-centos7-gcc11.2.0-opt/bc7bv/include/RtypesCore.h:28:
/cvmfs/sw.hsf.org/contrib/gcc/11.2.0/x86_64-centos7-gcc8.3.0-opt/d3epy/lib/gcc/x86_64-pc-linux-gnu/11.2.0/../../../../include/c++/11.2.0/cstddef:130:5: error: redefinition of 'operator>>'
    operator>>(byte __b, _IntegerType __shift) noexcept
    ^
/cvmfs/sw.hsf.org/contrib/gcc/11.2.0/x86_64-centos7-gcc8.3.0-opt/d3epy/lib/gcc/x86_64-pc-linux-gnu/11.2.0/../../../../include/c++/11.2.0/cstddef:130:5: note: previous definition is here
    operator>>(byte __b, _IntegerType __shift) noexcept
    ^
In file included from input_line_4:2:
In file included from /cvmfs/sw.hsf.org/spackages6/root/6.26.06/x86_64-centos7-gcc11.2.0-opt/bc7bv/include/Rtypes.h:23:
In file included from /cvmfs/sw.hsf.org/spackages6/root/6.26.06/x86_64-centos7-gcc11.2.0-opt/bc7bv/include/RtypesCore.h:28:
/cvmfs/sw.hsf.org/contrib/gcc/11.2.0/x86_64-centos7-gcc8.3.0-opt/d3epy/lib/gcc/x86_64-pc-linux-gnu/11.2.0/../../../../include/c++/11.2.0/cstddef:134:3: error: redefinition of 'operator|'
  operator|(byte __l, byte __r) noexcept
  ^
/cvmfs/sw.hsf.org/contrib/gcc/11.2.0/x86_64-centos7-gcc8.3.0-opt/d3epy/lib/gcc/x86_64-pc-linux-gnu/11.2.0/../../../../include/c++/11.2.0/cstddef:134:3: note: previous definition is here
  operator|(byte __l, byte __r) noexcept
  ^
In file included from input_line_4:2:
In file included from /cvmfs/sw.hsf.org/spackages6/root/6.26.06/x86_64-centos7-gcc11.2.0-opt/bc7bv/include/Rtypes.h:23:
In file included from /cvmfs/sw.hsf.org/spackages6/root/6.26.06/x86_64-centos7-gcc11.2.0-opt/bc7bv/include/RtypesCore.h:28:
/cvmfs/sw.hsf.org/contrib/gcc/11.2.0/x86_64-centos7-gcc8.3.0-opt/d3epy/lib/gcc/x86_64-pc-linux-gnu/11.2.0/../../../../include/c++/11.2.0/cstddef:138:3: error: redefinition of 'operator&'
  operator&(byte __l, byte __r) noexcept
  ^
/cvmfs/sw.hsf.org/contrib/gcc/11.2.0/x86_64-centos7-gcc8.3.0-opt/d3epy/lib/gcc/x86_64-pc-linux-gnu/11.2.0/../../../../include/c++/11.2.0/cstddef:138:3: note: previous definition is here
  operator&(byte __l, byte __r) noexcept
  ^
In file included from input_line_4:2:
In file included from /cvmfs/sw.hsf.org/spackages6/root/6.26.06/x86_64-centos7-gcc11.2.0-opt/bc7bv/include/Rtypes.h:23:
In file included from /cvmfs/sw.hsf.org/spackages6/root/6.26.06/x86_64-centos7-gcc11.2.0-opt/bc7bv/include/RtypesCore.h:28:
/cvmfs/sw.hsf.org/contrib/gcc/11.2.0/x86_64-centos7-gcc8.3.0-opt/d3epy/lib/gcc/x86_64-pc-linux-gnu/11.2.0/../../../../include/c++/11.2.0/cstddef:142:3: error: redefinition of 'operator^'
  operator^(byte __l, byte __r) noexcept
  ^
/cvmfs/sw.hsf.org/contrib/gcc/11.2.0/x86_64-centos7-gcc8.3.0-opt/d3epy/lib/gcc/x86_64-pc-linux-gnu/11.2.0/../../../../include/c++/11.2.0/cstddef:142:3: note: previous definition is here
  operator^(byte __l, byte __r) noexcept
  ^
In file included from input_line_4:2:
In file included from /cvmfs/sw.hsf.org/spackages6/root/6.26.06/x86_64-centos7-gcc11.2.0-opt/bc7bv/include/Rtypes.h:23:
In file included from /cvmfs/sw.hsf.org/spackages6/root/6.26.06/x86_64-centos7-gcc11.2.0-opt/bc7bv/include/RtypesCore.h:28:
/cvmfs/sw.hsf.org/contrib/gcc/11.2.0/x86_64-centos7-gcc8.3.0-opt/d3epy/lib/gcc/x86_64-pc-linux-gnu/11.2.0/../../../../include/c++/11.2.0/cstddef:146:3: error: redefinition of 'operator~'
  operator~(byte __b) noexcept
  ^
/cvmfs/sw.hsf.org/contrib/gcc/11.2.0/x86_64-centos7-gcc8.3.0-opt/d3epy/lib/gcc/x86_64-pc-linux-gnu/11.2.0/../../../../include/c++/11.2.0/cstddef:146:3: note: previous definition is here
  operator~(byte __b) noexcept
  ^
In file included from input_line_4:2:
In file included from /cvmfs/sw.hsf.org/spackages6/root/6.26.06/x86_64-centos7-gcc11.2.0-opt/bc7bv/include/Rtypes.h:23:
In file included from /cvmfs/sw.hsf.org/spackages6/root/6.26.06/x86_64-centos7-gcc11.2.0-opt/bc7bv/include/RtypesCore.h:28:
/cvmfs/sw.hsf.org/contrib/gcc/11.2.0/x86_64-centos7-gcc8.3.0-opt/d3epy/lib/gcc/x86_64-pc-linux-gnu/11.2.0/../../../../include/c++/11.2.0/cstddef:151:5: error: redefinition of 'operator<<='
    operator<<=(byte& __b, _IntegerType __shift) noexcept
    ^
/cvmfs/sw.hsf.org/contrib/gcc/11.2.0/x86_64-centos7-gcc8.3.0-opt/d3epy/lib/gcc/x86_64-pc-linux-gnu/11.2.0/../../../../include/c++/11.2.0/cstddef:151:5: note: previous definition is here
    operator<<=(byte& __b, _IntegerType __shift) noexcept
    ^
In file included from input_line_4:2:
In file included from /cvmfs/sw.hsf.org/spackages6/root/6.26.06/x86_64-centos7-gcc11.2.0-opt/bc7bv/include/Rtypes.h:23:
In file included from /cvmfs/sw.hsf.org/spackages6/root/6.26.06/x86_64-centos7-gcc11.2.0-opt/bc7bv/include/RtypesCore.h:28:
/cvmfs/sw.hsf.org/contrib/gcc/11.2.0/x86_64-centos7-gcc8.3.0-opt/d3epy/lib/gcc/x86_64-pc-linux-gnu/11.2.0/../../../../include/c++/11.2.0/cstddef:156:5: error: redefinition of 'operator>>='
    operator>>=(byte& __b, _IntegerType __shift) noexcept
    ^
/cvmfs/sw.hsf.org/contrib/gcc/11.2.0/x86_64-centos7-gcc8.3.0-opt/d3epy/lib/gcc/x86_64-pc-linux-gnu/11.2.0/../../../../include/c++/11.2.0/cstddef:156:5: note: previous definition is here
    operator>>=(byte& __b, _IntegerType __shift) noexcept
    ^
In file included from input_line_4:2:
In file included from /cvmfs/sw.hsf.org/spackages6/root/6.26.06/x86_64-centos7-gcc11.2.0-opt/bc7bv/include/Rtypes.h:23:
In file included from /cvmfs/sw.hsf.org/spackages6/root/6.26.06/x86_64-centos7-gcc11.2.0-opt/bc7bv/include/RtypesCore.h:28:
/cvmfs/sw.hsf.org/contrib/gcc/11.2.0/x86_64-centos7-gcc8.3.0-opt/d3epy/lib/gcc/x86_64-pc-linux-gnu/11.2.0/../../../../include/c++/11.2.0/cstddef:160:3: error: redefinition of 'operator|='
  operator|=(byte& __l, byte __r) noexcept
  ^
/cvmfs/sw.hsf.org/contrib/gcc/11.2.0/x86_64-centos7-gcc8.3.0-opt/d3epy/lib/gcc/x86_64-pc-linux-gnu/11.2.0/../../../../include/c++/11.2.0/cstddef:160:3: note: previous definition is here
  operator|=(byte& __l, byte __r) noexcept
  ^
In file included from input_line_4:2:
In file included from /cvmfs/sw.hsf.org/spackages6/root/6.26.06/x86_64-centos7-gcc11.2.0-opt/bc7bv/include/Rtypes.h:23:
In file included from /cvmfs/sw.hsf.org/spackages6/root/6.26.06/x86_64-centos7-gcc11.2.0-opt/bc7bv/include/RtypesCore.h:28:
/cvmfs/sw.hsf.org/contrib/gcc/11.2.0/x86_64-centos7-gcc8.3.0-opt/d3epy/lib/gcc/x86_64-pc-linux-gnu/11.2.0/../../../../include/c++/11.2.0/cstddef:164:3: error: redefinition of 'operator&='
  operator&=(byte& __l, byte __r) noexcept
  ^
/cvmfs/sw.hsf.org/contrib/gcc/11.2.0/x86_64-centos7-gcc8.3.0-opt/d3epy/lib/gcc/x86_64-pc-linux-gnu/11.2.0/../../../../include/c++/11.2.0/cstddef:164:3: note: previous definition is here
  operator&=(byte& __l, byte __r) noexcept
  ^
In file included from input_line_4:2:
In file included from /cvmfs/sw.hsf.org/spackages6/root/6.26.06/x86_64-centos7-gcc11.2.0-opt/bc7bv/include/Rtypes.h:23:
In file included from /cvmfs/sw.hsf.org/spackages6/root/6.26.06/x86_64-centos7-gcc11.2.0-opt/bc7bv/include/RtypesCore.h:28:
/cvmfs/sw.hsf.org/contrib/gcc/11.2.0/x86_64-centos7-gcc8.3.0-opt/d3epy/lib/gcc/x86_64-pc-linux-gnu/11.2.0/../../../../include/c++/11.2.0/cstddef:168:3: error: redefinition of 'operator^='
  operator^=(byte& __l, byte __r) noexcept
  ^
/cvmfs/sw.hsf.org/contrib/gcc/11.2.0/x86_64-centos7-gcc8.3.0-opt/d3epy/lib/gcc/x86_64-pc-linux-gnu/11.2.0/../../../../include/c++/11.2.0/cstddef:168:3: note: previous definition is here
  operator^=(byte& __l, byte __r) noexcept
  ^
In file included from input_line_4:2:
In file included from /cvmfs/sw.hsf.org/spackages6/root/6.26.06/x86_64-centos7-gcc11.2.0-opt/bc7bv/include/Rtypes.h:23:
In file included from /cvmfs/sw.hsf.org/spackages6/root/6.26.06/x86_64-centos7-gcc11.2.0-opt/bc7bv/include/RtypesCore.h:28:
/cvmfs/sw.hsf.org/contrib/gcc/11.2.0/x86_64-centos7-gcc8.3.0-opt/d3epy/lib/gcc/x86_64-pc-linux-gnu/11.2.0/../../../../include/c++/11.2.0/cstddef:174:5: error: redefinition of 'to_integer'
    to_integer(__byte_op_t<_IntegerType> __b) noexcept
    ^
/cvmfs/sw.hsf.org/contrib/gcc/11.2.0/x86_64-centos7-gcc8.3.0-opt/d3epy/lib/gcc/x86_64-pc-linux-gnu/11.2.0/../../../../include/c++/11.2.0/cstddef:174:5: note: previous definition is here
    to_integer(__byte_op_t<_IntegerType> __b) noexcept
    ^
In file included from input_line_4:2:
In file included from /cvmfs/sw.hsf.org/spackages6/root/6.26.06/x86_64-centos7-gcc11.2.0-opt/bc7bv/include/Rtypes.h:23:
/cvmfs/sw.hsf.org/spackages6/root/6.26.06/x86_64-centos7-gcc11.2.0-opt/bc7bv/include/RtypesCore.h:100:17: error: redefinition of 'kTRUE'
const Bool_t    kTRUE        = true;
                ^
note: '/cvmfs/sw.hsf.org/spackages6/root/6.26.06/x86_64-centos7-gcc11.2.0-opt/bc7bv/include/RtypesCore.h' included multiple times, additional include site here
fatal error: cannot open file 'input_line_3': No such file or directory
/cvmfs/sw.hsf.org/spackages6/root/6.26.06/x86_64-centos7-gcc11.2.0-opt/bc7bv/include/Rtypes.h:23:10: note: '/cvmfs/sw.hsf.org/spackages6/root/6.26.06/x86_64-centos7-gcc11.2.0-opt/bc7bv/include/RtypesCore.h' included multiple times, additional include site here
#include "RtypesCore.h"
         ^
/cvmfs/sw.hsf.org/spackages6/root/6.26.06/x86_64-centos7-gcc11.2.0-opt/bc7bv/include/RtypesCore.h:100:17: note: unguarded header; consider using #ifdef guards or #pragma once
const Bool_t    kTRUE        = true;
                ^
Error: Error loading the default rootcling header files.
make[2]: *** [analyzers/dataframe/CMakeFiles/G__FCCAnalyses.dir/build.make:119: analyzers/dataframe/G__FCCAnalyses.cxx] Error 1
make[1]: *** [CMakeFiles/Makefile2:1114: analyzers/dataframe/CMakeFiles/G__FCCAnalyses.dir/all] Error 2
make: *** [Makefile:146: all] Error 2

Is there a way to try build with a different g++ version? If I build in a singularity container it builds okay but I lose access to my cluster and other features so it’s not ideal.