Hello.
I’m having trouble building Root 6.20.04. I’ve also tried Root 5.34.00, but I have the same error. I already tried downgrading GCC to 9.3, but that didn’t solve the problem. Can anyone give me an insight of what might be going on?
Thanks!
Error log:
[ 27%] Building CXX object core/foundation/CMakeFiles/Foundation_Stage1.dir/src/RConversionRuleParser.cxx.o
In file included from /home/adrielgbmocellin/Programs/ape-main/build/root/root-6.20.04/core/foundation/inc/ROOT/RWrap_libcpp_string_view.h:545,
from /home/adrielgbmocellin/Programs/ape-main/build/root/root-6.20.04/core/foundation/inc/ROOT/RStringView.hxx:26,
from /home/adrielgbmocellin/Programs/ape-main/build/root/root-6.20.04/core/foundation/inc/TClassEdit.h:65,
from /home/adrielgbmocellin/Programs/ape-main/build/root/root-6.20.04/core/foundation/src/RConversionRuleParser.cxx:18:
/home/adrielgbmocellin/Programs/ape-main/build/root/root-6.20.04/core/foundation/inc/ROOT/libcpp_string_view.h: In member function ‘constexpr std::experimental::__ROOT::basic_string_view<_CharT, _Traits>::size_type std::experimental::__ROOT::basic_string_view<_CharT, _Traits>::max_size() const’:
/home/adrielgbmocellin/Programs/ape-main/build/root/root-6.20.04/core/foundation/inc/ROOT/libcpp_string_view.h:275:63: error: ‘numeric_limits’ is not a member of ‘std’
275 | size_type max_size() const _NOEXCEPT { return (_VSTD::numeric_limits<size_type>::max)(); }
| ^~~~~~~~~~~~~~
/home/adrielgbmocellin/Programs/ape-main/build/root/root-6.20.04/core/foundation/inc/ROOT/libcpp_string_view.h:275:87: error: expected primary-expression before ‘>’ token
275 | size_type max_size() const _NOEXCEPT { return (_VSTD::numeric_limits<size_type>::max)(); }
| ^
/home/adrielgbmocellin/Programs/ape-main/build/root/root-6.20.04/core/foundation/inc/ROOT/libcpp_string_view.h:275:90: error: ‘::max’ has not been declared; did you mean ‘std::max’?
275 | size_type max_size() const _NOEXCEPT { return (_VSTD::numeric_limits<size_type>::max)(); }
| ^~~
| std::max
In file included from /usr/include/c++/11/algorithm:62,
from /home/adrielgbmocellin/Programs/ape-main/build/root/root-6.20.04/core/foundation/res/TSchemaRuleProcessor.h:16,
from /home/adrielgbmocellin/Programs/ape-main/build/root/root-6.20.04/core/foundation/src/RConversionRuleParser.cxx:17:
/usr/include/c++/11/bits/stl_algo.h:3467:5: note: ‘std::max’ declared here
3467 | max(initializer_list<_Tp> __l, _Compare __comp)
| ^~~
gmake[2]: *** [core/foundation/CMakeFiles/Foundation_Stage1.dir/build.make:76: core/foundation/CMakeFiles/Foundation_Stage1.dir/src/RConversionRuleParser.cxx.o] Error 1
gmake[2]: Leaving directory '/home/adrielgbmocellin/Programs/ape-main/build/root/root-6.20.04-build'
gmake[1]: *** [CMakeFiles/Makefile2:16254: core/foundation/CMakeFiles/Foundation_Stage1.dir/all] Error 2
gmake[1]: Leaving directory '/home/adrielgbmocellin/Programs/ape-main/build/root/root-6.20.04-build'
gmake: *** [Makefile:152: all] Error 2
ROOT Version: 6.20.04
Platform: Linux Mint