(base) [User@localhost build]$ make Scanning dependencies of target MetaIO [ 0%] Building CXX object itk-mhd/src/CMakeFiles/MetaIO.dir/metaUtils.o [ 0%] Building CXX object itk-mhd/src/CMakeFiles/MetaIO.dir/metaArrow.o [ 1%] Building CXX object itk-mhd/src/CMakeFiles/MetaIO.dir/metaBlob.o [ 1%] Building CXX object itk-mhd/src/CMakeFiles/MetaIO.dir/metaCommand.o [ 1%] Building CXX object itk-mhd/src/CMakeFiles/MetaIO.dir/metaContour.o [ 1%] Building CXX object itk-mhd/src/CMakeFiles/MetaIO.dir/metaDTITube.o [ 1%] Building CXX object itk-mhd/src/CMakeFiles/MetaIO.dir/metaEllipse.o [ 1%] Building CXX object itk-mhd/src/CMakeFiles/MetaIO.dir/metaGroup.o [ 1%] Building CXX object itk-mhd/src/CMakeFiles/MetaIO.dir/metaGaussian.o [ 2%] Building CXX object itk-mhd/src/CMakeFiles/MetaIO.dir/metaImage.o /media/Dati/Gate/Gate-8.2/source/externals/itk-mhd/src/metaImage.cxx: In member function ‘bool MetaImage::M_WriteElements(std::ofstream*, const void*, std::streamoff)’: /media/Dati/Gate/Gate-8.2/source/externals/itk-mhd/src/metaImage.cxx:2579:29: warning: ‘%s’ directive writing up to 254 bytes into a region of size between 1 and 2048 [-Wformat-overflow=] sprintf(dataFileName, "%s%s", pathName, m_ElementDataFileName); ^~~~~~ /media/Dati/Gate/Gate-8.2/source/externals/itk-mhd/src/metaImage.cxx:2579:14: note: ‘sprintf’ output between 1 and 2302 bytes into a destination of size 2048 sprintf(dataFileName, "%s%s", pathName, m_ElementDataFileName); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /media/Dati/Gate/Gate-8.2/source/externals/itk-mhd/src/metaImage.cxx: In member function ‘bool MetaImage::WriteROI(int*, int*, const char*, const char*, bool, const void*, bool)’: /media/Dati/Gate/Gate-8.2/source/externals/itk-mhd/src/metaImage.cxx:1985:31: warning: ‘%s’ directive writing up to 254 bytes into a region of size between 1 and 2048 [-Wformat-overflow=] sprintf(dataFileName, "%s%s", pathName, m_ElementDataFileName); ^~~~~~ /media/Dati/Gate/Gate-8.2/source/externals/itk-mhd/src/metaImage.cxx:1985:16: note: ‘sprintf’ output between 1 and 2302 bytes into a destination of size 2048 sprintf(dataFileName, "%s%s", pathName, m_ElementDataFileName); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /media/Dati/Gate/Gate-8.2/source/externals/itk-mhd/src/metaImage.cxx: In member function ‘bool MetaImage::ReadStream(int, std::ifstream*, bool, void*)’: /media/Dati/Gate/Gate-8.2/source/externals/itk-mhd/src/metaImage.cxx:1495:24: warning: ‘%s’ directive writing up to 254 bytes into a region of size between 1 and 2048 [-Wformat-overflow=] sprintf(fName, "%s%s", pathName, m_ElementDataFileName); ^~~~~~ /media/Dati/Gate/Gate-8.2/source/externals/itk-mhd/src/metaImage.cxx:1495:16: note: ‘sprintf’ output between 1 and 2302 bytes into a destination of size 2048 sprintf(fName, "%s%s", pathName, m_ElementDataFileName); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /media/Dati/Gate/Gate-8.2/source/externals/itk-mhd/src/metaImage.cxx:1462:26: warning: ‘%s’ directive writing up to 2047 bytes into a region of size between 1 and 2048 [-Wformat-overflow=] sprintf(fName, "%s%s", pathName, s); ^~~~~~ ~ /media/Dati/Gate/Gate-8.2/source/externals/itk-mhd/src/metaImage.cxx:1462:18: note: ‘sprintf’ output between 1 and 4095 bytes into a destination of size 2048 sprintf(fName, "%s%s", pathName, s); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~ /media/Dati/Gate/Gate-8.2/source/externals/itk-mhd/src/metaImage.cxx:1367:28: warning: ‘%s’ directive writing up to 1023 bytes into a region of size between 1 and 2048 [-Wformat-overflow=] sprintf(fName, "%s%s", pathName, s); ^~~~~~ ~ /media/Dati/Gate/Gate-8.2/source/externals/itk-mhd/src/metaImage.cxx:1367:20: note: ‘sprintf’ output between 1 and 3071 bytes into a destination of size 2048 sprintf(fName, "%s%s", pathName, s); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~ /media/Dati/Gate/Gate-8.2/source/externals/itk-mhd/src/metaImage.cxx: In member function ‘bool MetaImage::ReadROIStream(int*, int*, int, std::ifstream*, bool, void*, unsigned int)’: /media/Dati/Gate/Gate-8.2/source/externals/itk-mhd/src/metaImage.cxx:3045:24: warning: ‘%s’ directive writing up to 254 bytes into a region of size between 1 and 2048 [-Wformat-overflow=] sprintf(fName, "%s%s", pathName, m_ElementDataFileName); ^~~~~~ /media/Dati/Gate/Gate-8.2/source/externals/itk-mhd/src/metaImage.cxx:3045:16: note: ‘sprintf’ output between 1 and 2302 bytes into a destination of size 2048 sprintf(fName, "%s%s", pathName, m_ElementDataFileName); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /media/Dati/Gate/Gate-8.2/source/externals/itk-mhd/src/metaImage.cxx:2989:26: warning: ‘%s’ directive writing up to 2047 bytes into a region of size between 1 and 2048 [-Wformat-overflow=] sprintf(fName, "%s%s", pathName, s); ^~~~~~ ~ /media/Dati/Gate/Gate-8.2/source/externals/itk-mhd/src/metaImage.cxx:2989:18: note: ‘sprintf’ output between 1 and 4095 bytes into a destination of size 2048 sprintf(fName, "%s%s", pathName, s); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~ /media/Dati/Gate/Gate-8.2/source/externals/itk-mhd/src/metaImage.cxx:2870:28: warning: ‘%s’ directive writing up to 1023 bytes into a region of size between 1 and 2048 [-Wformat-overflow=] sprintf(fName, "%s%s", pathName, s); ^~~~~~ ~ /media/Dati/Gate/Gate-8.2/source/externals/itk-mhd/src/metaImage.cxx:2870:20: note: ‘sprintf’ output between 1 and 3071 bytes into a destination of size 2048 sprintf(fName, "%s%s", pathName, s); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~ [ 2%] Building CXX object itk-mhd/src/CMakeFiles/MetaIO.dir/metaImageUtils.o [ 2%] Building CXX object itk-mhd/src/CMakeFiles/MetaIO.dir/metaLandmark.o [ 2%] Building CXX object itk-mhd/src/CMakeFiles/MetaIO.dir/metaLine.o [ 2%] Building CXX object itk-mhd/src/CMakeFiles/MetaIO.dir/metaMesh.o [ 2%] Building CXX object itk-mhd/src/CMakeFiles/MetaIO.dir/metaObject.o [ 2%] Building CXX object itk-mhd/src/CMakeFiles/MetaIO.dir/metaOutput.o [ 3%] Building CXX object itk-mhd/src/CMakeFiles/MetaIO.dir/metaScene.o [ 3%] Building CXX object itk-mhd/src/CMakeFiles/MetaIO.dir/metaSurface.o [ 3%] Building CXX object itk-mhd/src/CMakeFiles/MetaIO.dir/metaTube.o [ 3%] Building CXX object itk-mhd/src/CMakeFiles/MetaIO.dir/metaVesselTube.o [ 3%] Building CXX object itk-mhd/src/CMakeFiles/MetaIO.dir/metaTransform.o [ 3%] Building CXX object itk-mhd/src/CMakeFiles/MetaIO.dir/metaTubeGraph.o [ 3%] Building CXX object itk-mhd/src/CMakeFiles/MetaIO.dir/metaForm.o [ 4%] Building CXX object itk-mhd/src/CMakeFiles/MetaIO.dir/metaArray.o /media/Dati/Gate/Gate-8.2/source/externals/itk-mhd/src/metaArray.cxx: In member function ‘bool MetaArray::M_WriteElements(std::ofstream*, const void*, std::streamoff)’: /media/Dati/Gate/Gate-8.2/source/externals/itk-mhd/src/metaArray.cxx:1215:29: warning: ‘%s’ directive writing up to 254 bytes into a region of size between 1 and 255 [-Wformat-overflow=] sprintf(dataFileName, "%s%s", pathName, m_ElementDataFileName); ^~~~~~ /media/Dati/Gate/Gate-8.2/source/externals/itk-mhd/src/metaArray.cxx:1215:14: note: ‘sprintf’ output between 1 and 509 bytes into a destination of size 255 sprintf(dataFileName, "%s%s", pathName, m_ElementDataFileName); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /media/Dati/Gate/Gate-8.2/source/externals/itk-mhd/src/metaArray.cxx: In member function ‘virtual bool MetaArray::ReadStream(std::ifstream*, bool, void*, bool)’: /media/Dati/Gate/Gate-8.2/source/externals/itk-mhd/src/metaArray.cxx:754:24: warning: ‘%s’ directive writing up to 254 bytes into a region of size between 1 and 255 [-Wformat-overflow=] sprintf(fName, "%s%s", pathName, m_ElementDataFileName); ^~~~~~ /media/Dati/Gate/Gate-8.2/source/externals/itk-mhd/src/metaArray.cxx:754:16: note: ‘sprintf’ output between 1 and 509 bytes into a destination of size 255 sprintf(fName, "%s%s", pathName, m_ElementDataFileName); ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [ 4%] Building CXX object itk-mhd/src/CMakeFiles/MetaIO.dir/metaFEMObject.o [ 4%] Linking CXX static library libMetaIO.a [ 4%] Built target MetaIO Scanning dependencies of target itkzlib [ 4%] Building C object itk-mhd/itkzlib/CMakeFiles/itkzlib.dir/adler32.o [ 4%] Building C object itk-mhd/itkzlib/CMakeFiles/itkzlib.dir/compress.o [ 4%] Building C object itk-mhd/itkzlib/CMakeFiles/itkzlib.dir/crc32.o [ 4%] Building C object itk-mhd/itkzlib/CMakeFiles/itkzlib.dir/deflate.o [ 5%] Building C object itk-mhd/itkzlib/CMakeFiles/itkzlib.dir/gzio.o [ 5%] Building C object itk-mhd/itkzlib/CMakeFiles/itkzlib.dir/inffast.o [ 5%] Building C object itk-mhd/itkzlib/CMakeFiles/itkzlib.dir/inflate.o [ 5%] Building C object itk-mhd/itkzlib/CMakeFiles/itkzlib.dir/inftrees.o [ 5%] Building C object itk-mhd/itkzlib/CMakeFiles/itkzlib.dir/trees.o [ 5%] Building C object itk-mhd/itkzlib/CMakeFiles/itkzlib.dir/uncompr.o [ 5%] Building C object itk-mhd/itkzlib/CMakeFiles/itkzlib.dir/zutil.o [ 6%] Linking C static library libitkzlib.a [ 6%] Built target itkzlib Scanning dependencies of target Gate [ 6%] Building CXX object CMakeFiles/Gate.dir/Gate.cc.o In file included from /usr/include/root/TString.h:28, from /usr/include/root/TNamed.h:26, from /usr/include/root/TDirectory.h:24, from /usr/include/root/TDirectoryFile.h:25, from /usr/include/root/TFile.h:27, from /media/Dati/Gate/Gate-8.2/source/general/include/GateImageT.hh:39, from /media/Dati/Gate/Gate-8.2/source/general/include/GateImage.hh:22, from /media/Dati/Gate/Gate-8.2/source/physics/include/GateVSource.hh:27, from /media/Dati/Gate/Gate-8.2/source/physics/include/GateSourceMgr.hh:17, from /media/Dati/Gate/Gate-8.2/Gate.cc:30: /usr/include/root/ROOT/RStringView.hxx:32:37: error: ‘experimental’ in namespace ‘std’ does not name a type using basic_string_view = ::std::experimental::basic_string_view<_CharT,_Traits>; ^~~~~~~~~~~~ /usr/include/root/ROOT/RStringView.hxx:35:12: error: ‘basic_string_view’ does not name a type; did you mean ‘basic_streambuf’? typedef basic_string_view string_view; ^~~~~~~~~~~~~~~~~ basic_streambuf /usr/include/root/ROOT/RStringView.hxx:36:12: error: ‘basic_string_view’ does not name a type; did you mean ‘basic_streambuf’? typedef basic_string_view u16string_view; ^~~~~~~~~~~~~~~~~ basic_streambuf /usr/include/root/ROOT/RStringView.hxx:37:12: error: ‘basic_string_view’ does not name a type; did you mean ‘basic_streambuf’? typedef basic_string_view u32string_view; ^~~~~~~~~~~~~~~~~ basic_streambuf /usr/include/root/ROOT/RStringView.hxx:38:12: error: ‘basic_string_view’ does not name a type; did you mean ‘basic_streambuf’? typedef basic_string_view wstring_view; ^~~~~~~~~~~~~~~~~ basic_streambuf /usr/include/root/ROOT/RStringView.hxx:48:28: warning: inline variables are only available with -std=c++17 or -std=gnu++17 inline double stod(std::string_view str, size_t *pos) ^~~~~~~~~~~ /usr/include/root/ROOT/RStringView.hxx:48:28: error: ‘string_view’ is not a member of ‘std’ /usr/include/root/ROOT/RStringView.hxx:48:28: note: ‘std::string_view’ is only available from C++17 onwards /usr/include/root/ROOT/RStringView.hxx:48:52: error: expected primary-expression before ‘*’ token inline double stod(std::string_view str, size_t *pos) ^ /usr/include/root/ROOT/RStringView.hxx:48:53: error: ‘pos’ was not declared in this scope inline double stod(std::string_view str, size_t *pos) ^~~ /usr/include/root/ROOT/RStringView.hxx:48:53: note: suggested alternative: ‘pow’ inline double stod(std::string_view str, size_t *pos) ^~~ pow /usr/include/root/ROOT/RStringView.hxx:48:56: error: expression list treated as compound expression in initializer [-fpermissive] inline double stod(std::string_view str, size_t *pos) ^ /usr/include/root/ROOT/RStringView.hxx:65:56: error: ‘std::string_view’ has not been declared inline std::string &operator+=(std::string &left, std::string_view right) ^~~~~~~~~~~ /usr/include/root/ROOT/RStringView.hxx: In function ‘std::__cxx11::string& std::__ROOT::operator+=(std::__cxx11::string&, int)’: /usr/include/root/ROOT/RStringView.hxx:67:29: error: request for member ‘data’ in ‘right’, which is of non-class type ‘int’ return left.append(right.data(), right.size()); ^~~~ /usr/include/root/ROOT/RStringView.hxx:67:43: error: request for member ‘size’ in ‘right’, which is of non-class type ‘int’ return left.append(right.data(), right.size()); ^~~~ /usr/include/root/ROOT/RStringView.hxx: At global scope: /usr/include/root/ROOT/RStringView.hxx:84:17: error: expected type-specifier operator std::string_view() const { return std::string_view(fData,fLength); } ^~~ In file included from /usr/include/root/TNamed.h:26, from /usr/include/root/TDirectory.h:24, from /usr/include/root/TDirectoryFile.h:25, from /usr/include/root/TFile.h:27, from /media/Dati/Gate/Gate-8.2/source/general/include/GateImageT.hh:39, from /media/Dati/Gate/Gate-8.2/source/general/include/GateImage.hh:22, from /media/Dati/Gate/Gate-8.2/source/physics/include/GateVSource.hh:27, from /media/Dati/Gate/Gate-8.2/source/physics/include/GateSourceMgr.hh:17, from /media/Dati/Gate/Gate-8.2/Gate.cc:30: /usr/include/root/TString.h:110:13: error: expected type-specifier operator std::string_view() const { return std::string_view(Data(),fExtent); } ^~~ /usr/include/root/TString.h:275:32: error: ‘string_view’ in namespace ‘std’ does not name a type explicit TString(const std::string_view &sub); ^~~~~~~~~~~ /usr/include/root/TString.h:275:27: note: ‘std::string_view’ is only available from C++17 onwards explicit TString(const std::string_view &sub); ^~~ /usr/include/root/TString.h:312:37: error: ‘string_view’ in namespace ‘std’ does not name a type TString &operator=(const std::string_view &s); ^~~~~~~~~~~ /usr/include/root/TString.h:312:32: note: ‘std::string_view’ is only available from C++17 onwards TString &operator=(const std::string_view &s); ^~~ /usr/include/root/TString.h:439:9: error: ‘string_view’ in namespace ‘std’ does not name a type std::string_view View() const { return std::string_view(GetPointer(),Length()); } ^~~~~~~~~~~ /usr/include/root/TString.h:439:4: note: ‘std::string_view’ is only available from C++17 onwards std::string_view View() const { return std::string_view(GetPointer(),Length()); } ^~~ In file included from /usr/include/root/TNamed.h:26, from /usr/include/root/TDirectory.h:24, from /usr/include/root/TDirectoryFile.h:25, from /usr/include/root/TFile.h:27, from /media/Dati/Gate/Gate-8.2/source/general/include/GateImageT.hh:39, from /media/Dati/Gate/Gate-8.2/source/general/include/GateImage.hh:22, from /media/Dati/Gate/Gate-8.2/source/physics/include/GateVSource.hh:27, from /media/Dati/Gate/Gate-8.2/source/physics/include/GateSourceMgr.hh:17, from /media/Dati/Gate/Gate-8.2/Gate.cc:30: /usr/include/root/TString.h:834:53: error: ‘string_view’ in namespace ‘std’ does not name a type inline Bool_t operator==(const char *s1, const std::string_view &s2) ^~~~~~~~~~~ /usr/include/root/TString.h:834:48: note: ‘std::string_view’ is only available from C++17 onwards inline Bool_t operator==(const char *s1, const std::string_view &s2) ^~~ /usr/include/root/TString.h:834:68: error: ‘Bool_t operator==(const char*, const int&)’ must have an argument of class or enumerated type inline Bool_t operator==(const char *s1, const std::string_view &s2) ^ /usr/include/root/TString.h:839:37: error: ‘string_view’ in namespace ‘std’ does not name a type inline Bool_t operator==(const std::string_view &s1, const char *s2) ^~~~~~~~~~~ /usr/include/root/TString.h:839:32: note: ‘std::string_view’ is only available from C++17 onwards inline Bool_t operator==(const std::string_view &s1, const char *s2) ^~~ /usr/include/root/TString.h:839:68: error: ‘Bool_t operator==(const int&, const char*)’ must have an argument of class or enumerated type inline Bool_t operator==(const std::string_view &s1, const char *s2) ^ /usr/include/root/TString.h:852:37: error: ‘string_view’ in namespace ‘std’ does not name a type std::string printValue(const std::string_view* val); ^~~~~~~~~~~ /usr/include/root/TString.h:852:32: note: ‘std::string_view’ is only available from C++17 onwards std::string printValue(const std::string_view* val); ^~~ In file included from /media/Dati/Gate/Gate-8.2/source/general/include/GateImageT.hh:39, from /media/Dati/Gate/Gate-8.2/source/general/include/GateImage.hh:22, from /media/Dati/Gate/Gate-8.2/source/physics/include/GateVSource.hh:27, from /media/Dati/Gate/Gate-8.2/source/physics/include/GateSourceMgr.hh:17, from /media/Dati/Gate/Gate-8.2/Gate.cc:30: /usr/include/root/TFile.h:326:45: error: ‘std::string_view’ has not been declared static Bool_t SetCacheFileDir(std::string_view cacheDir, Bool_t operateDisconnected = kTRUE, ^~~~~~~~~~~ /usr/include/root/TFile.h: In static member function ‘static Bool_t TFile::SetCacheFileDir(ROOT::Internal::TStringView, Bool_t, Bool_t)’: /usr/include/root/TFile.h:325:36: error: ‘string_view’ is not a member of ‘std’ { return SetCacheFileDir(std::string_view(cacheDir), operateDisconnected, forceCacheread); } ^~~~~~~~~~~ /usr/include/root/TFile.h:325:36: note: ‘std::string_view’ is only available from C++17 onwards make[2]: *** [CMakeFiles/Gate.dir/build.make:63: CMakeFiles/Gate.dir/Gate.cc.o] Error 1 make[1]: *** [CMakeFiles/Makefile2:69: CMakeFiles/Gate.dir/all] Error 2 make: *** [Makefile:130: all] Error 2