client fails to compile
See original GitHub issueI get the following when attempting to compile the client c++ version on a fresh install of ubuntu.
I downloaded https://github.com/triton-inference-server/client/archive/refs/heads/main.zip, unzipped, cd’d into that folder, then:
mkdir build
cd build
cmake -DCMAKE_INSTALL_PREFIX=pwd
/install -DTRITON_ENABLE_CC_HTTP=ON -DTRITON_ENABLE_CC_GRPC=ON -DTRITON_ENABLE_GPU=ON -DTRITON_ENABLE_EXAMPLES=ON -DTRITON_ENABLE_TESTS=ON …
make
This failed several times and I was able to determine what “apt install xxx” it needed and rerun “make”. Finally it results in the following.
I assume this is some mixed up C++11 vs C++17 setting, but I have no clue how it might be fixed.
[ 42%] Building CXX object examples/CMakeFiles/image_client.dir/image_client.cc.o
[ 43%] Linking CXX executable image_client
/usr/bin/ld: /home/jtaves/client-main/build/third-party/grpc/lib/libgrpc.a(client_channel.cc.o): in function grpc_core::ClientChannel::LoadBalancedCall::Orphan()': client_channel.cc:(.text+0x5955): undefined reference to
absl::lts_20220623::CancelledError(absl::lts_20220623::string_view)’
/usr/bin/ld: /home/jtaves/client-main/build/third-party/grpc/lib/libgrpc.a(client_channel.cc.o): in function grpc_core::ClientChannel::LoadBalancedCall::RecvTrailingMetadataReady(void*, absl::lts_20220623::Status)': client_channel.cc:(.text+0x5a80): undefined reference to
absl::lts_20220623::Status::Status(absl::lts_20220623::StatusCode, absl::lts_20220623::string_view)’
/usr/bin/ld: client_channel.cc:(.text+0x5bf3): undefined reference to absl::lts_20220623::Status::Status(absl::lts_20220623::StatusCode, absl::lts_20220623::string_view)' /usr/bin/ld: /home/jtaves/client-main/build/third-party/grpc/lib/libgrpc.a(client_channel.cc.o): in function
grpc_core::ClientChannel::LoadBalancedCall::Metadata::Add(absl::lts_20220623::string_view, absl::lts_20220623::string_view)::{lambda(absl::lts_20220623::string_view, grpc_core::Slice const&)#1}::operator()(absl::lts_20220623::string_view, grpc_core::Slice const&) const [clone .isra.0]‘:
client_channel.cc:(.text.ZZN9grpc_core13ClientChannel16LoadBalancedCall8Metadata3AddEN4absl12lts_2022062311string_viewES5_ENKUlS5_RKNS_5SliceEE_clES5_S8.isra.0[_ZN4absl12lts_2022062319functional_internal12InvokeObjectIZN9grpc_core13ClientChannel16LoadBalancedCall8Metadata3AddENS0_11string_viewES7_EUlS7_RKNS3_5SliceEE_vJS7_SA_EEET0_NS1_7VoidPtrEDpNS1_8ForwardTIT1_E4typeE]+0x80): undefined reference to `absl::lts_20220623::strings_internal::CatPiecesabi:cxx11’
Issue Analytics
- State:
- Created 10 months ago
- Comments:10 (5 by maintainers)
Top GitHub Comments
the “sdk” package should only include the source code of the Triton clients (including perf analyzer which you can exclude from build).
You don’t have to use the Triton client, it is an out-of-box client to interact with Triton server via HTTP/GRPC, you can implement your own client following the Triton server protocols, the extensions are optional for client and the predict protocol is what should be implemented to perform inference.
Closing issue due to inactivity. If you would like to reopen this ticket for follow-up, please let us know.