vtkSEPReader fails to build with gcc-4.9.4
Pulled from git this morning and vtkSEPReader failed to build. I believe the problem is moving iostreams was not supported until GCC 5.1:
FAILED: VTK/IO/Image/CMakeFiles/IOImage.dir/vtkSEPReader.cxx.o
/opt/jenkins/jenkins-tools/gcc-4.9.4/bin/g++ -DIOImage_EXPORTS -IVTK/IO/Image -I/opt/build1/superbuild/paraview/src/VTK/IO/Image -IVTK/Common/Core -I/opt/build1/superbuild/paraview/src/VTK/Common/Core -IVTK/Common/ExecutionModel -I/opt/build1/superbuild/paraview/src/VTK/Common/ExecutionModel -IVTK/Common/DataModel -I/opt/build1/superbuild/paraview/src/VTK/Common/DataModel -IVTK/Common/Math -I/opt/build1/superbuild/paraview/src/VTK/Common/Math -IVTK/Common/Transforms -I/opt/build1/superbuild/paraview/src/VTK/Common/Transforms -IVTK/Imaging/Core -I/opt/build1/superbuild/paraview/src/VTK/Imaging/Core -IVTK/Common/Misc -I/opt/build1/superbuild/paraview/src/VTK/Common/Misc -IVTK/Common/System -I/opt/build1/superbuild/paraview/src/VTK/Common/System -IVTK/Utilities/DICOMParser -I/opt/build1/superbuild/paraview/src/VTK/Utilities/DICOMParser -IVTK/ThirdParty/jpeg/vtkjpeg -I/opt/build1/superbuild/paraview/src/VTK/ThirdParty/jpeg/vtkjpeg -IVTK/Utilities/MetaIO/vtkmetaio -I/opt/build1/superbuild/paraview/src/VTK/Utilities/MetaIO/vtkmetaio -IVTK/ThirdParty/pugixml/vtkpugixml -I/opt/build1/superbuild/paraview/src/VTK/ThirdParty/pugixml/vtkpugixml -IVTK/ThirdParty/tiff/vtktiff/libtiff -I/opt/build1/superbuild/paraview/src/VTK/ThirdParty/tiff/vtktiff/libtiff -isystem VTK/Utilities/KWIML -isystem /opt/build1/superbuild/paraview/src/VTK/Utilities/KWIML -isystem VTK/Utilities/KWSys -isystem /opt/build1/superbuild/paraview/src/VTK/Utilities/KWSys -isystem /opt/build1/install/include -isystem VTK/ThirdParty/jpeg -isystem /opt/build1/superbuild/paraview/src/VTK/ThirdParty/jpeg -isystem VTK/Utilities/MetaIO -isystem /opt/build1/superbuild/paraview/src/VTK/Utilities/MetaIO -isystem VTK/ThirdParty/png -isystem /opt/build1/superbuild/paraview/src/VTK/ThirdParty/png -isystem VTK/ThirdParty/pugixml -isystem /opt/build1/superbuild/paraview/src/VTK/ThirdParty/pugixml -isystem VTK/ThirdParty/tiff -isystem /opt/build1/superbuild/paraview/src/VTK/ThirdParty/tiff -isystem VTK/ThirdParty/zlib -isystem /opt/build1/superbuild/paraview/src/VTK/ThirdParty/zlib -fPIC -std=c++11 -O3 -DNDEBUG -fPIC -fvisibility=hidden -fvisibility-inlines-hidden -pthread -std=c++11 -MD -MT VTK/IO/Image/CMakeFiles/IOImage.dir/vtkSEPReader.cxx.o -MF VTK/IO/Image/CMakeFiles/IOImage.dir/vtkSEPReader.cxx.o.d -o VTK/IO/Image/CMakeFiles/IOImage.dir/vtkSEPReader.cxx.o -c /opt/build1/superbuild/paraview/src/VTK/IO/Image/vtkSEPReader.cxx
/opt/build1/superbuild/paraview/src/VTK/IO/Image/vtkSEPReader.cxx: In member function ‘bool vtkSEPReader::ReadHeader()’:
/opt/build1/superbuild/paraview/src/VTK/IO/Image/vtkSEPReader.cxx:266:10: error: use of deleted function ‘std::basic_ifstream<char>& std::basic_ifstream<char>::operator=(const std::basic_ifstream<char>&)’
file = std::ifstream(this->FileName.c_str(), ios::in);
^
In file included from /opt/build1/superbuild/paraview/src/VTK/Common/Core/vtkIOStream.h:29:0,
from /opt/build1/superbuild/paraview/src/VTK/Common/Core/vtkSystemIncludes.h:39,
from /opt/build1/superbuild/paraview/src/VTK/Common/Core/vtkIndent.h:28,
from /opt/build1/superbuild/paraview/src/VTK/Common/Core/vtkObjectBase.h:53,
from /opt/build1/superbuild/paraview/src/VTK/Common/Core/vtkObject.h:45,
from /opt/build1/superbuild/paraview/src/VTK/Common/ExecutionModel/vtkExtentTranslator.h:29,
from /opt/build1/superbuild/paraview/src/VTK/IO/Image/vtkSEPReader.h:24,
from /opt/build1/superbuild/paraview/src/VTK/IO/Image/vtkSEPReader.cxx:16:
/opt/jenkins/jenkins-tools/gcc-4.9.4/include/c++/4.9.4/fstream:430:11: note: ‘std::basic_ifstream<char>& std::basic_ifstream<char>::operator=(const std::basic_ifstream<char>&)’ is implicitly deleted because the default definition would be ill-formed:
class basic_ifstream : public basic_istream<_CharT, _Traits>
^
/opt/jenkins/jenkins-tools/gcc-4.9.4/include/c++/4.9.4/fstream:430:11: error: use of deleted function ‘std::basic_istream<char>& std::basic_istream<char>::operator=(const std::basic_istream<char>&)’
In file included from /opt/jenkins/jenkins-tools/gcc-4.9.4/include/c++/4.9.4/fstream:38:0,
from /opt/build1/superbuild/paraview/src/VTK/Common/Core/vtkIOStream.h:29,
from /opt/build1/superbuild/paraview/src/VTK/Common/Core/vtkSystemIncludes.h:39,
from /opt/build1/superbuild/paraview/src/VTK/Common/Core/vtkIndent.h:28,
from /opt/build1/superbuild/paraview/src/VTK/Common/Core/vtkObjectBase.h:53,
from /opt/build1/superbuild/paraview/src/VTK/Common/Core/vtkObject.h:45,
from /opt/build1/superbuild/paraview/src/VTK/Common/ExecutionModel/vtkExtentTranslator.h:29,
from /opt/build1/superbuild/paraview/src/VTK/IO/Image/vtkSEPReader.h:24,
from /opt/build1/superbuild/paraview/src/VTK/IO/Image/vtkSEPReader.cxx:16:
/opt/jenkins/jenkins-tools/gcc-4.9.4/include/c++/4.9.4/istream:58:11: note: ‘std::basic_istream<char>& std::basic_istream<char>::operator=(const std::basic_istream<char>&)’ is implicitly deleted because the default definition would be ill-formed:
class basic_istream : virtual public basic_ios<_CharT, _Traits>
^
/opt/jenkins/jenkins-tools/gcc-4.9.4/include/c++/4.9.4/istream:58:11: error: use of deleted function ‘std::basic_ios<char>& std::basic_ios<char>::operator=(const std::basic_ios<char>&)’
In file included from /opt/jenkins/jenkins-tools/gcc-4.9.4/include/c++/4.9.4/ios:44:0,
from /opt/jenkins/jenkins-tools/gcc-4.9.4/include/c++/4.9.4/istream:38,
from /opt/jenkins/jenkins-tools/gcc-4.9.4/include/c++/4.9.4/fstream:38,
from /opt/build1/superbuild/paraview/src/VTK/Common/Core/vtkIOStream.h:29,
from /opt/build1/superbuild/paraview/src/VTK/Common/Core/vtkSystemIncludes.h:39,
from /opt/build1/superbuild/paraview/src/VTK/Common/Core/vtkIndent.h:28,
from /opt/build1/superbuild/paraview/src/VTK/Common/Core/vtkObjectBase.h:53,
from /opt/build1/superbuild/paraview/src/VTK/Common/Core/vtkObject.h:45,
from /opt/build1/superbuild/paraview/src/VTK/Common/ExecutionModel/vtkExtentTranslator.h:29,
from /opt/build1/superbuild/paraview/src/VTK/IO/Image/vtkSEPReader.h:24,
from /opt/build1/superbuild/paraview/src/VTK/IO/Image/vtkSEPReader.cxx:16:
/opt/jenkins/jenkins-tools/gcc-4.9.4/include/c++/4.9.4/bits/basic_ios.h:66:11: note: ‘std::basic_ios<char>& std::basic_ios<char>::operator=(const std::basic_ios<char>&)’ is implicitly deleted because the default definition would be ill-formed:
class basic_ios : public ios_base
^
In file included from /opt/jenkins/jenkins-tools/gcc-4.9.4/include/c++/4.9.4/ios:42:0,
from /opt/jenkins/jenkins-tools/gcc-4.9.4/include/c++/4.9.4/istream:38,
from /opt/jenkins/jenkins-tools/gcc-4.9.4/include/c++/4.9.4/fstream:38,
from /opt/build1/superbuild/paraview/src/VTK/Common/Core/vtkIOStream.h:29,
from /opt/build1/superbuild/paraview/src/VTK/Common/Core/vtkSystemIncludes.h:39,
from /opt/build1/superbuild/paraview/src/VTK/Common/Core/vtkIndent.h:28,
from /opt/build1/superbuild/paraview/src/VTK/Common/Core/vtkObjectBase.h:53,
from /opt/build1/superbuild/paraview/src/VTK/Common/Core/vtkObject.h:45,
from /opt/build1/superbuild/paraview/src/VTK/Common/ExecutionModel/vtkExtentTranslator.h:29,
from /opt/build1/superbuild/paraview/src/VTK/IO/Image/vtkSEPReader.h:24,
from /opt/build1/superbuild/paraview/src/VTK/IO/Image/vtkSEPReader.cxx:16:
/opt/jenkins/jenkins-tools/gcc-4.9.4/include/c++/4.9.4/bits/ios_base.h:789:5: error: ‘std::ios_base& std::ios_base::operator=(const std::ios_base&)’ is private
operator=(const ios_base&);
^
In file included from /opt/jenkins/jenkins-tools/gcc-4.9.4/include/c++/4.9.4/ios:44:0,
from /opt/jenkins/jenkins-tools/gcc-4.9.4/include/c++/4.9.4/istream:38,
from /opt/jenkins/jenkins-tools/gcc-4.9.4/include/c++/4.9.4/fstream:38,
from /opt/build1/superbuild/paraview/src/VTK/Common/Core/vtkIOStream.h:29,
from /opt/build1/superbuild/paraview/src/VTK/Common/Core/vtkSystemIncludes.h:39,
from /opt/build1/superbuild/paraview/src/VTK/Common/Core/vtkIndent.h:28,
from /opt/build1/superbuild/paraview/src/VTK/Common/Core/vtkObjectBase.h:53,
from /opt/build1/superbuild/paraview/src/VTK/Common/Core/vtkObject.h:45,
from /opt/build1/superbuild/paraview/src/VTK/Common/ExecutionModel/vtkExtentTranslator.h:29,
from /opt/build1/superbuild/paraview/src/VTK/IO/Image/vtkSEPReader.h:24,
from /opt/build1/superbuild/paraview/src/VTK/IO/Image/vtkSEPReader.cxx:16:
/opt/jenkins/jenkins-tools/gcc-4.9.4/include/c++/4.9.4/bits/basic_ios.h:66:11: error: within this context
class basic_ios : public ios_base
^
In file included from /opt/build1/superbuild/paraview/src/VTK/Common/Core/vtkIOStream.h:29:0,
from /opt/build1/superbuild/paraview/src/VTK/Common/Core/vtkSystemIncludes.h:39,
from /opt/build1/superbuild/paraview/src/VTK/Common/Core/vtkIndent.h:28,
from /opt/build1/superbuild/paraview/src/VTK/Common/Core/vtkObjectBase.h:53,
from /opt/build1/superbuild/paraview/src/VTK/Common/Core/vtkObject.h:45,
from /opt/build1/superbuild/paraview/src/VTK/Common/ExecutionModel/vtkExtentTranslator.h:29,
from /opt/build1/superbuild/paraview/src/VTK/IO/Image/vtkSEPReader.h:24,
from /opt/build1/superbuild/paraview/src/VTK/IO/Image/vtkSEPReader.cxx:16:
/opt/jenkins/jenkins-tools/gcc-4.9.4/include/c++/4.9.4/fstream:430:11: error: use of deleted function ‘std::basic_filebuf<char>& std::basic_filebuf<char>::operator=(const std::basic_filebuf<char>&)’
class basic_ifstream : public basic_istream<_CharT, _Traits>
^
/opt/jenkins/jenkins-tools/gcc-4.9.4/include/c++/4.9.4/fstream:72:11: note: ‘std::basic_filebuf<char>& std::basic_filebuf<char>::operator=(const std::basic_filebuf<char>&)’ is implicitly deleted because the default definition would be ill-formed:
class basic_filebuf : public basic_streambuf<_CharT, _Traits>
^
In file included from /opt/jenkins/jenkins-tools/gcc-4.9.4/include/c++/4.9.4/ios:43:0,
from /opt/jenkins/jenkins-tools/gcc-4.9.4/include/c++/4.9.4/istream:38,
from /opt/jenkins/jenkins-tools/gcc-4.9.4/include/c++/4.9.4/fstream:38,
from /opt/build1/superbuild/paraview/src/VTK/Common/Core/vtkIOStream.h:29,
from /opt/build1/superbuild/paraview/src/VTK/Common/Core/vtkSystemIncludes.h:39,
from /opt/build1/superbuild/paraview/src/VTK/Common/Core/vtkIndent.h:28,
from /opt/build1/superbuild/paraview/src/VTK/Common/Core/vtkObjectBase.h:53,
from /opt/build1/superbuild/paraview/src/VTK/Common/Core/vtkObject.h:45,
from /opt/build1/superbuild/paraview/src/VTK/Common/ExecutionModel/vtkExtentTranslator.h:29,
from /opt/build1/superbuild/paraview/src/VTK/IO/Image/vtkSEPReader.h:24,
from /opt/build1/superbuild/paraview/src/VTK/IO/Image/vtkSEPReader.cxx:16:
/opt/jenkins/jenkins-tools/gcc-4.9.4/include/c++/4.9.4/streambuf:810:7: error: ‘std::basic_streambuf<_CharT, _Traits>& std::basic_streambuf<_CharT, _Traits>::operator=(const std::basic_streambuf<_CharT, _Traits>&) [with _CharT = char; _Traits = std::char_traits<char>]’ is private
operator=(const basic_streambuf&) { return *this; };
^
In file included from /opt/build1/superbuild/paraview/src/VTK/Common/Core/vtkIOStream.h:29:0,
from /opt/build1/superbuild/paraview/src/VTK/Common/Core/vtkSystemIncludes.h:39,
from /opt/build1/superbuild/paraview/src/VTK/Common/Core/vtkIndent.h:28,
from /opt/build1/superbuild/paraview/src/VTK/Common/Core/vtkObjectBase.h:53,
from /opt/build1/superbuild/paraview/src/VTK/Common/Core/vtkObject.h:45,
from /opt/build1/superbuild/paraview/src/VTK/Common/ExecutionModel/vtkExtentTranslator.h:29,
from /opt/build1/superbuild/paraview/src/VTK/IO/Image/vtkSEPReader.h:24,
from /opt/build1/superbuild/paraview/src/VTK/IO/Image/vtkSEPReader.cxx:16:
/opt/jenkins/jenkins-tools/gcc-4.9.4/include/c++/4.9.4/fstream:72:11: error: within this context
class basic_filebuf : public basic_streambuf<_CharT, _Traits>
^