Description
Hi, I am trying to build the tritonserver from source, without container. I am encountering some issues in protobuf and aws curl issues.
Environment
gcc/10.3.0, cmake/3.22.2, cuda/11.6, cudnn/8.5
git clone [tritonserver](https://github.com/triton-inference-server/server.git) -b r22.02
Steps To Reproduce
git clone [tritonserver](https://github.com/triton-inference-server/server.git) -b r22.02
./build.py -v --no-container-build --build-dir=`pwd` /build --enable-all --override-core-cmake-arg BUILD_DEPS=ON
** Protobuf issue**
g++: error: /home/yao.877/parallel_inference/triton/custom/server/build/tritonserver/build/_deps/repo-third-party-build/grpc/src/grpc-build/gens/src/proto/grpc/channelz/channelz.grpc.pb.cc: No such file or directory
g++: fatal error: no input files
compilation terminated.
make[5]: *** [CMakeFiles/grpcpp_channelz.dir/build.make:109: CMakeFiles/grpcpp_channelz.dir/gens/src/proto/grpc/channelz/channelz.grpc.pb.cc.o] Error 1
make[5]: *** Waiting for unfinished jobs....
[100%] Building CXX object CMakeFiles/grpcpp_channelz.dir/gens/src/proto/grpc/channelz/channelz.pb.cc.o
/opt/gcc/10.3.0/bin/g++ -I/home/yao.877/parallel_inference/triton/custom/server/build/tritonserver/build/_deps/repo-third-party-build/grpc-repo/src/grpc/third_party/re2 -I/home/yao.877/parallel_inference/triton/custom/server/build/tritonserver/build/_deps/repo-third-party-build/grpc-repo/src/grpc/include -I/home/yao.877/parallel_inference/triton/custom/server/build/tritonserver/build/_deps/repo-third-party-build/grpc-repo/src/grpc -I/home/yao.877/parallel_inference/triton/custom/server/build/tritonserver/build/_deps/repo-third-party-build/grpc-repo/src/grpc/third_party/address_sorting/include -I/home/yao.877/parallel_inference/triton/custom/server/build/tritonserver/build/_deps/repo-third-party-build/grpc/src/grpc-build/third_party/re2 -I/home/yao.877/parallel_inference/triton/custom/server/build/tritonserver/build/_deps/repo-third-party-build/grpc-repo/src/grpc/src/core/ext/upb-generated -I/home/yao.877/parallel_inference/triton/custom/server/build/tritonserver/build/_deps/repo-third-party-build/grpc-repo/src/grpc/src/core/ext/upbdefs-generated -I/home/yao.877/parallel_inference/triton/custom/server/build/tritonserver/build/_deps/repo-third-party-build/grpc-repo/src/grpc/third_party/upb -I/home/yao.877/parallel_inference/triton/custom/server/build/tritonserver/build/_deps/repo-third-party-build/grpc-repo/src/grpc/third_party/xxhash -I/home/yao.877/parallel_inference/triton/custom/server/build/tritonserver/build/_deps/repo-third-party-build/grpc/src/grpc-build/gens -I/home/yao.877/parallel_inference/triton/custom/server/build/tritonserver/build/_deps/repo-third-party-build/grpc-repo/src/grpc/third_party/abseil-cpp -isystem /home/yao.877/miniconda3/envs/parallel_inference/include -isystem /home/yao.877/parallel_inference/triton/custom/server/build/tritonserver/build/third-party/protobuf/include -O3 -DNDEBUG -fPIC -pthread -std=c++14 -MD -MT CMakeFiles/grpcpp_channelz.dir/gens/src/proto/grpc/channelz/channelz.pb.cc.o -MF CMakeFiles/grpcpp_channelz.dir/gens/src/proto/grpc/channelz/channelz.pb.cc.o.d -o CMakeFiles/grpcpp_channelz.dir/gens/src/proto/grpc/channelz/channelz.pb.cc.o -c /home/yao.877/parallel_inference/triton/custom/server/build/tritonserver/build/_deps/repo-third-party-build/grpc/src/grpc-build/gens/src/proto/grpc/channelz/channelz.pb.cc
In file included from /home/yao.877/parallel_inference/triton/custom/server/build/tritonserver/build/_deps/repo-third-party-build/grpc/src/grpc-build/gens/src/proto/grpc/reflection/v1alpha/reflection.pb.cc:4:
/home/yao.877/parallel_inference/triton/custom/server/build/tritonserver/build/_deps/repo-third-party-build/grpc/src/grpc-build/gens/src/proto/grpc/reflection/v1alpha/reflection.pb.h:17:2: error: #error This file was generated by an older version of protoc which is
17 | #error This file was generated by an older version of protoc which is
| ^~~~~
/home/yao.877/parallel_inference/triton/custom/server/build/tritonserver/build/_deps/repo-third-party-build/grpc/src/grpc-build/gens/src/proto/grpc/reflection/v1alpha/reflection.pb.h:18:2: error: #error incompatible with your Protocol Buffer headers. Please
18 | #error incompatible with your Protocol Buffer headers. Please
| ^~~~~
/home/yao.877/parallel_inference/triton/custom/server/build/tritonserver/build/_deps/repo-third-party-build/grpc/src/grpc-build/gens/src/proto/grpc/reflection/v1alpha/reflection.pb.h:19:2: error: #error regenerate this file with a newer version of protoc.
19 | #error regenerate this file with a newer version of protoc.
| ^~~~~
[100%] Linking CXX static library libgrpc++_error_details.a
/opt/cmake/3.22.2/bin/cmake -P CMakeFiles/grpc++_error_details.dir/cmake_clean_target.cmake
/opt/cmake/3.22.2/bin/cmake -E cmake_link_script CMakeFiles/grpc++_error_details.dir/link.txt --verbose=1
In file included from /home/yao.877/parallel_inference/triton/custom/server/build/tritonserver/build/_deps/repo-third-party-build/grpc/src/grpc-build/gens/src/proto/grpc/channelz/channelz.pb.cc:4:
/home/yao.877/parallel_inference/triton/custom/server/build/tritonserver/build/_deps/repo-third-party-build/grpc/src/grpc-build/gens/src/proto/grpc/channelz/channelz.pb.h:17:2: error: #error This file was generated by an older version of protoc which is
17 | #error This file was generated by an older version of protoc which is
| ^~~~~
/home/yao.877/parallel_inference/triton/custom/server/build/tritonserver/build/_deps/repo-third-party-build/grpc/src/grpc-build/gens/src/proto/grpc/channelz/channelz.pb.h:18:2: error: #error incompatible with your Protocol Buffer headers. Please
18 | #error incompatible with your Protocol Buffer headers. Please
| ^~~~~
/home/yao.877/parallel_inference/triton/custom/server/build/tritonserver/build/_deps/repo-third-party-build/grpc/src/grpc-build/gens/src/proto/grpc/channelz/channelz.pb.h:19:2: error: #error regenerate this file with a newer version of protoc.
19 | #error regenerate this file with a newer version of protoc.
| ^~~~~
/usr/bin/ar qc libgrpc++_error_details.a CMakeFiles/grpc++_error_details.dir/src/cpp/util/error_details.cc.o
/usr/bin/ranlib libgrpc++_error_details.a
make[5]: Leaving directory '/home/yao.877/parallel_inference/triton/custom/server/build/tritonserver/build/_deps/repo-third-party-build/grpc/src/grpc-build'
[100%] Built target grpc++_error_details
In file included from /home/yao.877/parallel_inference/triton/custom/server/build/tritonserver/build/_deps/repo-third-party-build/grpc-repo/src/grpc/src/cpp/server/channelz/channelz_service_plugin.cc:30:
/home/yao.877/parallel_inference/triton/custom/server/build/tritonserver/build/_deps/repo-third-party-build/grpc-repo/src/grpc/src/cpp/server/channelz/channelz_service.h:27:10: fatal error: src/proto/grpc/channelz/channelz.grpc.pb.h: No such file or directory
27 | #include "src/proto/grpc/channelz/channelz.grpc.pb.h"
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
make[5]: *** [CMakeFiles/grpcpp_channelz.dir/build.make:137: CMakeFiles/grpcpp_channelz.dir/src/cpp/server/channelz/channelz_service_plugin.cc.o] Error 1
In file included from /home/yao.877/parallel_inference/triton/custom/server/build/tritonserver/build/_deps/repo-third-party-build/grpc-repo/src/grpc/src/cpp/server/channelz/channelz_service.cc:21:
/home/yao.877/parallel_inference/triton/custom/server/build/tritonserver/build/_deps/repo-third-party-build/grpc-repo/src/grpc/src/cpp/server/channelz/channelz_service.h:27:10: fatal error: src/proto/grpc/channelz/channelz.grpc.pb.h: No such file or directory
27 | #include "src/proto/grpc/channelz/channelz.grpc.pb.h"
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
make[5]: *** [CMakeFiles/grpcpp_channelz.dir/build.make:123: CMakeFiles/grpcpp_channelz.dir/src/cpp/server/channelz/channelz_service.cc.o] Error 1
In file included from /home/yao.877/parallel_inference/triton/custom/server/build/tritonserver/build/_deps/repo-third-party-build/grpc-repo/src/grpc/src/cpp/ext/proto_server_reflection_plugin.cc:24:
/home/yao.877/parallel_inference/triton/custom/server/build/tritonserver/build/_deps/repo-third-party-build/grpc-repo/src/grpc/src/cpp/ext/proto_server_reflection.h:32:10: fatal error: src/proto/grpc/reflection/v1alpha/reflection.grpc.pb.h: No such file or directory
32 | #include "src/proto/grpc/reflection/v1alpha/reflection.grpc.pb.h"
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
make[5]: *** [CMakeFiles/grpc++_reflection.dir/build.make:137: CMakeFiles/grpc++_reflection.dir/src/cpp/ext/proto_server_reflection_plugin.cc.o] Error 1
In file included from /home/yao.877/parallel_inference/triton/custom/server/build/tritonserver/build/_deps/repo-third-party-build/grpc-repo/src/grpc/src/cpp/ext/proto_server_reflection.cc:19:
/home/yao.877/parallel_inference/triton/custom/server/build/tritonserver/build/_deps/repo-third-party-build/grpc-repo/src/grpc/src/cpp/ext/proto_server_reflection.h:32:10: fatal error: src/proto/grpc/reflection/v1alpha/reflection.grpc.pb.h: No such file or directory
32 | #include "src/proto/grpc/reflection/v1alpha/reflection.grpc.pb.h"
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
make[5]: *** [CMakeFiles/grpc++_reflection.dir/build.make:123: CMakeFiles/grpc++_reflection.dir/src/cpp/ext/proto_server_reflection.cc.o] Error 1
In file included from /home/yao.877/parallel_inference/triton/custom/server/build/tritonserver/build/_deps/repo-third-party-build/grpc/src/grpc-build/gens/src/proto/grpc/channelz/channelz.pb.h:26,
from /home/yao.877/parallel_inference/triton/custom/server/build/tritonserver/build/_deps/repo-third-party-build/grpc/src/grpc-build/gens/src/proto/grpc/channelz/channelz.pb.cc:4:
/home/yao.877/parallel_inference/triton/custom/server/build/tritonserver/build/third-party/protobuf/include/google/protobuf/generated_message_table_driven.h:299:25: error: ‘MapEntryHelper’ does not name a type; did you mean ‘MapEntryLite’?
299 | bool operator()(const MapEntryHelper<T>& a,
| ^~~~~~~~~~~~~~
| MapEntryLite
/home/yao.877/parallel_inference/triton/custom/server/build/tritonserver/build/third-party/protobuf/include/google/protobuf/generated_message_table_driven.h:299:39: error: expected ‘,’ or ‘...’ before ‘<’ token
299 | bool operator()(const MapEntryHelper<T>& a,
| ^
** aws curl issue**
/home/yao.877/parallel_inference/triton/custom/server/build/tritonserver/build/_deps/repo-third-party-build/aws-sdk-cpp/src/aws-sdk-cpp/aws-cpp-sdk-core/source/http/curl/CurlHttpClient.cpp:361:49: error: ‘CURLOPT_PUT’ is deprecated: since 7.12.1. Use CURLOPT_UPLOAD [-Werror=deprecated-declarations]
361 | curl_easy_setopt(requestHandle, CURLOPT_PUT, 1L);
| ^~~~~~~~~~~
/home/yao.877/miniconda3/envs/parallel_inference/include/curl/curl.h:3201:68: note: in definition of macro ‘curl_easy_setopt’
3201 | #define curl_easy_setopt(handle,opt,param) curl_easy_setopt(handle,opt,param)
| ^~~
In file included from /home/yao.877/parallel_inference/triton/custom/server/build/tritonserver/build/_deps/repo-third-party-build/aws-sdk-cpp/src/aws-sdk-cpp/aws-cpp-sdk-core/include/aws/core/http/curl/CurlHandleContainer.h:11,
from /home/yao.877/parallel_inference/triton/custom/server/build/tritonserver/build/_deps/repo-third-party-build/aws-sdk-cpp/src/aws-sdk-cpp/aws-cpp-sdk-core/include/aws/core/http/curl/CurlHttpClient.h:11,
from /home/yao.877/parallel_inference/triton/custom/server/build/tritonserver/build/_deps/repo-third-party-build/aws-sdk-cpp/src/aws-sdk-cpp/aws-cpp-sdk-core/source/http/curl/CurlHttpClient.cpp:6:
/home/yao.877/miniconda3/envs/parallel_inference/include/curl/curl.h:1286:21: note: declared here
1286 | CURLOPTDEPRECATED(CURLOPT_PUT, CURLOPTTYPE_LONG, 54,
| ^~~~~~~~~~~
/home/yao.877/miniconda3/envs/parallel_inference/include/curl/curl.h:1081:40: note: in definition of macro ‘CURLOPTDEPRECATED’
1081 | #define CURLOPTDEPRECATED(na,t,nu,v,m) na CURL_DEPRECATED(v,m) = t + nu
| ^~
cc1plus: all warnings being treated as errors
make[5]: *** [aws-cpp-sdk-core/CMakeFiles/aws-cpp-sdk-core.dir/build.make:212: aws-cpp-sdk-core/CMakeFiles/aws-cpp-sdk-core.dir/source/http/curl/CurlHttpClient.cpp.o] Error 1
make[5]: *** Waiting for unfinished jobs....
make[5]: Leaving directory '/home/yao.877/parallel_inference/triton/custom/server/build/tritonserver/build/_deps/repo-third-party-build/aws-sdk-cpp/src/aws-sdk-cpp-build'
make[4]: *** [CMakeFiles/Makefile2:169: aws-cpp-sdk-core/CMakeFiles/aws-cpp-sdk-core.dir/all] Error 2
make[4]: Leaving directory '/home/yao.877/parallel_inference/triton/custom/server/build/tritonserver/build/_deps/repo-third-party-build/aws-sdk-cpp/src/aws-sdk-cpp-build'
make[3]: *** [Makefile:136: all] Error 2
make[3]: Leaving directory '/home/yao.877/parallel_inference/triton/custom/server/build/tritonserver/build/_deps/repo-third-party-build/aws-sdk-cpp/src/aws-sdk-cpp-build'
make[2]: *** [_deps/repo-third-party-build/CMakeFiles/aws-sdk-cpp.dir/build.make:86: _deps/repo-third-party-build/aws-sdk-cpp/src/aws-sdk-cpp-stamp/aws-sdk-cpp-build] Error 2
make[2]: Leaving directory '/home/yao.877/parallel_inference/triton/custom/server/build/tritonserver/build'
make[1]: *** [CMakeFiles/Makefile2:567: _deps/repo-third-party-build/CMakeFiles/aws-sdk-cpp.dir/all] Error 2
make[1]: Leaving directory '/home/yao.877/parallel_inference/triton/custom/server/build/tritonserver/build'
make: *** [Makefile:136: all] Error 2
I’m wondering how to solve this. Thanks.