An error occurred during wabt installation

[root@host wabt]-sharp make clang-release
make --no-print-directory -C out/clang/Release/ all
[  1%] Building CXX object CMakeFiles/libgtest.dir/third_party/gtest/googletest/src/gtest-all.cc.o
In file included from /home/ajanuw/wabt/third_party/gtest/googletest/src/gtest-all.cc:39:
In file included from /home/ajanuw/wabt/third_party/gtest/googletest/include/gtest/gtest.h:58:
/home/ajanuw/wabt/third_party/gtest/googletest/include/gtest/internal/gtest-internal.h:894:44: error: 
      no member named "declval" in namespace "std"
          class Iterator = decltype(::std::declval<const C&>().begin()),
                                    
/home/ajanuw/wabt/third_party/gtest/googletest/include/gtest/internal/gtest-internal.h:894:52: error: 
      expected expression
          class Iterator = decltype(::std::declval<const C&>().begin()),
                                                   ^
/home/ajanuw/wabt/third_party/gtest/googletest/include/gtest/internal/gtest-internal.h:895:35: error: 
......

clipboard.png

Apr.11,2021
Menu