triton-inference-server / server

The Triton Inference Server provides an optimized cloud and edge inferencing solution.
https://docs.nvidia.com/deeplearning/triton-inference-server/user-guide/docs/index.html
BSD 3-Clause "New" or "Revised" License
8.39k stars 1.49k forks source link

error: size of array ‘input_data_string_’ is not an integral constant-expression #7573

Open Dagoli opened 3 months ago

Dagoli commented 3 months ago

Description When i compile the r24.07,i met this error:

[ 87%] Built target metrics_api_test In file included from /opt/triton-server/server-new/server/build/tritonserver/build/_deps/repo-core-src/src/filesystem/implementations/common.h:35, from /opt/triton-server/server-new/server/build/tritonserver/build/_deps/repo-core-src/src/filesystem/api.cc:29: /opt/triton-server/server-new/server/build/tritonserver/build/_deps/repo-core-build/triton-core/_deps/repo-common-src/src/../include/triton/common/logging.h:64:3: warning: inline variables are only available with ‘-std=c++17’ or ‘-std=gnu++17’ 64 | inline static const std::array<const char*, static_cast<uint8_t>(Level::kEND)> | ^~~~~~ In file included from /opt/triton-server/server-new/server/build/tritonserver/build/_deps/repo-core-src/src/filesystem/implementations/common.h:35, from /opt/triton-server/server-new/server/build/tritonserver/build/_deps/repo-core-src/src/filesystem/api.cc:29: /opt/triton-server/server-new/server/build/tritonserver/build/_deps/repo-core-build/triton-core/_deps/repo-common-src/src/../include/triton/common/logging.h:150:3: warning: inline variables are only available with ‘-std=c++17’ or ‘-std=gnu++17’ 150 | inline static const char* ESCAPE_ENVIRONMENT_VARIABLE = | ^~~~~~ /opt/triton-server/server-new/server/build/tritonserver/build/_deps/repo-core-src/src/test/input_byte_size_test.cc:257:29: error: size of array ‘input_data_string_’ is not an integral constant-expression 257 | [kElementSizeIndicator_ + std::strlen(input_element_)] = {}; | ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ gmake[5]: *** [test/CMakeFiles/input_byte_size_test.dir/input_byte_size_test.cc.o] Error 1 gmake[5]: Leaving directory/opt/triton-server/server-new/server/build/tritonserver/build/_deps/repo-core-build/triton-core' gmake[4]: [test/CMakeFiles/input_byte_size_test.dir/all] Error 2 gmake[4]: Waiting for unfinished jobs.... [ 95%] Linking CXX executable test-msgpack `

Triton Information r24.07

Are you using the Triton container or did you build it yourself? build it by source

To Reproduce Steps to reproduce the behavior.

Describe the models (framework, inputs, outputs), ideally include the model configuration file (if using an ensemble include the model configuration file for that as well).

Expected behavior A clear and concise description of what you expected to happen.