Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build Updates for Ubuntu24.04 #50

Merged
merged 6 commits into from
Nov 4, 2024

Conversation

nv-anants
Copy link
Contributor

No description provided.

Error -
```
/tmp/build/javacpp-presets/tritonserver/cppbuild/tritonbuild/developer_tools/server/include/triton/developer_tools/server_wrapper.h:413:58: error: redefinition of default argument for 'typename std::enable_if<(! std::is_same<typename std::iterator_traits< <template-parameter-1-1> >::value_type, std::__cxx11::basic_string<char> >::value)>::type* <anonymous>'
  413 |                            std::string>::value>::type* = nullptr>
      |                                                          ^~~~~~~
/tmp/build/javacpp-presets/tritonserver/cppbuild/tritonbuild/developer_tools/server/include/triton/developer_tools/server_wrapper.h:316:41: note: original definition appeared here
  316 |           std::string>::value>::type* = nullptr>
      |                                         ^~~~~~~
make[2]: *** [CMakeFiles/triton-developer_tools-server.dir/build.make:76: CMakeFiles/triton-developer_tools-server.dir/src/server_wrapper.cc.o] Error 1
```
@@ -410,7 +410,7 @@ InferRequest::AddInput(
template <
typename Iterator, typename std::enable_if<!std::is_same<
typename std::iterator_traits<Iterator>::value_type,
std::string>::value>::type* = nullptr>
std::string>::value>::type*>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you please clarify why default value to the pointer changed?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yeah, there was an error due to default arg being redefined in declaration

/opt/tritonserver/developer_tools/server/include/triton/developer_tools/server_wrapper.h:384:58: error: redefinition of default argument for 'typename std::enable_if<std::is_same<typename std::iterator_traits< <template-parameter-1-1> >::value_type, std::__cxx11::basic_string<char> >::value>::type* <anonymous>'
  384 |                            std::string>::value>::type* = nullptr>
      |                                                          ^~~~~~~
/opt/tritonserver/developer_tools/server/include/triton/developer_tools/server_wrapper.h:293:41: note: original definition appeared here
  293 |           std::string>::value>::type* = nullptr>
      |                                         ^~~~~~~
/opt/tritonserver/developer_tools/server/include/triton/developer_tools/server_wrapper.h:413:58: error: redefinition of default argument for 'typename std::enable_if<(! std::is_same<typename std::iterator_traits< <template-parameter-1-1> >::value_type, std::__cxx11::basic_string<char> >::value)>::type* <anonymous>'
  413 |                            std::string>::value>::type* = nullptr>
      |                                                          ^~~~~~~
/opt/tritonserver/developer_tools/server/include/triton/developer_tools/server_wrapper.h:316:41: note: original definition appeared here
  316 |           std::string>::value>::type* = nullptr>
      |    

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I see that default arg was given to iterator, it means that it expect that that value will be nullptr by default.
As I see there is an * symbol which may correspond to the pointer. Pointer in C++ must be initialized.

@mc-nv mc-nv merged commit d7cbd22 into mchornyi/24.11/before-code-freeze Nov 4, 2024
1 of 3 checks passed
mc-nv added a commit that referenced this pull request Nov 12, 2024
* Build Updates for Ubuntu24.04 (#50)

* update cmake version for u24

* temp: override client repo tag

* remove werror

* fix0 - redefinition error

Error -
```
/tmp/build/javacpp-presets/tritonserver/cppbuild/tritonbuild/developer_tools/server/include/triton/developer_tools/server_wrapper.h:413:58: error: redefinition of default argument for 'typename std::enable_if<(! std::is_same<typename std::iterator_traits< <template-parameter-1-1> >::value_type, std::__cxx11::basic_string<char> >::value)>::type* <anonymous>'
  413 |                            std::string>::value>::type* = nullptr>
      |                                                          ^~~~~~~
/tmp/build/javacpp-presets/tritonserver/cppbuild/tritonbuild/developer_tools/server/include/triton/developer_tools/server_wrapper.h:316:41: note: original definition appeared here
  316 |           std::string>::value>::type* = nullptr>
      |                                         ^~~~~~~
make[2]: *** [CMakeFiles/triton-developer_tools-server.dir/build.make:76: CMakeFiles/triton-developer_tools-server.dir/src/server_wrapper.cc.o] Error 1
```

* fix1 - redefinition error

* Revert "temp: override client repo tag"

This reverts commit 9f8ea3d.

* Update server/install_dependencies_and_build.sh

---------

Co-authored-by: Anant Sharma <[email protected]>
mc-nv added a commit that referenced this pull request Nov 22, 2024
* Build Updates for Ubuntu24.04 (#50)

* update cmake version for u24

* temp: override client repo tag

* remove werror

* fix0 - redefinition error

Error -
```
/tmp/build/javacpp-presets/tritonserver/cppbuild/tritonbuild/developer_tools/server/include/triton/developer_tools/server_wrapper.h:413:58: error: redefinition of default argument for 'typename std::enable_if<(! std::is_same<typename std::iterator_traits< <template-parameter-1-1> >::value_type, std::__cxx11::basic_string<char> >::value)>::type* <anonymous>'
  413 |                            std::string>::value>::type* = nullptr>
      |                                                          ^~~~~~~
/tmp/build/javacpp-presets/tritonserver/cppbuild/tritonbuild/developer_tools/server/include/triton/developer_tools/server_wrapper.h:316:41: note: original definition appeared here
  316 |           std::string>::value>::type* = nullptr>
      |                                         ^~~~~~~
make[2]: *** [CMakeFiles/triton-developer_tools-server.dir/build.make:76: CMakeFiles/triton-developer_tools-server.dir/src/server_wrapper.cc.o] Error 1
```

* fix1 - redefinition error

* Revert "temp: override client repo tag"

This reverts commit 9f8ea3d.

* Update server/install_dependencies_and_build.sh

---------

Co-authored-by: Anant Sharma <[email protected]>
mc-nv added a commit that referenced this pull request Nov 26, 2024
* Build Updates for Ubuntu24.04 (#50)

* update cmake version for u24

* temp: override client repo tag

* remove werror

* fix0 - redefinition error

Error -
```
/tmp/build/javacpp-presets/tritonserver/cppbuild/tritonbuild/developer_tools/server/include/triton/developer_tools/server_wrapper.h:413:58: error: redefinition of default argument for 'typename std::enable_if<(! std::is_same<typename std::iterator_traits< <template-parameter-1-1> >::value_type, std::__cxx11::basic_string<char> >::value)>::type* <anonymous>'
  413 |                            std::string>::value>::type* = nullptr>
      |                                                          ^~~~~~~
/tmp/build/javacpp-presets/tritonserver/cppbuild/tritonbuild/developer_tools/server/include/triton/developer_tools/server_wrapper.h:316:41: note: original definition appeared here
  316 |           std::string>::value>::type* = nullptr>
      |                                         ^~~~~~~
make[2]: *** [CMakeFiles/triton-developer_tools-server.dir/build.make:76: CMakeFiles/triton-developer_tools-server.dir/src/server_wrapper.cc.o] Error 1
```

* fix1 - redefinition error

* Revert "temp: override client repo tag"

This reverts commit 9f8ea3d.

* Update server/install_dependencies_and_build.sh

---------

Co-authored-by: Anant Sharma <[email protected]>
pvijayakrish pushed a commit that referenced this pull request Jan 10, 2025
* Build Updates for Ubuntu24.04 (#50)

* update cmake version for u24

* temp: override client repo tag

* remove werror

* fix0 - redefinition error

Error -
```
/tmp/build/javacpp-presets/tritonserver/cppbuild/tritonbuild/developer_tools/server/include/triton/developer_tools/server_wrapper.h:413:58: error: redefinition of default argument for 'typename std::enable_if<(! std::is_same<typename std::iterator_traits< <template-parameter-1-1> >::value_type, std::__cxx11::basic_string<char> >::value)>::type* <anonymous>'
  413 |                            std::string>::value>::type* = nullptr>
      |                                                          ^~~~~~~
/tmp/build/javacpp-presets/tritonserver/cppbuild/tritonbuild/developer_tools/server/include/triton/developer_tools/server_wrapper.h:316:41: note: original definition appeared here
  316 |           std::string>::value>::type* = nullptr>
      |                                         ^~~~~~~
make[2]: *** [CMakeFiles/triton-developer_tools-server.dir/build.make:76: CMakeFiles/triton-developer_tools-server.dir/src/server_wrapper.cc.o] Error 1
```

* fix1 - redefinition error

* Revert "temp: override client repo tag"

This reverts commit 9f8ea3d.

* Update server/install_dependencies_and_build.sh

---------

Co-authored-by: Anant Sharma <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants