Skip to content

autoware_tensorrt_classifier CMake Error in generating files. #10880

@cjmodi306

Description

@cjmodi306

Checklist

  • I've read the contribution guidelines.
  • I've searched other issues and no duplicate issues were found.
  • I'm convinced that this is not my fault but a bug.

Description

After running colcon build, I am getting the following error:

/usr/include/c++/9/bits/std_function.h(648): error: argument list for class template "std::function" is missing
      function(_Functor) -> function<_Signature>;
      ^

/usr/include/c++/9/bits/std_function.h(648): error: template parameter "_Functor" may not be redeclared in this scope
      function(_Functor) -> function<_Signature>;
               ^

/usr/include/c++/9/bits/std_function.h(648): error: expected a ";"
      function(_Functor) -> function<_Signature>;
                         ^

/usr/include/c++/9/optional(1230): error: argument list for class template "std::optional" is missing
    template <typename _Tp> optional(_Tp) -> optional<_Tp>;
                            ^

/usr/include/c++/9/optional(1230): error: too few template parameters -- does not match previous declaration (declared at line 243 of /usr/include/c++/9/array)
    template <typename _Tp> optional(_Tp) -> optional<_Tp>;
                       ^

/usr/include/c++/9/optional(1230): error: expected a ";"
    template <typename _Tp> optional(_Tp) -> optional<_Tp>;
                                          ^

/usr/include/c++/9/bits/unordered_map.h(1152): error: argument list for class template "std::unordered_map" is missing
      unordered_map(_InputIterator, _InputIterator,
      ^

/usr/include/c++/9/bits/unordered_map.h(1152): error: expected a ")"
      unordered_map(_InputIterator, _InputIterator,
                                  ^

/usr/include/c++/9/bits/unordered_map.h(1152): error: template parameter "_InputIterator" may not be redeclared in this scope
      unordered_map(_InputIterator, _InputIterator,
                    ^

/usr/include/c++/9/bits/unordered_map.h(1153): error: expected a ";"
      typename unordered_map<int, int>::size_type = {},
                                                      ^

/usr/include/c++/9/bits/unordered_map.h(1165): error: argument list for class template "std::unordered_map" is missing
      unordered_map(initializer_list<pair<_Key, _Tp>>,
      ^

Error limit reached.
100 errors detected in the compilation of "/home/fgvt/connRAD/autoware/src/universe/autoware_universe/perception/autoware_tensorrt_classifier/src/preprocess.cu".
Compilation terminated.
CMake Error at autoware_tensorrt_classifier_gpu_preprocess_generated_preprocess.cu.o.cmake:280 (message):
  Error generating file
  /home/fgvt/connRAD/autoware/build/autoware_tensorrt_classifier/CMakeFiles/autoware_tensorrt_classifier_gpu_preprocess.dir/src/./autoware_tensorrt_classifier_gpu_preprocess_generated_preprocess.cu.o


gmake[2]: *** [CMakeFiles/autoware_tensorrt_classifier_gpu_preprocess.dir/build.make:375: CMakeFiles/autoware_tensorrt_classifier_gpu_preprocess.dir/src/autoware_tensorrt_classifier_gpu_preprocess_generated_preprocess.cu.o] Error 1
gmake[1]: *** [CMakeFiles/Makefile2:164: CMakeFiles/autoware_tensorrt_classifier_gpu_preprocess.dir/all] Error 2
gmake: *** [Makefile:146: all] Error 2

Failed   <<< autoware_tensorrt_classifier [2.21s, exited with code 2]

If it helps in anyway, here is some further info:

  • nvcc:
nvcc: NVIDIA (R) Cuda compiler driver
Copyright (c) 2005-2025 NVIDIA Corporation
Built on Tue_May_27_02:21:03_PDT_2025
Cuda compilation tools, release 12.9, V12.9.86
Build cuda_12.9.r12.9/compiler.36037853_0
  • g++:
g++ (Ubuntu 12.3.0-1ubuntu1~22.04) 12.3.0
Copyright (C) 2022 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

Expected behavior

Should successfully compile.

Actual behavior

See above.

Steps to reproduce

colcon build --packages-select autoware_tensorrt_classifier

Versions

  • OS: Ubuntu 22.04
  • ROS2: Humble

Possible causes

No response

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Status

    To Triage

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions