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.14k stars 1.46k forks source link

Linking failure of the cilent compilation #6659

Open lantudou opened 10 months ago

lantudou commented 10 months ago

Description After compiling the triton server using installed libraries in vcpkg , these compiled libraries will cause symbol conflicts and result in the linking failure of the client compilation. This libraries include protobuf and abseil.

Triton Information Triton_server 2.39 above triton_client master Without docker building in windows 10 X64.

lantudou commented 10 months ago

By the way, I think the C++client should be a part of the server, just like the backend, using the cmake option to choose whether to enable compilation or not

fpetrini15 commented 10 months ago

Hello @lantudou, thank you for submitting an issue. Can you please share more details such as compilation steps and the resulting error?

lantudou commented 10 months ago
cmake -DVCPKG_TARGET_TRIPLET=x64-windows -DCMAKE_TOOLCHAIN_FILE='D:/vcpkg/scripts/buildsystems/vcpkg.cmake' -DCMAKE_INSTALL_PREFIX=install -DTRITON_ENABLE_CC_GRPC=ON -DTRITON_ENABLE_PYTHON_GRPC=ON -DTRITON_ENABLE_GPU=OFF -DTRITON_ENABLE_EXAMPLES=ON -DTRITON_ENABLE_TESTS=ON DTRITON_ENABLE_ZLIB=OFF 
msbuild.exe cc-clients.vcxproj -p:Configuration=Debug

here is the linking error because of protobuf in vcpkg, because installing openvino in vcpkg needs protobuf as a dependency. the similar thing is true for absl. After removing these libraries, everything is ok for me.

`
 cpp_plugin.obj : error LNK2019: 无法解析的外部符号 "__declspec(dllimport) int __cdecl google::protobuf::compiler::PluginMain(int,char * * const,class google::protobuf::compiler::CodeGenerator const *)" (__imp_?PluginMain@compiler@protobuf@google@@YAHHQEAPEADPEBVCodeGenerator@123@@Z),函数 "int __cdecl grpc::protobuf::compiler::PluginMain(int,char * * const,class google::protobuf::compiler::CodeGenerator const *)" (?PluginMain@compiler@protobuf@grpc@@YAHHQEAPEADPEBVCodeGenerator@12google@@@Z) 中引用了该符号 [D:\client\build\_deps\repo-third-party-build\grpc\src\grpc-build\grpc_cpp_plugin.vcxproj] [D:\client\build\_deps\repo-third-party-build\grpc.vcxproj]
  D:\client\build\_deps\repo-third-party-build\grpc\src\grpc-build\Debug\grpc_cpp_plugin.exe : fatal error LNK1120: 1 个无法解析的外部命令 [D:\client\build\_deps\repo-third-party-build\grpc\src\grpc-build\grpc_cpp_plugin.vcxproj] [D:\client\build\_deps\repo-third-party-build\grpc.vcxproj]
  csharp_plugin.obj : error LNK2019: 无法解析的外部符号 "__declspec(dllimport) int __cdecl google::protobuf::compiler::PluginMain(int,char * * const,class google::protobuf::compiler::CodeGenerator const *)" (__imp_?PluginMain@compiler@protobuf@google@@YAHHQEAPEADPEBVCodeGenerator@123@@Z),函数 "int __cdecl grpc::protobuf::compiler::PluginMain(int,char * * const,class google::protobuf::compiler::CodeGenerator const *)" (?PluginMain@compiler@protobuf@grpc@@YAHHQEAPEADPEBVCodeGenerator@12google@@@Z) 中引用了该符号 [D:\client\build\_deps\repo-third-party-build\grpc\src\grpc-build\grpc_csharp_plugin.vcxproj] [D:\client\build\_deps\repo-third-party-build\grpc.vcxproj]
  grpc_plugin_support.lib(csharp_generator.obj) : error LNK2019: 无法解析的外部符号 "__declspec(dllimport) class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > __cdecl google::protobuf::compiler::csharp::GetFileNamespace(class google::protobuf::FileDescriptor const *)" (__imp_?GetFileNamespace@csharp@compiler@protobuf@google@@YA?AV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@PEBVFileDescriptor@34@@Z),函数 "class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > __cdecl grpc_csharp_generator::GetServices(class google::protobuf::FileDescriptor const *,bool,bool,bool)" (?GetServices@grpc_csharp_generator@@YA?AV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@PEBVFileDescriptor@protobuf@google@@_N11@Z) 中引用了该符号 [D:\client\build\_deps\repo-third-party-build\grpc\src\grpc-build\grpc_csharp_plugin.vcxproj] [D:\client\build\_deps\repo-third-party-build\grpc.vcxproj]
  grpc_plugin_support.lib(csharp_generator.obj) : error LNK2019: 无法解析的外部符号 "__declspec(dllimport) class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > __cdecl google::protobuf::compiler::csharp::GetClassName(class google::protobuf::Descriptor const *)" (__imp_?GetClassName@csharp@compiler@protobuf@google@@YA?AV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@PEBVDescriptor@34@@Z),函数 "class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > __cdecl grpc_csharp_generator::`anonymous namespace'::GetMethodRequestParamMaybe(class google::protobuf::MethodDescriptor const *,bool)" (?GetMethodRequestParamMaybe@?A0x62d15864@grpc_csharp_generator@@YA?AV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@PEBVMethodDescriptor@protobuf@google@@_N@Z) 中引用了该符号 [D:\client\build\_deps\repo-third-party-build\grpc\src\grpc-build\grpc_csharp_plugin.vcxproj] [D:\client\build\_deps\repo-third-party-build\grpc.vcxproj]
  grpc_plugin_support.lib(csharp_generator.obj) : error LNK2019: 无法解析的外部符号 "__declspec(dllimport) class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > __cdecl google::protobuf::compiler::csharp::GetReflectionClassName(class google::protobuf::FileDescriptor const *)" (__imp_?GetReflectionClassName@csharp@compiler@protobuf@google@@YA?AV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@PEBVFileDescriptor@34@@Z),函数 "void __cdecl grpc_csharp_generator::`anonymous namespace'::GenerateServiceDescriptorProperty(class google::protobuf::io::Printer *,class google::protobuf::ServiceDescriptor const *)" (?GenerateServiceDescriptorProperty@?A0x62d15864@grpc_csharp_generator@@YAXPEAVPrinter@io@protobuf@google@@PEBVServiceDescriptor@56@@Z) 中引用了该符号 [D:\client\build\_deps\repo-third-party-build\grpc\src\grpc-build\grpc_csharp_plugin.vcxproj] [D:\client\build\_deps\repo-third-party-build\grpc.vcxproj]
  D:\client\build\_deps\repo-third-party-build\grpc\src\grpc-build\Debug\grpc_csharp_plugin.exe : fatal error LNK1120: 4 个无法解析的外部命令 [D:\client\build\_deps\repo-third-party-build\grpc\src\grpc-build\grpc_csharp_plugin.vcxproj] [D:\client\build\_deps\repo-third-party-build\grpc.vcxproj]
  node_plugin.obj : error LNK2019: 无法解析的外部符号 "__declspec(dllimport) int __cdecl google::protobuf::compiler::PluginMain(int,char * * const,class google::protobuf::compiler::CodeGenerator const *)" (__imp_?PluginMain@compiler@protobuf@google@@YAHHQEAPEADPEBVCodeGenerator@123@@Z),函数 "int __cdecl grpc::protobuf::compiler::PluginMain(int,char * * const,class google::protobuf::compiler::CodeGenerator const *)" (?PluginMain@compiler@protobuf@grpc@@YAHHQEAPEADPEBVCodeGenerator@12google@@@Z) 中引用了该符号 [D:\client\build\_deps\repo-third-party-build\grpc\src\grpc-build\grpc_node_plugin.vcxproj] [D:\client\build\_deps\repo-third-party-build\grpc.vcxproj]
  D:\client\build\_deps\repo-third-party-build\grpc\src\grpc-build\Debug\grpc_node_plugin.exe : fatal error LNK1120: 1 个无法解析的外部命令 [D:\client\build\_deps\repo-third-party-build\grpc\src\grpc-build\grpc_node_plugin.vcxproj] [D:\client\build\_deps\repo-third-party-build\grpc.vcxproj]
  objective_c_plugin.obj : error LNK2019: 无法解析的外部符号 "__declspec(dllimport) class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > __cdecl google::protobuf::compiler::objectivec::FilePath(class google::protobuf::FileDescriptor const *)" (__imp_?FilePath@objectivec@compiler@protobuf@google@@YA?AV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@PEBVFileDescriptor@34@@Z),函数 "public: virtual bool __cdecl ObjectiveCGrpcGenerator::Generate(class google::protobuf::FileDescriptor const *,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &,class google::protobuf::compiler::GeneratorContext *,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > *)const " (?Generate@ObjectiveCGrpcGenerator@@UEBA_NPEBVFileDescriptor@protobuf@google@@AEBV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@PEAVGeneratorContext@compiler@34@PEAV56@@Z) 中引用了该符号 [D:\client\build\_deps\repo-third-party-build\grpc\src\grpc-build\grpc_objective_c_plugin.vcxproj] [D:\client\build\_deps\repo-third-party-build\grpc.vcxproj]
  objective_c_plugin.obj : error LNK2019: 无法解析的外部符号 "__declspec(dllimport) bool __cdecl google::protobuf::compiler::objectivec::IsProtobufLibraryBundledProtoFile(class google::protobuf::FileDescriptor const *)" (__imp_?IsProtobufLibraryBundledProtoFile@objectivec@compiler@protobuf@google@@YA_NPEBVFileDescriptor@34@@Z),函数 "class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > __cdecl `anonymous namespace'::ImportProtoHeaders(class google::protobuf::FileDescriptor const *,char const *,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &)" (?ImportProtoHeaders@?A0x63731b09@@YA?AV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@PEBVFileDescriptor@protobuf@google@@PEBDAEBV23@2@Z) 中引用了该符号 [D:\client\build\_deps\repo-third-party-build\grpc\src\grpc-build\grpc_objective_c_plugin.vcxproj] [D:\client\build\_deps\repo-third-party-build\grpc.vcxproj]
  objective_c_plugin.obj : error LNK2019: 无法解析的外部符号 "__declspec(dllimport) int __cdecl google::protobuf::compiler::PluginMain(int,char * * const,class google::protobuf::compiler::CodeGenerator const *)" (__imp_?PluginMain@compiler@protobuf@google@@YAHHQEAPEADPEBVCodeGenerator@123@@Z),函数 "int __cdecl grpc::protobuf::compiler::PluginMain(int,char * * const,class google::protobuf::compiler::CodeGenerator const *)" (?PluginMain@compiler@protobuf@grpc@@YAHHQEAPEADPEBVCodeGenerator@12google@@@Z) 中引用了该符号 [D:\client\build\_deps\repo-third-party-build\grpc\src\grpc-build\grpc_objective_c_plugin.vcxproj] [D:\client\build\_deps\repo-third-party-build\grpc.vcxproj]
  objective_c_plugin.obj : error LNK2019: 无法解析的外部符号 "__declspec(dllimport) char const * const google::protobuf::compiler::objectivec::ProtobufLibraryFrameworkName" (__imp_?ProtobufLibraryFrameworkName@objectivec@compiler@protobuf@google@@3QEBDEB),函数 "class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > __cdecl `anonymous namespace'::ImportProtoHeaders(class google::protobuf::FileDescriptor const *,char const *,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &)" (?ImportProtoHeaders@?A0x63731b09@@YA?AV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@PEBVFileDescriptor@protobuf@google@@PEBDAEBV23@2@Z) 中引用了该符号 [D:\client\build\_deps\repo-third-party-build\grpc\src\grpc-build\grpc_objective_c_plugin.vcxproj] [D:\client\build\_deps\repo-third-party-build\grpc.vcxproj]
  grpc_plugin_support.lib(objective_c_generator.obj) : error LNK2019: 无法解析的外部符号 "__declspec(dllimport) class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > __cdecl google::protobuf::compiler::objectivec::FileClassPrefix(class google::protobuf::FileDescriptor const *)" (__imp_?FileClassPrefix@objectivec@compiler@protobuf@google@@YA?AV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@PEBVFileDescriptor@34@@Z),函数 "class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > __cdecl grpc_objective_c_generator::ServiceClassName(class google::protobuf::ServiceDescriptor const *)" (?ServiceClassName@grpc_objective_c_generator@@YA?AV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@PEBVServiceDescriptor@protobuf@google@@@Z) 中引用了该符号 [D:\client\build\_deps\repo-third-party-build\grpc\src\grpc-build\grpc_objective_c_plugin.vcxproj] [D:\client\build\_deps\repo-third-party-build\grpc.vcxproj]
  grpc_plugin_support.lib(objective_c_generator.obj) : error LNK2019: 无法解析的外部符号 "__declspec(dllimport) class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > __cdecl google::protobuf::compiler::objectivec::ClassName(class google::protobuf::Descriptor const *)" (__imp_?ClassName@objectivec@compiler@protobuf@google@@YA?AV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@PEBVDescriptor@34@@Z),函数 "class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > __cdecl grpc_objective_c_generator::GetAllMessageClasses(class google::protobuf::FileDescriptor const *)" (?GetAllMessageClasses@grpc_objective_c_generator@@YA?AV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@PEBVFileDescriptor@protobuf@google@@@Z) 中引用了该符号 [D:\client\build\_deps\repo-third-party-build\grpc\src\grpc-build\grpc_objective_c_plugin.vcxproj] [D:\client\build\_deps\repo-third-party-build\grpc.vcxproj]
  D:\client\build\_deps\repo-third-party-build\grpc\src\grpc-build\Debug\grpc_objective_c_plugin.exe : fatal error LNK1120: 6 个无法解析的外部命令 [D:\client\build\_deps\repo-third-party-build\grpc\src\grpc-build\grpc_objective_c_plugin.vcxproj] [D:\client\build\_deps\repo-third-party-build\grpc.vcxproj]
  php_plugin.obj : error LNK2019: 无法解析的外部符号 "__declspec(dllimport) public: bool __cdecl google::protobuf::FileOptions::has_php_namespace(void)const " (__imp_?has_php_namespace@FileOptions@protobuf@google@@QEBA_NXZ),函数 "class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > __cdecl grpc_php_generator::GetPHPServiceFilename(class google::protobuf::FileDescriptor const *,class google::protobuf::ServiceDescriptor const *,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &,bool)" (?GetPHPServiceFilename@grpc_php_generator@@YA?AV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@PEBVFileDescriptor@protobuf@google@@PEBVServiceDescriptor@56@AEBV23@_N@Z) 中引用了该符号 [D:\client\build\_deps\repo-third-party-build\grpc\src\grpc-build\grpc_php_plugin.vcxproj] [D:\client\build\_deps\repo-third-party-build\grpc.vcxproj]
  grpc_plugin_support.lib(php_generator.obj) : error LNK2001: 无法解析的外部符号 "__declspec(dllimport) public: bool __cdecl google::protobuf::FileOptions::has_php_namespace(void)const " (__imp_?has_php_namespace@FileOptions@protobuf@google@@QEBA_NXZ) [D:\client\build\_deps\repo-third-party-build\grpc\src\grpc-build\grpc_php_plugin.vcxproj] [D:\client\build\_deps\repo-third-party-build\grpc.vcxproj]
  php_plugin.obj : error LNK2019: 无法解析的外部符号 "__declspec(dllimport) public: class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const & __cdecl google::protobuf::FileOptions::php_namespace(void)const " (__imp_?php_namespace@FileOptions@protobuf@google@@QEBAAEBV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@XZ),函数 "class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > __cdecl grpc_php_generator::GetPHPServiceFilename(class google::protobuf::FileDescriptor const *,class google::protobuf::ServiceDescriptor const *,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &,bool)" (?GetPHPServiceFilename@grpc_php_generator@@YA?AV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@PEBVFileDescriptor@protobuf@google@@PEBVServiceDescriptor@56@AEBV23@_N@Z) 中引用了该符号 [D:\client\build\_deps\repo-third-party-build\grpc\src\grpc-build\grpc_php_plugin.vcxproj] [D:\client\build\_deps\repo-third-party-build\grpc.vcxproj]
  grpc_plugin_support.lib(php_generator.obj) : error LNK2001: 无法解析的外部符号 "__declspec(dllimport) public: class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const & __cdecl google::protobuf::FileOptions::php_namespace(void)const " (__imp_?php_namespace@FileOptions@protobuf@google@@QEBAAEBV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@XZ) [D:\client\build\_deps\repo-third-party-build\grpc\src\grpc-build\grpc_php_plugin.vcxproj] [D:\client\build\_deps\repo-third-party-build\grpc.vcxproj]
  php_plugin.obj : error LNK2019: 无法解析的外部符号 "__declspec(dllimport) int __cdecl google::protobuf::compiler::PluginMain(int,char * * const,class google::protobuf::compiler::CodeGenerator const *)" (__imp_?PluginMain@compiler@protobuf@google@@YAHHQEAPEADPEBVCodeGenerator@123@@Z),函数 "int __cdecl grpc::protobuf::compiler::PluginMain(int,char * * const,class google::protobuf::compiler::CodeGenerator const *)" (?PluginMain@compiler@protobuf@grpc@@YAHHQEAPEADPEBVCodeGenerator@12google@@@Z) 中引用了该符号 [D:\client\build\_deps\repo-third-party-build\grpc\src\grpc-build\grpc_php_plugin.vcxproj] [D:\client\build\_deps\repo-third-party-build\grpc.vcxproj]
  grpc_plugin_support.lib(php_generator.obj) : error LNK2019: 无法解析的外部符号 "__declspec(dllimport) class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > __cdecl google::protobuf::compiler::php::GeneratedClassName(class google::protobuf::Descriptor const *)" (__imp_?GeneratedClassName@php@compiler@protobuf@google@@YA?AV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@PEBVDescriptor@34@@Z),函数 "void __cdecl grpc_php_generator::`anonymous namespace'::PrintMethod(class google::protobuf::MethodDescriptor const *,class google::protobuf::io::Printer *)" (?PrintMethod@?A0xb083d097@grpc_php_generator@@YAXPEBVMethodDescriptor@protobuf@google@@PEAVPrinter@io@45@@Z) 中引用了该符号 [D:\client\build\_deps\repo-third-party-build\grpc\src\grpc-build\grpc_php_plugin.vcxproj] [D:\client\build\_deps\repo-third-party-build\grpc.vcxproj]
  D:\client\build\_deps\repo-third-party-build\grpc\src\grpc-build\Debug\grpc_php_plugin.exe : fatal error LNK1120: 4 个无法解析的外部命令 [D:\client\build\_deps\repo-third-party-build\grpc\src\grpc-build\grpc_php_plugin.vcxproj] [D:\client\build\_deps\repo-third-party-build\grpc.vcxproj]
  python_plugin.obj : error LNK2019: 无法解析的外部符号 "__declspec(dllimport) int __cdecl google::protobuf::compiler::PluginMain(int,char * * const,class google::protobuf::compiler::CodeGenerator const *)" (__imp_?PluginMain@compiler@protobuf@google@@YAHHQEAPEADPEBVCodeGenerator@123@@Z),函数 "int __cdecl grpc::protobuf::compiler::PluginMain(int,char * * const,class google::protobuf::compiler::CodeGenerator const *)" (?PluginMain@compiler@protobuf@grpc@@YAHHQEAPEADPEBVCodeGenerator@12google@@@Z) 中引用了该符号 [D:\client\build\_deps\repo-third-party-build\grpc\src\grpc-build\grpc_python_plugin.vcxproj] [D:\client\build\_deps\repo-third-party-build\grpc.vcxproj]
  D:\client\build\_deps\repo-third-party-build\grpc\src\grpc-build\Debug\grpc_python_plugin.exe : fatal error LNK1120: 1 个无法解析的外部命令 [D:\client\build\_deps\repo-third-party-build\grpc\src\grpc-build\grpc_python_plugin.vcxproj] [D:\client\build\_deps\repo-third-party-build\grpc.vcxproj]
  ruby_plugin.obj : error LNK2019: 无法解析的外部符号 "__declspec(dllimport) int __cdecl google::protobuf::compiler::PluginMain(int,char * * const,class google::protobuf::compiler::CodeGenerator const *)" (__imp_?PluginMain@compiler@protobuf@google@@YAHHQEAPEADPEBVCodeGenerator@123@@Z),函数 "int __cdecl grpc::protobuf::compiler::PluginMain(int,char * * const,class google::protobuf::compiler::CodeGenerator const *)" (?PluginMain@compiler@protobuf@grpc@@YAHHQEAPEADPEBVCodeGenerator@12google@@@Z) 中引用了该符号 [D:\client\build\_deps\repo-third-party-build\grpc\src\grpc-build\grpc_ruby_plugin.vcxproj] [D:\client\build\_deps\repo-third-party-build\grpc.vcxproj]
  grpc_plugin_support.lib(ruby_generator.obj) : error LNK2019: 无法解析的外部符号 "__declspec(dllimport) public: bool __cdecl google::protobuf::FileOptions::has_ruby_package(void)const " (__imp_?has_ruby_package@FileOptions@protobuf@google@@QEBA_NXZ),函数 "class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > __cdecl grpc_ruby_generator::RubyPackage(class google::protobuf::FileDescriptor const *)" (?RubyPackage@grpc_ruby_generator@@YA?AV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@PEBVFileDescriptor@protobuf@google@@@Z) 中引用了该符号 [D:\client\build\_deps\repo-third-party-build\grpc\src\grpc-build\grpc_ruby_plugin.vcxproj] [D:\client\build\_deps\repo-third-party-build\grpc.vcxproj]
  grpc_plugin_support.lib(ruby_generator.obj) : error LNK2019: 无法解析的外部符号 "__declspec(dllimport) public: class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const & __cdecl google::protobuf::FileOptions::ruby_package(void)const " (__imp_?ruby_package@FileOptions@protobuf@google@@QEBAAEBV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@XZ),函数 "class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > __cdecl grpc_ruby_generator::RubyPackage(class google::protobuf::FileDescriptor const *)" (?RubyPackage@grpc_ruby_generator@@YA?AV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@PEBVFileDescriptor@protobuf@google@@@Z) 中引用了该符号 [D:\client\build\_deps\repo-third-party-build\grpc\src\grpc-build\grpc_ruby_plugin.vcxproj] [D:\client\build\_deps\repo-third-party-build\grpc.vcxproj]
  D:\client\build\_deps\repo-third-party-build\grpc\src\grpc-build\Debug\grpc_ruby_plugin.exe : fatal error LNK1120: 3 个无法解析的外部命令 [D:\client\build\_deps\repo-third-party-build\grpc\src\grpc-build\grpc_ruby_plugin.vcxproj] [D:\client\build\_deps\repo-third-party-build\grpc.vcxproj]
  C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets(249,5): error MSB8066: “D:\client\build\CMakeFiles\bef0910057968e49b1f1c81c844bcdad\grpc-mkdir.rule;D:\client\build\CMakeFiles\bef0910057968e49b1f1c81c844bcdad\grpc-download.rule;D:\client\build\CMakeFiles\bef0910057968e49b1f1c81c844bcdad\grpc-update.rule;D:\client\build\CMakeFiles\bef0910057968e49b1f1c81c844bcdad\grpc-patch.rule;D:\client\build\CMakeFiles\bef0910057968e49b1f1c81c844bcdad\grpc-configure.rule;D:\client\build\CMakeFiles\bef0910057968e49b1f1c81c844bcdad\grpc-build.rule;D:\client\build\CMakeFiles\bef0910057968e49b1f1c81c844bcdad\grpc-install.rule;D:\client\build\CMakeFiles\1febb60f3ac45c19d8032e453d144a33\grpc-complete.rule;D:\client\build\CMakeFiles\077514a2010a3cd0e5adab9132ce0569\grpc.rule;D:\client\build\_deps\repo-third-party-src\CMakeLists.txt”的自定义生成已退出,代码为 1。 [D:\client\build\_deps\repo-third-party-build\grpc.vcxproj]
fpetrini15 commented 10 months ago

I've created a ticket to investigate the issue further.