-
Notifications
You must be signed in to change notification settings - Fork 10
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
Build Updates for Ubuntu24.04 #50
Conversation
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 ```
This reverts commit 9f8ea3d.
@@ -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*> |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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>
|
There was a problem hiding this comment.
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.
* 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]>
* 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]>
* 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]>
* 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]>
No description provided.