TriKota build issue with gcc-6.3.1
Created by: ikalash
I recently upgraded the compiler on my Linux workstation to gcc-6.3.1. With this compiler, I get a compilation error when I build Trilinos with Trikota. Here is the error:
[ 7%] Building C object packages/common/auxiliarySoftware/SuiteSparse/src/CMakeFiles/trilinosss.dir/AMD/Source/trilinos_amd_post_tree.c.o /home/ikalash/nightlyAlbanyTests/Results/Trilinos/packages/TriKota/Dakota/packages/DDACE/src/Analyzer/MainEffectsExcelOutput.cpp: In member function ‘std::__cxx11::string MainEffectsExcelOutput::computeExcelOutput(std::vector<std::vector >, std::vector<std::vector >)’: /home/ikalash/nightlyAlbanyTests/Results/Trilinos/packages/TriKota/Dakota/packages/DDACE/src/Analyzer/MainEffectsExcelOutput.cpp:276:17: error: no match for ‘operator<<’ (operand types are ‘std::ostream {aka std::basic_ostream}’ and ‘std::ostringstream {aka std::__cxx11::basic_ostringstream}’) std::cout << ss << std::endl; ~~~~~~~~~~^~~~~ /home/ikalash/nightlyAlbanyTests/Results/Trilinos/packages/TriKota/Dakota/packages/DDACE/src/Analyzer/MainEffectsExcelOutput.cpp:276:17: note: candidate: operator<<(int, int) /home/ikalash/nightlyAlbanyTests/Results/Trilinos/packages/TriKota/Dakota/packages/DDACE/src/Analyzer/MainEffectsExcelOutput.cpp:276:17: note: no known conversion for argument 2 from ‘std::ostringstream {aka std::__cxx11::basic_ostringstream}’ to ‘int’ In file included from /usr/include/c++/6.3.1/istream:39:0, from /usr/include/c++/6.3.1/sstream:38, from /home/ikalash/nightlyAlbanyTests/Results/Trilinos/packages/TriKota/Dakota/packages/DDACE/include/MainEffectsExcelOutput.h:9, from /home/ikalash/nightlyAlbanyTests/Results/Trilinos/packages/TriKota/Dakota/packages/DDACE/src/Analyzer/MainEffectsExcelOutput.cpp:1: /usr/include/c++/6.3.1/ostream:108:7: note: candidate: std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(std::basic_ostream<_CharT, _Traits>::__ostream_type& (*)(std::basic_ostream<_CharT, _Traits>::__ostream_type&)) [with _CharT = char; _Traits = std::char_traits; std::basic_ostream<_CharT, _Traits>::__ostream_type = std::basic_ostream] operator<<(__ostream_type& (*__pf)(__ostream_type&)) ^~~~~~~~
This issue did not occur with my old compiler (gcc-4.9.2). Has anyone else experienced this problem?