ROOT Version: latest
Platform: Kali linux subsystem for windows
Hi, while trying to build root in Kali subsystem for windows I get this error which don’t know how to fix.
[ 76%] Generating G__Core.cxx, ../lib/Core.pcm
While building module 'Core':
While building module 'std' imported from input_line_1:1:
In file included from <module-includes>:75:
/usr/include/c++/11/valarray:1215:5: error: exception specification in declaration does not match previous declaration
begin(valarray<_Tp>& __va) noexcept
^
/usr/include/c++/11/bits/range_access.h:107:31: note: previous declaration is here
template<typename _Tp> _Tp* begin(valarray<_Tp>&);
^
While building module 'Core':
While building module 'std' imported from input_line_1:1:
In file included from <module-includes>:75:
/usr/include/c++/11/valarray:1226:5: error: exception specification in declaration does not match previous declaration
begin(const valarray<_Tp>& __va) noexcept
^
/usr/include/c++/11/bits/range_access.h:108:37: note: previous declaration is here
template<typename _Tp> const _Tp* begin(const valarray<_Tp>&);
^
While building module 'Core':
While building module 'std' imported from input_line_1:1:
In file included from <module-includes>:75:
/usr/include/c++/11/valarray:1237:5: error: exception specification in declaration does not match previous declaration
end(valarray<_Tp>& __va) noexcept
^
/usr/include/c++/11/bits/range_access.h:109:31: note: previous declaration is here
template<typename _Tp> _Tp* end(valarray<_Tp>&);
^
While building module 'Core':
While building module 'std' imported from input_line_1:1:
In file included from <module-includes>:75:
/usr/include/c++/11/valarray:1253:5: error: exception specification in declaration does not match previous declaration
end(const valarray<_Tp>& __va) noexcept
^
/usr/include/c++/11/bits/range_access.h:110:37: note: previous declaration is here
template<typename _Tp> const _Tp* end(const valarray<_Tp>&);
^
input_line_1:1:10: fatal error: could not build module 'std'
#include <new>
I followed the guide for building root located in https://root.cern/install/build_from_source/