ConSurf icon indicating copy to clipboard operation
ConSurf copied to clipboard

Rate4site compiling issue

Open shalawsallah opened this issue 2 years ago • 5 comments

Im trying to compile rate4site, from the zip file (https://www.tau.ac.il/~itaymay/cp/rate4site.html). However, "make" command generates the following error:

g++ -fvisibility-inlines-hidden -std=c++17 -fmessage-length=0 -march=nocona -mtune=haswell -ftree-vectorize -fPIC -fstack-protector-strong -fno-plt -O2 -ffunction-sections -pipe -isystem /opt/apps/apps/binapps/anaconda3/2020.07/include -O3 -Wno-deprecated -I/opt/apps/compilers/gcc/9.3.0/include -DNDEBUG -D_FORTIFY_SOURCE=2 -O2 -isystem /opt/apps/apps/binapps/anaconda3/2020.07/include -c -o errorMsg.o errorMsg.cpp errorMsg.cpp: In static member function ‘static void errorMsg::reportError(const std::vector<std::__cxx11::basic_string >&, int)’: errorMsg.cpp:18:39: error: no match for ‘operator!=’ (operand types are ‘std::ostream’ {aka ‘std::basic_ostream’} and ‘std::ostream’ {aka ‘std::basic_ostream’}) 18 | if (_errorOut != NULL && *_errorOut != cerr) { | ~~~~~~~~~~ ^~ ~~~~ | | | | | basic_ostream<[...]> | basic_ostream<[...]> errorMsg.cpp:18:39: note: candidate: ‘operator!=(int, int)’ 18 | if (_errorOut != NULL && *_errorOut != cerr) { | ~~~~~~~~~~~^~~~~~~ errorMsg.cpp:18:39: note: no known conversion for argument 2 from ‘std::ostream’ {aka ‘std::basic_ostream’} to ‘int’ In file included from /opt/apps/compilers/gcc/9.3.0/include/c++/9.3.0/bits/stl_algobase.h:64, from /opt/apps/compilers/gcc/9.3.0/include/c++/9.3.0/vector:60, from definitions.h:18, from errorMsg.cpp:5: /opt/apps/compilers/gcc/9.3.0/include/c++/9.3.0/bits/stl_pair.h:461:5: note: candidate: ‘template<class _T1, class _T2> constexpr bool std::operator!=(const std::pair<_T1, _T2>&, const std::pair<_T1, _T2>&)’ 461 | operator!=(const pair<_T1, _T2>& __x, const pair<_T1, _T2>& __y) | ^~~~~~~~ /opt/apps/compilers/gcc/9.3.0/include/c++/9.3.0/bits/stl_pair.h:461:5: note: template argument deduction/substitution failed: errorMsg.cpp:18:42: note: ‘std::ostream’ {aka ‘std::basic_ostream’} is not derived from ‘const std::pair<_T1, _T2>’ 18 | if (_errorOut != NULL && *_errorOut != cerr) { | ^~~~ In file included from /opt/apps/compilers/gcc/9.3.0/include/c++/9.3.0/bits/stl_algobase.h:67, from /opt/apps/compilers/gcc/9.3.0/include/c++/9.3.0/vector:60, from definitions.h:18, from errorMsg.cpp:5: /opt/apps/compilers/gcc/9.3.0/include/c++/9.3.0/bits/stl_iterator.h:337:5: note: candidate: ‘template<class _Iterator> constexpr bool std::operator!=(const std::reverse_iterator<_Iterator>&, const std::reverse_iterator<_Iterator>&)’ 337 | operator!=(const reverse_iterator<_Iterator>& __x, | ^~~~~~~~ /opt/apps/compilers/gcc/9.3.0/include/c++/9.3.0/bits/stl_iterator.h:337:5: note: template argument deduction/substitution failed: errorMsg.cpp:18:42: note: ‘std::ostream’ {aka ‘std::basic_ostream’} is not derived from ‘const std::reverse_iterator<_Iterator>’ 18 | if (_errorOut != NULL && *_errorOut != cerr) { | ^~~~ In file included from /opt/apps/compilers/gcc/9.3.0/include/c++/9.3.0/bits/stl_algobase.h:67, from /opt/apps/compilers/gcc/9.3.0/include/c++/9.3.0/vector:60, from definitions.h:18, from errorMsg.cpp:5: /opt/apps/compilers/gcc/9.3.0/include/c++/9.3.0/bits/stl_iterator.h:375:5: note: candidate: ‘template<class _IteratorL, class _IteratorR> constexpr bool std::operator!=(const std::reverse_iterator<_Iterator>&, const std::reverse_iterator<_IteratorR>&)’ 375 | operator!=(const reverse_iterator<_IteratorL>& __x, | ^~~~~~~~ /opt/apps/compilers/gcc/9.3.0/include/c++/9.3.0/bits/stl_iterator.h:375:5: note: template argument deduction/substitution failed: errorMsg.cpp:18:42: note: ‘std::ostream’ {aka ‘std::basic_ostream’} is not derived from ‘const std::reverse_iterator<_Iterator>’ 18 | if (_errorOut != NULL && *_errorOut != cerr) { | ^~~~ In file included from /opt/apps/compilers/gcc/9.3.0/include/c++/9.3.0/bits/stl_algobase.h:67, from /opt/apps/compilers/gcc/9.3.0/include/c++/9.3.0/vector:60, from definitions.h:18, from errorMsg.cpp:5: /opt/apps/compilers/gcc/9.3.0/include/c++/9.3.0/bits/stl_iterator.h:1151:5: note: candidate: ‘template<class _IteratorL, class _IteratorR> constexpr bool std::operator!=(const std::move_iterator<_IteratorL>&, const std::move_iterator<_IteratorR>&)’ 1151 | operator!=(const move_iterator<_IteratorL>& __x, | ^~~~~~~~ /opt/apps/compilers/gcc/9.3.0/include/c++/9.3.0/bits/stl_iterator.h:1151:5: note: template argument deduction/substitution failed: errorMsg.cpp:18:42: note: ‘std::ostream’ {aka ‘std::basic_ostream’} is not derived from ‘const std::move_iterator<_IteratorL>’ 18 | if (_errorOut != NULL && *_errorOut != cerr) { | ^~~~ In file included from /opt/apps/compilers/gcc/9.3.0/include/c++/9.3.0/bits/stl_algobase.h:67, from /opt/apps/compilers/gcc/9.3.0/include/c++/9.3.0/vector:60, from definitions.h:18, from errorMsg.cpp:5: /opt/apps/compilers/gcc/9.3.0/include/c++/9.3.0/bits/stl_iterator.h:1157:5: note: candidate: ‘template<class _Iterator> constexpr bool std::operator!=(const std::move_iterator<_IteratorL>&, const std::move_iterator<_IteratorL>&)’ 1157 | operator!=(const move_iterator<_Iterator>& __x, | ^~~~~~~~ /opt/apps/compilers/gcc/9.3.0/include/c++/9.3.0/bits/stl_iterator.h:1157:5: note: template argument deduction/substitution failed: errorMsg.cpp:18:42: note: ‘std::ostream’ {aka ‘std::basic_ostream’} is not derived from ‘const std::move_iterator<_IteratorL>’ 18 | if (_errorOut != NULL && *_errorOut != cerr) { | ^~~~ In file included from /opt/apps/compilers/gcc/9.3.0/include/c++/9.3.0/vector:64, from definitions.h:18, from errorMsg.cpp:5: /opt/apps/compilers/gcc/9.3.0/include/c++/9.3.0/bits/allocator.h:174:5: note: candidate: ‘template<class _T1, class _T2> bool std::operator!=(const std::allocator<_Tp1>&, const std::allocator<_T2>&)’ 174 | operator!=(const allocator<_T1>&, const allocator<_T2>&) | ^~~~~~~~ /opt/apps/compilers/gcc/9.3.0/include/c++/9.3.0/bits/allocator.h:174:5: note: template argument deduction/substitution failed: errorMsg.cpp:18:42: note: ‘std::ostream’ {aka ‘std::basic_ostream’} is not derived from ‘const std::allocator<_Tp1>’ 18 | if (_errorOut != NULL && *_errorOut != cerr) { | ^~~~ In file included from /opt/apps/compilers/gcc/9.3.0/include/c++/9.3.0/vector:67, from definitions.h:18, from errorMsg.cpp:5: /opt/apps/compilers/gcc/9.3.0/include/c++/9.3.0/bits/stl_vector.h:1912:5: note:candidate: ‘template<class _Tp, class _Alloc> bool std::operator!=(const std::vector<_Tp, _Alloc>&, const std::vector<_Tp, _Alloc>&)’ 1912 | operator!=(const vector<_Tp, _Alloc>& __x, const vector<_Tp, _Alloc>& __y) | ^~~~~~~~ /opt/apps/compilers/gcc/9.3.0/include/c++/9.3.0/bits/stl_vector.h:1912:5: note: template argument deduction/substitution failed: errorMsg.cpp:18:42: note: ‘std::ostream’ {aka ‘std::basic_ostream’} is not derived from ‘const std::vector<_Tp, _Alloc>’ 18 | if (_errorOut != NULL && *_errorOut != cerr) { | ^~~~ In file included from /opt/apps/compilers/gcc/9.3.0/include/c++/9.3.0/bits/char_traits.h:40, from /opt/apps/compilers/gcc/9.3.0/include/c++/9.3.0/string:40, from definitions.h:19, from errorMsg.cpp:5: /opt/apps/compilers/gcc/9.3.0/include/c++/9.3.0/bits/postypes.h:227:5: note: candidate: ‘template<class _StateT> bool std::operator!=(const std::fpos<_StateT>&, const std::fpos<_StateT>&)’ 227 | operator!=(const fpos<_StateT>& __lhs, const fpos<_StateT>& __rhs) | ^~~~~~~~ /opt/apps/compilers/gcc/9.3.0/include/c++/9.3.0/bits/postypes.h:227:5: note: template argument deduction/substitution failed: errorMsg.cpp:18:42: note: ‘std::ostream’ {aka ‘std::basic_ostream’} is not derived from ‘const std::fpos<_StateT>’ 18 | if (_errorOut != NULL && *_errorOut != cerr) { | ^~~~ In file included from /opt/apps/compilers/gcc/9.3.0/include/c++/9.3.0/bits/basic_string.h:48, from /opt/apps/compilers/gcc/9.3.0/include/c++/9.3.0/string:55, from definitions.h:19, from errorMsg.cpp:5: /opt/apps/compilers/gcc/9.3.0/include/c++/9.3.0/string_view:491:5: note: candidate: ‘template<class _CharT, class _Traits> constexpr bool std::operator!=(std::basic_string_view<_CharT, _Traits>, std::basic_string_view<_CharT, _Traits>)’ 491 | operator!=(basic_string_view<_CharT, _Traits> __x, | ^~~~~~~~ /opt/apps/compilers/gcc/9.3.0/include/c++/9.3.0/string_view:491:5: note: template argument deduction/substitution failed: errorMsg.cpp:18:42: note: ‘std::basic_ostream’ is not derived from ‘std::basic_string_view<_CharT, _Traits>’ 18 | if (_errorOut != NULL && *_errorOut != cerr) { | ^~~~ In file included from /opt/apps/compilers/gcc/9.3.0/include/c++/9.3.0/bits/basic_string.h:48, from /opt/apps/compilers/gcc/9.3.0/include/c++/9.3.0/string:55, from definitions.h:19, from errorMsg.cpp:5: /opt/apps/compilers/gcc/9.3.0/include/c++/9.3.0/string_view:497:5: note: candidate: ‘template<class _CharT, class _Traits> constexpr bool std::operator!=(std::basic_string_view<_CharT, _Traits>, std::__detail::__idt<std::basic_string_view<_CharT, _Traits> >)’ 497 | operator!=(basic_string_view<_CharT, _Traits> __x, | ^~~~~~~~ /opt/apps/compilers/gcc/9.3.0/include/c++/9.3.0/string_view:497:5: note: template argument deduction/substitution failed: errorMsg.cpp:18:42: note: ‘std::basic_ostream’ is not derived from ‘std::basic_string_view<_CharT, _Traits>’ 18 | if (_errorOut != NULL && _errorOut != cerr) { | ^~~~ In file included from /opt/apps/compilers/gcc/9.3.0/include/c++/9.3.0/bits/basic_string.h:48, from /opt/apps/compilers/gcc/9.3.0/include/c++/9.3.0/string:55, from definitions.h:19, from errorMsg.cpp:5: /opt/apps/compilers/gcc/9.3.0/include/c++/9.3.0/string_view:503:5: note: candidate: ‘template<class _CharT, class _Traits> constexpr bool std::operator!=(std::__detail::__idt<std::basic_string_view<_CharT, _Traits> >, std::basic_string_view<_CharT, _Traits>)’ 503 | operator!=(__detail::__idt<basic_string_view<_CharT, _Traits>> __x, | ^~~~~~~~ /opt/apps/compilers/gcc/9.3.0/include/c++/9.3.0/string_view:503:5: note: template argument deduction/substitution failed: errorMsg.cpp:18:42: note: ‘std::basic_ostream’ is not derived from ‘std::basic_string_view<_CharT, _Traits>’ 18 | if (_errorOut != NULL && _errorOut != cerr) { | ^~~~ In file included from /opt/apps/compilers/gcc/9.3.0/include/c++/9.3.0/string:55, from definitions.h:19, from errorMsg.cpp:5: /opt/apps/compilers/gcc/9.3.0/include/c++/9.3.0/bits/basic_string.h:6188:5: note: candidate: ‘template<class _CharT, class _Traits, class _Alloc> bool std::operator!=(const std::__cxx11::basic_string<_CharT, _Traits, _Allocator>&, const std::__cxx11::basic_string<_CharT, _Traits, _Allocator>&)’ 6188 | operator!=(const basic_string<_CharT, _Traits, _Alloc>& __lhs, | ^~~~~~~~ /opt/apps/compilers/gcc/9.3.0/include/c++/9.3.0/bits/basic_string.h:6188:5: note: template argument deduction/substitution failed: errorMsg.cpp:18:42: note: ‘std::ostream’ {aka ‘std::basic_ostream’} is not derived from ‘const std::__cxx11::basic_string<_CharT, _Traits, _Allocator>’ 18 | if (_errorOut != NULL && _errorOut != cerr) { | ^~~~ In file included from /opt/apps/compilers/gcc/9.3.0/include/c++/9.3.0/string:55, from definitions.h:19, from errorMsg.cpp:5: /opt/apps/compilers/gcc/9.3.0/include/c++/9.3.0/bits/basic_string.h:6201:5: note: candidate: ‘template<class _CharT, class _Traits, class _Alloc> bool std::operator!=(const _CharT, const std::__cxx11::basic_string<_CharT, _Traits, _Allocator>&)’ 6201 | operator!=(const _CharT __lhs, | ^~~~~~~~ /opt/apps/compilers/gcc/9.3.0/include/c++/9.3.0/bits/basic_string.h:6201:5: note: template argument deduction/substitution failed: errorMsg.cpp:18:42: note: mismatched types ‘const _CharT’ and ‘std::basic_ostream’ 18 | if (_errorOut != NULL && _errorOut != cerr) { | ^~~~ In file included from /opt/apps/compilers/gcc/9.3.0/include/c++/9.3.0/string:55, from definitions.h:19, from errorMsg.cpp:5: /opt/apps/compilers/gcc/9.3.0/include/c++/9.3.0/bits/basic_string.h:6213:5: note: candidate: ‘template<class _CharT, class _Traits, class _Alloc> bool std::operator!=(const std::__cxx11::basic_string<_CharT, _Traits, _Allocator>&, const _CharT)’ 6213 | operator!=(const basic_string<_CharT, _Traits, _Alloc>& __lhs, | ^~~~~~~~ /opt/apps/compilers/gcc/9.3.0/include/c++/9.3.0/bits/basic_string.h:6213:5: note: template argument deduction/substitution failed: errorMsg.cpp:18:42: note: ‘std::ostream’ {aka ‘std::basic_ostream’} is not derived from ‘const std::__cxx11::basic_string<_CharT, _Traits, _Allocator>’ 18 | if (_errorOut != NULL && *_errorOut != cerr) { | ^~~~ In file included from /opt/apps/compilers/gcc/9.3.0/include/c++/9.3.0/bits/ios_base.h:46, from /opt/apps/compilers/gcc/9.3.0/include/c++/9.3.0/ios:42, from /opt/apps/compilers/gcc/9.3.0/include/c++/9.3.0/ostream:3, from /opt/apps/compilers/gcc/9.3.0/include/c++/9.3.0/iostream:39, from errorMsg.h:11, from errorMsg.cpp:7: /opt/apps/compilers/gcc/9.3.0/include/c++/9.3.0/system_error:319:3: note: candidate: ‘bool std::operator!=(const std::error_code&, const std::error_code&)’ 319 | operator!=(const error_code& __lhs, const error_code& __rhs) noexcept | ^~~~~~~~ /opt/apps/compilers/gcc/9.3.0/include/c++/9.3.0/system_error:319:32: note: no known conversion for argument 1 from ‘std::ostream’ {aka ‘std::basic_ostream’} to ‘const std::error_code&’ 319 | operator!=(const error_code& __lhs, const error_code& __rhs) noexcept | ~~~~~~~~~~~~~~~~~~^~~~~ /opt/apps/compilers/gcc/9.3.0/include/c++/9.3.0/system_error:323:3: note: candidate: ‘bool std::operator!=(const std::error_code&, const std::error_condition&)’ 323 | operator!=(const error_code& __lhs, const error_condition& __rhs) noexcept | ^~~~~~~~ /opt/apps/compilers/gcc/9.3.0/include/c++/9.3.0/system_error:323:32: note: no known conversion for argument 1 from ‘std::ostream’ {aka ‘std::basic_ostream’} to ‘const std::error_code&’ 323 | operator!=(const error_code& __lhs, const error_condition& __rhs) noexcept | ~~~~~~~~~~~~~~~~~~^~~~~ /opt/apps/compilers/gcc/9.3.0/include/c++/9.3.0/system_error:327:3: note: candidate: ‘bool std::operator!=(const std::error_condition&, const std::error_code&)’ 327 | operator!=(const error_condition& __lhs, const error_code& __rhs) noexcept | ^~~~~~~~ /opt/apps/compilers/gcc/9.3.0/include/c++/9.3.0/system_error:327:37: note: no known conversion for argument 1 from ‘std::ostream’ {aka ‘std::basic_ostream’} to ‘const std::error_condition&’ 327 | operator!=(const error_condition& __lhs, const error_code& __rhs) noexcept | ~~~~~~~~~~~~~~~~~~~~~~~^~~~~ /opt/apps/compilers/gcc/9.3.0/include/c++/9.3.0/system_error:331:3: note: candidate: ‘bool std::operator!=(const std::error_condition&, const std::error_condition&)’ 331 | operator!=(const error_condition& __lhs, | ^~~~~~~~ /opt/apps/compilers/gcc/9.3.0/include/c++/9.3.0/system_error:331:37: note: no known conversion for argument 1 from ‘std::ostream’ {aka ‘std::basic_ostream’} to ‘const std::error_condition&’ 331 | operator!=(const error_condition& __lhs, | ~~~~~~~~~~~~~~~~~~~~~~~^~~~~ In file included from /opt/apps/compilers/gcc/9.3.0/include/c++/9.3.0/bits/locale_facets.h:48, from /opt/apps/compilers/gcc/9.3.0/include/c++/9.3.0/bits/basic_ios.h:37, from /opt/apps/compilers/gcc/9.3.0/include/c++/9.3.0/ios:44, from /opt/apps/compilers/gcc/9.3.0/include/c++/9.3.0/ostream:3, from /opt/apps/compilers/gcc/9.3.0/include/c++/9.3.0/iostream:39, from errorMsg.h:11, from errorMsg.cpp:7: /opt/apps/compilers/gcc/9.3.0/include/c++/9.3.0/bits/streambuf_iterator.h:214:5 note: candidate: ‘template<class _CharT, class _Traits> bool std::operator!=(const std::istreambuf_iterator<_CharT, _Traits>&, const std::istreambuf_iterator<_CharT, _Traits>&)’ 214 | operator!=(const istreambuf_iterator<_CharT, _Traits>& __a, | ^~~~~~~~ /opt/apps/compilers/gcc/9.3.0/include/c++/9.3.0/bits/streambuf_iterator.h:214:5 note: template argument deduction/substitution failed: errorMsg.cpp:18:42: note: ‘std::ostream’ {aka ‘std::basic_ostream’} is not derived from ‘const std::istreambuf_iterator<_CharT, _Traits>’ 18 | if (_errorOut != NULL && *_errorOut != cerr) { | ^~~~ errorMsg.cpp: In static member function ‘static void errorMsg::reportError(const string&, int)’: errorMsg.cpp:33:38: error: no match for ‘operator!=’ (operand types are ‘std::ostream’ {aka ‘std::basic_ostream’} and ‘std::ostream’ {aka ‘std::basic_ostream’}) 33 | if (_errorOut != NULL && *_errorOut != cerr) { | ~~~~~~~~~~ ^~ ~~~~ | | | | | basic_ostream<[...]> | basic_ostream<[...]> errorMsg.cpp:33:38: note: candidate: ‘operator!=(int, int)’ 33 | if (_errorOut != NULL && *_errorOut != cerr) { | ~~~~~~~~~~~^~~~~~~ errorMsg.cpp:33:38: note: no known conversion for argument 2 from ‘std::ostream’ {aka ‘std::basic_ostream’} to ‘int’ In file included from /opt/apps/compilers/gcc/9.3.0/include/c++/9.3.0/bits/stl_algobase.h:64, from /opt/apps/compilers/gcc/9.3.0/include/c++/9.3.0/vector:60, from definitions.h:18, from errorMsg.cpp:5: /opt/apps/compilers/gcc/9.3.0/include/c++/9.3.0/bits/stl_pair.h:461:5: note: candidate: ‘template<class _T1, class _T2> constexpr bool std::operator!=(const std::pair<_T1, _T2>&, const std::pair<_T1, _T2>&)’ 461 | operator!=(const pair<_T1, _T2>& __x, const pair<_T1, _T2>& __y) | ^~~~~~~~ /opt/apps/compilers/gcc/9.3.0/include/c++/9.3.0/bits/stl_pair.h:461:5: note: template argument deduction/substitution failed: errorMsg.cpp:33:41: note: ‘std::ostream’ {aka ‘std::basic_ostream’} is not derived from ‘const std::pair<_T1, _T2>’ 33 | if (_errorOut != NULL && *_errorOut != cerr) { | ^~~~ In file included from /opt/apps/compilers/gcc/9.3.0/include/c++/9.3.0/bits/stl_algobase.h:67, from /opt/apps/compilers/gcc/9.3.0/include/c++/9.3.0/vector:60, from definitions.h:18, from errorMsg.cpp:5: /opt/apps/compilers/gcc/9.3.0/include/c++/9.3.0/bits/stl_iterator.h:337:5: note: candidate: ‘template<class _Iterator> constexpr bool std::operator!=(const std::reverse_iterator<_Iterator>&, const std::reverse_iterator<_Iterator>&)’ 337 | operator!=(const reverse_iterator<_Iterator>& __x, | ^~~~~~~~ /opt/apps/compilers/gcc/9.3.0/include/c++/9.3.0/bits/stl_iterator.h:337:5: note: template argument deduction/substitution failed: errorMsg.cpp:33:41: note: ‘std::ostream’ {aka ‘std::basic_ostream’} is not derived from ‘const std::reverse_iterator<_Iterator>’ 33 | if (_errorOut != NULL && *_errorOut != cerr) { | ^~~~ In file included from /opt/apps/compilers/gcc/9.3.0/include/c++/9.3.0/bits/stl_algobase.h:67, from /opt/apps/compilers/gcc/9.3.0/include/c++/9.3.0/vector:60, from definitions.h:18, from errorMsg.cpp:5: /opt/apps/compilers/gcc/9.3.0/include/c++/9.3.0/bits/stl_iterator.h:375:5: note: candidate: ‘template<class _IteratorL, class _IteratorR> constexpr bool std::operator!=(const std::reverse_iterator<_Iterator>&, const std::reverse_iterator<_IteratorR>&)’ 375 | operator!=(const reverse_iterator<_IteratorL>& __x, | ^~~~~~~~ /opt/apps/compilers/gcc/9.3.0/include/c++/9.3.0/bits/stl_iterator.h:375:5: note: template argument deduction/substitution failed: errorMsg.cpp:33:41: note: ‘std::ostream’ {aka ‘std::basic_ostream’} is not derived from ‘const std::reverse_iterator<_Iterator>’ 33 | if (_errorOut != NULL && *_errorOut != cerr) { | ^~~~ In file included from /opt/apps/compilers/gcc/9.3.0/include/c++/9.3.0/bits/stl_algobase.h:67, from /opt/apps/compilers/gcc/9.3.0/include/c++/9.3.0/vector:60, from definitions.h:18, from errorMsg.cpp:5: /opt/apps/compilers/gcc/9.3.0/include/c++/9.3.0/bits/stl_iterator.h:1151:5: note: candidate: ‘template<class _IteratorL, class _IteratorR> constexpr bool std::operator!=(const std::move_iterator<_IteratorL>&, const std::move_iterator<_IteratorR>&)’ 1151 | operator!=(const move_iterator<_IteratorL>& __x, | ^~~~~~~~ /opt/apps/compilers/gcc/9.3.0/include/c++/9.3.0/bits/stl_iterator.h:1151:5: note: template argument deduction/substitution failed: errorMsg.cpp:33:41: note: ‘std::ostream’ {aka ‘std::basic_ostream’} is not derived from ‘const std::move_iterator<_IteratorL>’ 33 | if (_errorOut != NULL && *_errorOut != cerr) { | ^~~~ In file included from /opt/apps/compilers/gcc/9.3.0/include/c++/9.3.0/bits/stl_algobase.h:67, from /opt/apps/compilers/gcc/9.3.0/include/c++/9.3.0/vector:60, from definitions.h:18, from errorMsg.cpp:5: /opt/apps/compilers/gcc/9.3.0/include/c++/9.3.0/bits/stl_iterator.h:1157:5: note: candidate: ‘template<class _Iterator> constexpr bool std::operator!=(const std::move_iterator<_IteratorL>&, const std::move_iterator<_IteratorL>&)’ 1157 | operator!=(const move_iterator<_Iterator>& __x, | ^~~~~~~~ /opt/apps/compilers/gcc/9.3.0/include/c++/9.3.0/bits/stl_iterator.h:1157:5: note: template argument deduction/substitution failed: errorMsg.cpp:33:41: note: ‘std::ostream’ {aka ‘std::basic_ostream’} is not derived from ‘const std::move_iterator<_IteratorL>’ 33 | if (_errorOut != NULL && *_errorOut != cerr) { | ^~~~ In file included from /opt/apps/compilers/gcc/9.3.0/include/c++/9.3.0/vector:64, from definitions.h:18, from errorMsg.cpp:5: /opt/apps/compilers/gcc/9.3.0/include/c++/9.3.0/bits/allocator.h:174:5: note: candidate: ‘template<class _T1, class _T2> bool std::operator!=(const std::allocator<_Tp1>&, const std::allocator<_T2>&)’ 174 | operator!=(const allocator<_T1>&, const allocator<_T2>&) | ^~~~~~~~ /opt/apps/compilers/gcc/9.3.0/include/c++/9.3.0/bits/allocator.h:174:5: note: template argument deduction/substitution failed: errorMsg.cpp:33:41: note: ‘std::ostream’ {aka ‘std::basic_ostream’} is not derived from ‘const std::allocator<_Tp1>’ 33 | if (_errorOut != NULL && *_errorOut != cerr) { | ^~~~ In file included from /opt/apps/compilers/gcc/9.3.0/include/c++/9.3.0/vector:67, from definitions.h:18, from errorMsg.cpp:5: /opt/apps/compilers/gcc/9.3.0/include/c++/9.3.0/bits/stl_vector.h:1912:5: note:candidate: ‘template<class _Tp, class _Alloc> bool std::operator!=(const std::vector<_Tp, _Alloc>&, const std::vector<_Tp, _Alloc>&)’ 1912 | operator!=(const vector<_Tp, _Alloc>& __x, const vector<_Tp, _Alloc>& __y) | ^~~~~~~~ /opt/apps/compilers/gcc/9.3.0/include/c++/9.3.0/bits/stl_vector.h:1912:5: note: template argument deduction/substitution failed: errorMsg.cpp:33:41: note: ‘std::ostream’ {aka ‘std::basic_ostream’} is not derived from ‘const std::vector<_Tp, _Alloc>’ 33 | if (_errorOut != NULL && *_errorOut != cerr) { | ^~~~ In file included from /opt/apps/compilers/gcc/9.3.0/include/c++/9.3.0/bits/char_traits.h:40, from /opt/apps/compilers/gcc/9.3.0/include/c++/9.3.0/string:40, from definitions.h:19, from errorMsg.cpp:5: /opt/apps/compilers/gcc/9.3.0/include/c++/9.3.0/bits/postypes.h:227:5: note: candidate: ‘template<class _StateT> bool std::operator!=(const std::fpos<_StateT>&, const std::fpos<_StateT>&)’ 227 | operator!=(const fpos<_StateT>& __lhs, const fpos<_StateT>& __rhs) | ^~~~~~~~ /opt/apps/compilers/gcc/9.3.0/include/c++/9.3.0/bits/postypes.h:227:5: note: template argument deduction/substitution failed: errorMsg.cpp:33:41: note: ‘std::ostream’ {aka ‘std::basic_ostream’} is not derived from ‘const std::fpos<_StateT>’ 33 | if (_errorOut != NULL && *_errorOut != cerr) { | ^~~~ In file included from /opt/apps/compilers/gcc/9.3.0/include/c++/9.3.0/bits/basic_string.h:48, from /opt/apps/compilers/gcc/9.3.0/include/c++/9.3.0/string:55, from definitions.h:19, from errorMsg.cpp:5: /opt/apps/compilers/gcc/9.3.0/include/c++/9.3.0/string_view:491:5: note: candidate: ‘template<class _CharT, class _Traits> constexpr bool std::operator!=(std::basic_string_view<_CharT, _Traits>, std::basic_string_view<_CharT, _Traits>)’ 491 | operator!=(basic_string_view<_CharT, _Traits> __x, | ^~~~~~~~ /opt/apps/compilers/gcc/9.3.0/include/c++/9.3.0/string_view:491:5: note: template argument deduction/substitution failed: errorMsg.cpp:33:41: note: ‘std::basic_ostream’ is not derived from ‘std::basic_string_view<_CharT, _Traits>’ 33 | if (_errorOut != NULL && *_errorOut != cerr) { | ^~~~ In file included from /opt/apps/compilers/gcc/9.3.0/include/c++/9.3.0/bits/basic_string.h:48, from /opt/apps/compilers/gcc/9.3.0/include/c++/9.3.0/string:55, from definitions.h:19, from errorMsg.cpp:5: /opt/apps/compilers/gcc/9.3.0/include/c++/9.3.0/string_view:497:5: note: candidate: ‘template<class _CharT, class _Traits> constexpr bool std::operator!=(std::basic_string_view<_CharT, _Traits>, std::__detail::__idt<std::basic_string_view<_CharT, _Traits> >)’ 497 | operator!=(basic_string_view<_CharT, _Traits> __x, | ^~~~~~~~ /opt/apps/compilers/gcc/9.3.0/include/c++/9.3.0/string_view:497:5: note: template argument deduction/substitution failed: errorMsg.cpp:33:41: note: ‘std::basic_ostream’ is not derived from ‘std::basic_string_view<_CharT, _Traits>’ 33 | if (_errorOut != NULL && _errorOut != cerr) { | ^~~~ In file included from /opt/apps/compilers/gcc/9.3.0/include/c++/9.3.0/bits/basic_string.h:48, from /opt/apps/compilers/gcc/9.3.0/include/c++/9.3.0/string:55, from definitions.h:19, from errorMsg.cpp:5: /opt/apps/compilers/gcc/9.3.0/include/c++/9.3.0/string_view:503:5: note: candidate: ‘template<class _CharT, class _Traits> constexpr bool std::operator!=(std::__detail::__idt<std::basic_string_view<_CharT, _Traits> >, std::basic_string_view<_CharT, _Traits>)’ 503 | operator!=(__detail::__idt<basic_string_view<_CharT, _Traits>> __x, | ^~~~~~~~ /opt/apps/compilers/gcc/9.3.0/include/c++/9.3.0/string_view:503:5: note: template argument deduction/substitution failed: errorMsg.cpp:33:41: note: ‘std::basic_ostream’ is not derived from ‘std::basic_string_view<_CharT, _Traits>’ 33 | if (_errorOut != NULL && _errorOut != cerr) { | ^~~~ In file included from /opt/apps/compilers/gcc/9.3.0/include/c++/9.3.0/string:55, from definitions.h:19, from errorMsg.cpp:5: /opt/apps/compilers/gcc/9.3.0/include/c++/9.3.0/bits/basic_string.h:6188:5: note: candidate: ‘template<class _CharT, class _Traits, class _Alloc> bool std::operator!=(const std::__cxx11::basic_string<_CharT, _Traits, _Allocator>&, const std::__cxx11::basic_string<_CharT, _Traits, _Allocator>&)’ 6188 | operator!=(const basic_string<_CharT, _Traits, _Alloc>& __lhs, | ^~~~~~~~ /opt/apps/compilers/gcc/9.3.0/include/c++/9.3.0/bits/basic_string.h:6188:5: note: template argument deduction/substitution failed: errorMsg.cpp:33:41: note: ‘std::ostream’ {aka ‘std::basic_ostream’} is not derived from ‘const std::__cxx11::basic_string<_CharT, _Traits, _Allocator>’ 33 | if (_errorOut != NULL && _errorOut != cerr) { | ^~~~ In file included from /opt/apps/compilers/gcc/9.3.0/include/c++/9.3.0/string:55, from definitions.h:19, from errorMsg.cpp:5: /opt/apps/compilers/gcc/9.3.0/include/c++/9.3.0/bits/basic_string.h:6201:5: note: candidate: ‘template<class _CharT, class _Traits, class _Alloc> bool std::operator!=(const _CharT, const std::__cxx11::basic_string<_CharT, _Traits, _Allocator>&)’ 6201 | operator!=(const _CharT __lhs, | ^~~~~~~~ /opt/apps/compilers/gcc/9.3.0/include/c++/9.3.0/bits/basic_string.h:6201:5: note: template argument deduction/substitution failed: errorMsg.cpp:33:41: note: mismatched types ‘const _CharT’ and ‘std::basic_ostream’ 33 | if (_errorOut != NULL && _errorOut != cerr) { | ^~~~ In file included from /opt/apps/compilers/gcc/9.3.0/include/c++/9.3.0/string:55, from definitions.h:19, from errorMsg.cpp:5: /opt/apps/compilers/gcc/9.3.0/include/c++/9.3.0/bits/basic_string.h:6213:5: note: candidate: ‘template<class _CharT, class _Traits, class _Alloc> bool std::operator!=(const std::__cxx11::basic_string<_CharT, _Traits, _Allocator>&, const _CharT)’ 6213 | operator!=(const basic_string<_CharT, _Traits, _Alloc>& __lhs, | ^~~~~~~~ /opt/apps/compilers/gcc/9.3.0/include/c++/9.3.0/bits/basic_string.h:6213:5: note: template argument deduction/substitution failed: errorMsg.cpp:33:41: note: ‘std::ostream’ {aka ‘std::basic_ostream’} is not derived from ‘const std::__cxx11::basic_string<_CharT, _Traits, _Allocator>’ 33 | if (_errorOut != NULL && *_errorOut != cerr) { | ^~~~ In file included from /opt/apps/compilers/gcc/9.3.0/include/c++/9.3.0/bits/ios_base.h:46, from /opt/apps/compilers/gcc/9.3.0/include/c++/9.3.0/ios:42, from /opt/apps/compilers/gcc/9.3.0/include/c++/9.3.0/ostream:3, from /opt/apps/compilers/gcc/9.3.0/include/c++/9.3.0/iostream:39, from errorMsg.h:11, from errorMsg.cpp:7: /opt/apps/compilers/gcc/9.3.0/include/c++/9.3.0/system_error:319:3: note: candidate: ‘bool std::operator!=(const std::error_code&, const std::error_code&)’ 319 | operator!=(const error_code& __lhs, const error_code& __rhs) noexcept | ^~~~~~~~ /opt/apps/compilers/gcc/9.3.0/include/c++/9.3.0/system_error:319:32: note: no known conversion for argument 1 from ‘std::ostream’ {aka ‘std::basic_ostream’} to ‘const std::error_code&’ 319 | operator!=(const error_code& __lhs, const error_code& __rhs) noexcept | ~~~~~~~~~~~~~~~~~~^~~~~ /opt/apps/compilers/gcc/9.3.0/include/c++/9.3.0/system_error:323:3: note: candidate: ‘bool std::operator!=(const std::error_code&, const std::error_condition&)’ 323 | operator!=(const error_code& __lhs, const error_condition& __rhs) noexcept | ^~~~~~~~ /opt/apps/compilers/gcc/9.3.0/include/c++/9.3.0/system_error:323:32: note: no known conversion for argument 1 from ‘std::ostream’ {aka ‘std::basic_ostream’} to ‘const std::error_code&’ 323 | operator!=(const error_code& __lhs, const error_condition& __rhs) noexcept | ~~~~~~~~~~~~~~~~~~^~~~~ /opt/apps/compilers/gcc/9.3.0/include/c++/9.3.0/system_error:327:3: note: candidate: ‘bool std::operator!=(const std::error_condition&, const std::error_code&)’ 327 | operator!=(const error_condition& __lhs, const error_code& __rhs) noexcept | ^~~~~~~~ /opt/apps/compilers/gcc/9.3.0/include/c++/9.3.0/system_error:327:37: note: no known conversion for argument 1 from ‘std::ostream’ {aka ‘std::basic_ostream’} to ‘const std::error_condition&’ 327 | operator!=(const error_condition& __lhs, const error_code& __rhs) noexcept | ~~~~~~~~~~~~~~~~~~~~~~~^~~~~ /opt/apps/compilers/gcc/9.3.0/include/c++/9.3.0/system_error:331:3: note: candidate: ‘bool std::operator!=(const std::error_condition&, const std::error_condition&)’ 331 | operator!=(const error_condition& __lhs, | ^~~~~~~~ /opt/apps/compilers/gcc/9.3.0/include/c++/9.3.0/system_error:331:37: note: no known conversion for argument 1 from ‘std::ostream’ {aka ‘std::basic_ostream’} to ‘const std::error_condition&’ 331 | operator!=(const error_condition& __lhs, | ~~~~~~~~~~~~~~~~~~~~~~~^~~~~ In file included from /opt/apps/compilers/gcc/9.3.0/include/c++/9.3.0/bits/locale_facets.h:48, from /opt/apps/compilers/gcc/9.3.0/include/c++/9.3.0/bits/basic_ios.h:37, from /opt/apps/compilers/gcc/9.3.0/include/c++/9.3.0/ios:44, from /opt/apps/compilers/gcc/9.3.0/include/c++/9.3.0/ostream:3, from /opt/apps/compilers/gcc/9.3.0/include/c++/9.3.0/iostream:39, from errorMsg.h:11, from errorMsg.cpp:7: /opt/apps/compilers/gcc/9.3.0/include/c++/9.3.0/bits/streambuf_iterator.h:214:5 note: candidate: ‘template<class _CharT, class _Traits> bool std::operator!=(const std::istreambuf_iterator<_CharT, _Traits>&, const std::istreambuf_iterator<_CharT, _Traits>&)’ 214 | operator!=(const istreambuf_iterator<_CharT, _Traits>& __a, | ^~~~~~~~ /opt/apps/compilers/gcc/9.3.0/include/c++/9.3.0/bits/streambuf_iterator.h:214:5 note: template argument deduction/substitution failed: errorMsg.cpp:33:41: note: ‘std::ostream’ {aka ‘std::basic_ostream’} is not derived from ‘const std::istreambuf_iterator<_CharT, _Traits>’ 33 | if (_errorOut != NULL && *_errorOut != cerr) { | ^~~~ make: *** [errorMsg.o] Error 1

shalawsallah avatar Apr 25 '23 05:04 shalawsallah

I'm experiencing this too. Any luck fixing it locally? I'll report back again in a few days after getting some advice from a colleague.

drichman avatar Oct 02 '23 20:10 drichman

HI, I have the same issue.. Did you maybe find a solution?

noaklug avatar Mar 26 '24 20:03 noaklug

based on chatgpt (I tested it): In file errorMsg.cpp, replace if (_errorOut != NULL && *_errorOut != cerr) (lines 18 and 33) with if (_errorOut != NULL)

If this compiles, also later there will be an error in someUtil.cpp. In this file, replace at every occurence: if (file1 == NULL) return false; with if (file1.fail()) return false;

In rate4siteOptions.cpp replace: if (out_f == NULL) errorMsg::reportError(" unable to open output file for writing. "); with if (out_f.fail()) errorMsg::reportError(" unable to open output file for writing. ");

gezmi avatar Apr 09 '24 14:04 gezmi

Did it worked ? not for me

based on chatgpt (I tested it): In file errorMsg.cpp, replace if (_errorOut != NULL && *_errorOut != cerr) (lines 18 and 33) with if (_errorOut != NULL)

If this compiles, also later there will be an error in someUtil.cpp. In this file, replace at every occurence: if (file1 == NULL) return false; with if (file1.fail()) return false;

In rate4siteOptions.cpp replace: if (out_f == NULL) errorMsg::reportError(" unable to open output file for writing. "); with if (out_f.fail()) errorMsg::reportError(" unable to open output file for writing. ");

AJVelezRueda avatar Mar 20 '25 15:03 AJVelezRueda

add -std=c++98 to CXXFLAGS.

EricDeveaud avatar Jun 17 '25 13:06 EricDeveaud