[Gate-users] Building GATE v9.1 on Ubuntu 20.04
Schneider Tim
Tim.Schneider at curie.fr
Tue Feb 15 17:36:03 CET 2022
Dear Gaters,
We are trying to install GATE v9.1 on an Ubuntu 20.04 machine and we’re having some quite strange errors during the make step:
/home/angela/geant4.10.06.p03-install/include/Geant4/CLHEP/Geometry/BasicVector3D.h:468:3: note: candidate: ‘std::ostream& std::operator<<(std::ostream&, int)’
468 | operator<<(std::ostream &, const BasicVector3D<double> &);
| ^~~~~~~~
/home/angela/Gate-9.0/source/arf/src/GateARFTableMgr.cc:307:56: error: invalid use of incomplete type ‘class GateARFTable’
307 | GateARFTable* arfTable = new GateARFTable(tableName);
| ^
In file included from /home/angela/Gate-9.0/source/arf/src/GateARFTableMgr.cc:14:
/home/angela/Gate-9.0/source/arf/include/GateARFTableMgr.hh:14:7: note: forward declaration of ‘class GateARFTable’
14 | class GateARFTable;
| ^~~~~~~~~~~~
/home/angela/Gate-9.0/source/arf/src/GateARFTableMgr.cc:308:13: error: invalid use of incomplete type ‘class GateARFTable’
308 | arfTable->Initialize(tableBuffer[4], tableBuffer[5]);
| ^~
In file included from /home/angela/Gate-9.0/source/arf/src/GateARFTableMgr.cc:14:
/home/angela/Gate-9.0/source/arf/include/GateARFTableMgr.hh:14:7: note: forward declaration of ‘class GateARFTable’
14 | class GateARFTable;
| ^~~~~~~~~~~~
/home/angela/Gate-9.0/source/arf/src/GateARFTableMgr.cc:309:13: error: invalid use of incomplete type ‘class GateARFTable’
309 | arfTable->SetEnergyReso(tableBuffer[2]);
| ^~
In file included from /home/angela/Gate-9.0/source/arf/src/GateARFTableMgr.cc:14:
/home/angela/Gate-9.0/source/arf/include/GateARFTableMgr.hh:14:7: note: forward declaration of ‘class GateARFTable’
14 | class GateARFTable;
| ^~~~~~~~~~~~
/home/angela/Gate-9.0/source/arf/src/GateARFTableMgr.cc:310:13: error: invalid use of incomplete type ‘class GateARFTable’
310 | arfTable->SetERef(tableBuffer[3]);
| ^~
In file included from /home/angela/Gate-9.0/source/arf/src/GateARFTableMgr.cc:14:
/home/angela/Gate-9.0/source/arf/include/GateARFTableMgr.hh:14:7: note: forward declaration of ‘class GateARFTable’
14 | class GateARFTable;
| ^~~~~~~~~~~~
/home/angela/Gate-9.0/source/arf/src/GateARFTableMgr.cc:322:13: error: invalid use of incomplete type ‘class GateARFTable’
322 | arfTable->FillTableFromBuffer(tableBuffer);
| ^~
In file included from /home/angela/Gate-9.0/source/arf/src/GateARFTableMgr.cc:14:
/home/angela/Gate-9.0/source/arf/include/GateARFTableMgr.hh:14:7: note: forward declaration of ‘class GateARFTable’
14 | class GateARFTable;
| ^~~~~~~~~~~~
make[2]: *** [CMakeFiles/GateLib.dir/build.make:128: CMakeFiles/GateLib.dir/source/arf/src/GateARFTableMgr.cc.o] Error 1
make[2]: *** [CMakeFiles/GateLib.dir/build.make:154: CMakeFiles/GateLib.dir/source/digits_hits/src/GateActions.cc.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:290: CMakeFiles/GateLib.dir/all] Error 2
make: *** [Makefile:130: all] Error 2
This is actually only the lost couple of lines, there are many more such errors and warnings like these before the build completely fails.
The ccmake options look like this:
BUILD_TESTING OFF
CMAKE_BACKWARDS_COMPATIBILITY 2.4
CMAKE_BUILD_TYPE Release
CMAKE_INSTALL_PREFIX /home/angela/gate-install
EXECUTABLE_OUTPUT_PATH
GATE_COMPILE_GATEDIGIT OFF
GATE_COMPILE_WITH_NATIVE OFF
GATE_USE_DAVIS OFF
GATE_USE_ECAT7 OFF
GATE_USE_GEANT4_UIVIS ON
GATE_USE_ITK OFF
GATE_USE_LMF OFF
GATE_USE_OPTICAL OFF
GATE_USE_RTK OFF
GATE_USE_SYSTEM_CLHEP OFF
GATE_USE_TORCH OFF
GATE_USE_XRAYLIB OFF
Geant4_DIR /home/angela/geant4.10.06.p03-install/lib/Geant4-10.6.3
LIBRARY_OUTPUT_PATH
PTL_DIR /home/angela/geant4.10.06.p03-install/lib/Geant4-10.6.3/PTL
ROOTCINT_EXECUTABLE /home/angela/root/bin/rootcint
There was initially another problem that seemed to originate from root and Geant4 having been compiled with different C++ standards. We rebuilt Geant4 enforcing the C++ 17 standard and root is actually the downloaded binary which seems to work fine.
Does anyone have an idea what the error during the GATE build could be and how to fix it?
Thanks a lot in advance!
Best,
Tim
More information about the Gate-users
mailing list