isaac_ros_dnn_inference icon indicating copy to clipboard operation
isaac_ros_dnn_inference copied to clipboard

isaac_ros_tensor_rt build failed

Open seongjin-lim opened this issue 1 year ago • 2 comments

image

seongjin-lim avatar Aug 09 '24 04:08 seongjin-lim

I'm building isaac_ros_dnn_inference in Orin Nano, Jetpack 6.0, and had the same build error and here's the full error log; (Due to performance issue, I'm not building in the docker container.)

--- stderr: isaac_ros_tensor_rt                                                         
In file included from /usr/src/googletest/googlemock/include/gmock/gmock-spec-builders.h:75,
                 from /usr/src/googletest/googlemock/include/gmock/gmock-function-mocker.h:42,
                 from /usr/src/googletest/googlemock/include/gmock/gmock.h:61,
                 from /home/wego/wego_ws/src/isaac_ros_dnn_inference/isaac_ros_tensor_rt/test/tensor_rt_node_test.cpp:18:
/usr/src/googletest/googlemock/include/gmock/gmock-matchers.h: In member function ‘testing::internal::FieldsAreMatcher<Inner>::operator testing::Matcher<T>() const’:
/usr/src/googletest/googlemock/include/gmock/gmock-matchers.h:3165:49: error: ‘IndexSequenceFor’ was not declared in this scope; did you mean ‘IndexSequence’?
 3165 |         new FieldsAreMatcherImpl<const Struct&, IndexSequenceFor<Inner...>>(
      |                                                 ^~~~~~~~~~~~~~~~
      |                                                 IndexSequence
/usr/src/googletest/googlemock/include/gmock/gmock-matchers.h:3165:71: error: expected parameter pack before ‘...’
 3165 |         new FieldsAreMatcherImpl<const Struct&, IndexSequenceFor<Inner...>>(
      |                                                                       ^~~
/usr/src/googletest/googlemock/include/gmock/gmock-matchers.h:3165:71: error: template argument 2 is invalid
/usr/src/googletest/googlemock/include/gmock/gmock-matchers.h: At global scope:
/usr/src/googletest/googlemock/include/gmock/gmock-matchers.h:4291:21: error: ‘StringLike’ in namespace ‘testing::internal’ does not name a template type; did you mean ‘Strings’?
 4291 |     const internal::StringLike<T>& str) {
      |                     ^~~~~~~~~~
      |                     Strings
/usr/src/googletest/googlemock/include/gmock/gmock-matchers.h:4291:31: error: expected ‘,’ or ‘...’ before ‘<’ token
 4291 |     const internal::StringLike<T>& str) {
      |                               ^
/usr/src/googletest/googlemock/include/gmock/gmock-matchers.h: In function ‘testing::PolymorphicMatcher<testing::internal::StrEqualityMatcher<std::__cxx11::basic_string<char> > > testing::StrEq(int)’:
/usr/src/googletest/googlemock/include/gmock/gmock-matchers.h:4293:61: error: ‘str’ was not declared in this scope; did you mean ‘std’?
 4293 |       internal::StrEqualityMatcher<std::string>(std::string(str), true, true));
      |                                                             ^~~
      |                                                             std
/usr/src/googletest/googlemock/include/gmock/gmock-matchers.h: At global scope:
/usr/src/googletest/googlemock/include/gmock/gmock-matchers.h:4299:21: error: ‘StringLike’ in namespace ‘testing::internal’ does not name a template type; did you mean ‘Strings’?
 4299 |     const internal::StringLike<T>& str) {
      |                     ^~~~~~~~~~
      |                     Strings
/usr/src/googletest/googlemock/include/gmock/gmock-matchers.h:4299:31: error: expected ‘,’ or ‘...’ before ‘<’ token
 4299 |     const internal::StringLike<T>& str) {
      |                               ^
/usr/src/googletest/googlemock/include/gmock/gmock-matchers.h: In function ‘testing::PolymorphicMatcher<testing::internal::StrEqualityMatcher<std::__cxx11::basic_string<char> > > testing::StrNe(int)’:
/usr/src/googletest/googlemock/include/gmock/gmock-matchers.h:4301:61: error: ‘str’ was not declared in this scope; did you mean ‘std’?
 4301 |       internal::StrEqualityMatcher<std::string>(std::string(str), false, true));
      |                                                             ^~~
      |                                                             std
/usr/src/googletest/googlemock/include/gmock/gmock-matchers.h: At global scope:
/usr/src/googletest/googlemock/include/gmock/gmock-matchers.h:4307:21: error: ‘StringLike’ in namespace ‘testing::internal’ does not name a template type; did you mean ‘Strings’?
 4307 |     const internal::StringLike<T>& str) {
      |                     ^~~~~~~~~~
      |                     Strings
/usr/src/googletest/googlemock/include/gmock/gmock-matchers.h:4307:31: error: expected ‘,’ or ‘...’ before ‘<’ token
 4307 |     const internal::StringLike<T>& str) {
      |                               ^
/usr/src/googletest/googlemock/include/gmock/gmock-matchers.h: In function ‘testing::PolymorphicMatcher<testing::internal::StrEqualityMatcher<std::__cxx11::basic_string<char> > > testing::StrCaseEq(int)’:
/usr/src/googletest/googlemock/include/gmock/gmock-matchers.h:4309:61: error: ‘str’ was not declared in this scope; did you mean ‘std’?
 4309 |       internal::StrEqualityMatcher<std::string>(std::string(str), true, false));
      |                                                             ^~~
      |                                                             std
/usr/src/googletest/googlemock/include/gmock/gmock-matchers.h: At global scope:
/usr/src/googletest/googlemock/include/gmock/gmock-matchers.h:4315:21: error: ‘StringLike’ in namespace ‘testing::internal’ does not name a template type; did you mean ‘Strings’?
 4315 |     const internal::StringLike<T>& str) {
      |                     ^~~~~~~~~~
      |                     Strings
/usr/src/googletest/googlemock/include/gmock/gmock-matchers.h:4315:31: error: expected ‘,’ or ‘...’ before ‘<’ token
 4315 |     const internal::StringLike<T>& str) {
      |                               ^
/usr/src/googletest/googlemock/include/gmock/gmock-matchers.h: In function ‘testing::PolymorphicMatcher<testing::internal::StrEqualityMatcher<std::__cxx11::basic_string<char> > > testing::StrCaseNe(int)’:
/usr/src/googletest/googlemock/include/gmock/gmock-matchers.h:4317:19: error: ‘str’ was not declared in this scope; did you mean ‘std’?
 4317 |       std::string(str), false, false));
      |                   ^~~
      |                   std
/usr/src/googletest/googlemock/include/gmock/gmock-matchers.h: At global scope:
/usr/src/googletest/googlemock/include/gmock/gmock-matchers.h:4324:21: error: ‘StringLike’ in namespace ‘testing::internal’ does not name a template type; did you mean ‘Strings’?
 4324 |     const internal::StringLike<T>& substring) {
      |                     ^~~~~~~~~~
      |                     Strings
/usr/src/googletest/googlemock/include/gmock/gmock-matchers.h:4324:31: error: expected ‘,’ or ‘...’ before ‘<’ token
 4324 |     const internal::StringLike<T>& substring) {
      |                               ^
/usr/src/googletest/googlemock/include/gmock/gmock-matchers.h: In function ‘testing::PolymorphicMatcher<testing::internal::HasSubstrMatcher<std::__cxx11::basic_string<char> > > testing::HasSubstr(int)’:
/usr/src/googletest/googlemock/include/gmock/gmock-matchers.h:4326:59: error: ‘substring’ was not declared in this scope; did you mean ‘IsSubstring’?
 4326 |       internal::HasSubstrMatcher<std::string>(std::string(substring)));
      |                                                           ^~~~~~~~~
      |                                                           IsSubstring
/usr/src/googletest/googlemock/include/gmock/gmock-matchers.h: At global scope:
/usr/src/googletest/googlemock/include/gmock/gmock-matchers.h:4332:21: error: ‘StringLike’ in namespace ‘testing::internal’ does not name a template type; did you mean ‘Strings’?
 4332 |     const internal::StringLike<T>& prefix) {
      |                     ^~~~~~~~~~
      |                     Strings
/usr/src/googletest/googlemock/include/gmock/gmock-matchers.h:4332:31: error: expected ‘,’ or ‘...’ before ‘<’ token
 4332 |     const internal::StringLike<T>& prefix) {
      |                               ^
/usr/src/googletest/googlemock/include/gmock/gmock-matchers.h: In function ‘testing::PolymorphicMatcher<testing::internal::StartsWithMatcher<std::__cxx11::basic_string<char> > > testing::StartsWith(int)’:
/usr/src/googletest/googlemock/include/gmock/gmock-matchers.h:4334:60: error: ‘prefix’ was not declared in this scope; did you mean ‘profil’?
 4334 |       internal::StartsWithMatcher<std::string>(std::string(prefix)));
      |                                                            ^~~~~~
      |                                                            profil
/usr/src/googletest/googlemock/include/gmock/gmock-matchers.h: At global scope:
/usr/src/googletest/googlemock/include/gmock/gmock-matchers.h:4340:21: error: ‘StringLike’ in namespace ‘testing::internal’ does not name a template type; did you mean ‘Strings’?
 4340 |     const internal::StringLike<T>& suffix) {
      |                     ^~~~~~~~~~
      |                     Strings
/usr/src/googletest/googlemock/include/gmock/gmock-matchers.h:4340:31: error: expected ‘,’ or ‘...’ before ‘<’ token
 4340 |     const internal::StringLike<T>& suffix) {
      |                               ^
/usr/src/googletest/googlemock/include/gmock/gmock-matchers.h: In function ‘testing::PolymorphicMatcher<testing::internal::EndsWithMatcher<std::__cxx11::basic_string<char> > > testing::EndsWith(int)’:
/usr/src/googletest/googlemock/include/gmock/gmock-matchers.h:4342:58: error: ‘suffix’ was not declared in this scope
 4342 |       internal::EndsWithMatcher<std::string>(std::string(suffix)));
      |                                                          ^~~~~~
/usr/src/googletest/googlemock/include/gmock/gmock-matchers.h: In member function ‘bool testing::internal::ExceptionMatcherImpl<Err>::MatchAndExplain(T&&, testing::MatchResultListener*) const’:
/usr/src/googletest/googlemock/include/gmock/gmock-matchers.h:5150:65: error: no matching function for call to ‘GetTypeName(const std::type_info&)’
 5150 |       *listener << "throws an exception of type " << GetTypeName(typeid(err));
      |                                                      ~~~~~~~~~~~^~~~~~~~~~~~~
In file included from /opt/ros/humble/src/gtest_vendor/include/gtest/internal/gtest-internal.h:67,
                 from /opt/ros/humble/src/gtest_vendor/include/gtest/gtest.h:62,
                 from /usr/src/googletest/googlemock/include/gmock/internal/gmock-internal-utils.h:47,
                 from /usr/src/googletest/googlemock/include/gmock/gmock-actions.h:145,
                 from /usr/src/googletest/googlemock/include/gmock/gmock.h:59,
                 from /home/wego/wego_ws/src/isaac_ros_dnn_inference/isaac_ros_tensor_rt/test/tensor_rt_node_test.cpp:18:
/opt/ros/humble/src/gtest_vendor/include/gtest/internal/gtest-type-util.h:80:13: note: candidate: ‘template<class T> std::string testing::internal::GetTypeName()’
   80 | std::string GetTypeName() {
      |             ^~~~~~~~~~~
/opt/ros/humble/src/gtest_vendor/include/gtest/internal/gtest-type-util.h:80:13: note:   template argument deduction/substitution failed:
In file included from /usr/src/googletest/googlemock/include/gmock/gmock-spec-builders.h:75,
                 from /usr/src/googletest/googlemock/include/gmock/gmock-function-mocker.h:42,
                 from /usr/src/googletest/googlemock/include/gmock/gmock.h:61,
                 from /home/wego/wego_ws/src/isaac_ros_dnn_inference/isaac_ros_tensor_rt/test/tensor_rt_node_test.cpp:18:
/usr/src/googletest/googlemock/include/gmock/gmock-matchers.h:5150:65: note:   candidate expects 0 arguments, 1 provided
 5150 |       *listener << "throws an exception of type " << GetTypeName(typeid(err));
      |                                                      ~~~~~~~~~~~^~~~~~~~~~~~~
In file included from /usr/src/googletest/googlemock/include/gmock/gmock.h:63,
                 from /home/wego/wego_ws/src/isaac_ros_dnn_inference/isaac_ros_tensor_rt/test/tensor_rt_node_test.cpp:18:
/usr/src/googletest/googlemock/include/gmock/gmock-more-actions.h: In member function ‘decltype (testing::internal::InvokeArgument(get<index>(std::forward_as_tuple((forward<Args>)(args)...)), (declval<const Params&>)()...)) testing::internal::InvokeArgumentAction<index, Params>::operator()(Args&& ...) const’:
/usr/src/googletest/googlemock/include/gmock/gmock-more-actions.h:519:47: error: ‘FlatTupleConstructTag’ was not declared in this scope
  519 |     internal::FlatTuple<Args&&...> args_tuple(FlatTupleConstructTag{},
      |                                               ^~~~~~~~~~~~~~~~~~~~~
/usr/src/googletest/googlemock/include/gmock/gmock-more-actions.h: In function ‘testing::internal::InvokeArgumentAction<index, typename std::decay<Params>::type ...> testing::InvokeArgument(Params&& ...)’:
/usr/src/googletest/googlemock/include/gmock/gmock-more-actions.h:564:17: error: ‘FlatTupleConstructTag’ is not a member of ‘testing::internal’
  564 |       internal::FlatTupleConstructTag{}, std::forward<Params>(params)...)};
      |                 ^~~~~~~~~~~~~~~~~~~~~
In file included from /opt/ros/humble/src/gtest_vendor/include/gtest/gtest.h:62,
                 from /usr/src/googletest/googlemock/include/gmock/internal/gmock-internal-utils.h:47,
                 from /usr/src/googletest/googlemock/include/gmock/gmock-actions.h:145,
                 from /usr/src/googletest/googlemock/include/gmock/gmock.h:59,
                 from /home/wego/wego_ws/src/isaac_ros_dnn_inference/isaac_ros_tensor_rt/test/tensor_rt_node_test.cpp:18:
/home/wego/wego_ws/src/isaac_ros_dnn_inference/isaac_ros_tensor_rt/test/tensor_rt_node_test.cpp: In member function ‘virtual void tensor_rt_node_test_test_engine_file_path_Test::TestBody()’:
/home/wego/wego_ws/src/isaac_ros_dnn_inference/isaac_ros_tensor_rt/test/tensor_rt_node_test.cpp:37:47: error: no matching function for call to ‘HasSubstr(const char [23])’
   37 |       EXPECT_THAT(e.what(), testing::HasSubstr("Empty engine_file_path"));
      |                             ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~
/home/wego/wego_ws/src/isaac_ros_dnn_inference/isaac_ros_tensor_rt/test/tensor_rt_node_test.cpp:37:7: note: in expansion of macro ‘EXPECT_THAT’
   37 |       EXPECT_THAT(e.what(), testing::HasSubstr("Empty engine_file_path"));
      |       ^~~~~~~~~~~
In file included from /usr/src/googletest/googlemock/include/gmock/gmock-spec-builders.h:75,
                 from /usr/src/googletest/googlemock/include/gmock/gmock-function-mocker.h:42,
                 from /usr/src/googletest/googlemock/include/gmock/gmock.h:61,
                 from /home/wego/wego_ws/src/isaac_ros_dnn_inference/isaac_ros_tensor_rt/test/tensor_rt_node_test.cpp:18:
/usr/src/googletest/googlemock/include/gmock/gmock-matchers.h:4323:62: note: candidate: ‘template<class T> testing::PolymorphicMatcher<testing::internal::HasSubstrMatcher<std::__cxx11::basic_string<char> > > testing::HasSubstr(int)’
 4323 | PolymorphicMatcher<internal::HasSubstrMatcher<std::string> > HasSubstr(
      |                                                              ^~~~~~~~~
/usr/src/googletest/googlemock/include/gmock/gmock-matchers.h:4323:62: note:   template argument deduction/substitution failed:
In file included from /opt/ros/humble/src/gtest_vendor/include/gtest/gtest.h:62,
                 from /usr/src/googletest/googlemock/include/gmock/internal/gmock-internal-utils.h:47,
                 from /usr/src/googletest/googlemock/include/gmock/gmock-actions.h:145,
                 from /usr/src/googletest/googlemock/include/gmock/gmock.h:59,
                 from /home/wego/wego_ws/src/isaac_ros_dnn_inference/isaac_ros_tensor_rt/test/tensor_rt_node_test.cpp:18:
/home/wego/wego_ws/src/isaac_ros_dnn_inference/isaac_ros_tensor_rt/test/tensor_rt_node_test.cpp:37:48: note:   cannot convert ‘"Empty engine_file_path"’ (type ‘const char [23]’) to type ‘int’
   37 |       EXPECT_THAT(e.what(), testing::HasSubstr("Empty engine_file_path"));
      |                                                ^~~~~~~~~~~~~~~~~~~~~~~~
/home/wego/wego_ws/src/isaac_ros_dnn_inference/isaac_ros_tensor_rt/test/tensor_rt_node_test.cpp:37:7: note: in expansion of macro ‘EXPECT_THAT’
   37 |       EXPECT_THAT(e.what(), testing::HasSubstr("Empty engine_file_path"));
      |       ^~~~~~~~~~~
In file included from /usr/src/googletest/googlemock/include/gmock/gmock-spec-builders.h:75,
                 from /usr/src/googletest/googlemock/include/gmock/gmock-function-mocker.h:42,
                 from /usr/src/googletest/googlemock/include/gmock/gmock.h:61,
                 from /home/wego/wego_ws/src/isaac_ros_dnn_inference/isaac_ros_tensor_rt/test/tensor_rt_node_test.cpp:18:
/usr/src/googletest/googlemock/include/gmock/gmock-matchers.h:4378:70: note: candidate: ‘testing::PolymorphicMatcher<testing::internal::HasSubstrMatcher<std::__cxx11::basic_string<wchar_t> > > testing::HasSubstr(const wstring&)’
 4378 | inline PolymorphicMatcher<internal::HasSubstrMatcher<std::wstring> > HasSubstr(
      |                                                                      ^~~~~~~~~
/usr/src/googletest/googlemock/include/gmock/gmock-matchers.h:4379:25: note:   no known conversion for argument 1 from ‘const char [23]’ to ‘const wstring&’ {aka ‘const std::__cxx11::basic_string<wchar_t>&’}
 4379 |     const std::wstring& substring) {
      |     ~~~~~~~~~~~~~~~~~~~~^~~~~~~~~
gmake[2]: *** [CMakeFiles/tensor_rt_node_test.dir/build.make:76: CMakeFiles/tensor_rt_node_test.dir/test/tensor_rt_node_test.cpp.o] Error 1
gmake[1]: *** [CMakeFiles/Makefile2:185: CMakeFiles/tensor_rt_node_test.dir/all] Error 2
gmake: *** [Makefile:146: all] Error 2
---
Failed   <<< isaac_ros_tensor_rt [15.2s, exited with code 2]
Aborted  <<< isaac_ros_dnn_image_encoder [1min 34s]     

szation avatar Oct 08 '24 07:10 szation

Hi,do you solved it? I met the same error.

liuchangji avatar Apr 08 '25 01:04 liuchangji

I have the same issue

HJGrant avatar Nov 19 '25 17:11 HJGrant