You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What version of gRPC and what language are you using?
C++ 17
v1.54.0
What operating system (Linux, Windows,...) and version?
ubuntu 18.04 x86_64
What runtime / compiler are you using (e.g. python version or version of gcc)
cmake 3.23.0
g++ 7.5.0
What did you do?
Please provide either 1) A unit test for reproducing the bug or 2) Specific steps for us to follow to reproduce the bug. If there’s not enough information to debug the problem, gRPC team may close the issue at their discretion. You’re welcome to re-open the issue once you have a reproduction.
1)On the ubuntu 18.04 x86_64 platform, cross compile the executable program of aarch64 ubuntu 18.04。
2)link grpc and related shared libs to my project and make.
libgrpc_authorization_provider.so:undefined reference to grpc_event_engine::experimental::EventEngine::ConnectionHandle::kInvalid
libgrpc.so:undefined reference to grpc_core::MetadataQuery::kIPv6Attribute
Make sure you include information that can help us debug (full error message, exception listing, stack trace, logs).
bazel-out/k8-opt/bin/external/com_github_grpc_grpc/src/core/_objs/grpc_resolver_c2p/google_c2p_resolver.o:google_c2p_resolver.cc:function grpc_core::(anonymous namespace)::GoogleCloud2ProdResolver::StartLocked(): error: undefined reference to 'grpc_core::MetadataQuery::kIPv6Attribute'
gcc --version
gcc (Debian 10.2.1-6) 10.2.1 20210110
Copyright (C) 2020 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
clang --version
Debian clang version 11.0.1-2
uname -a
Linux 73375e62d70b 6.1.15-1rodete3-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.15-1rodete3 (2023-03-28) x86_64 GNU/Linux
#32294 seems to be the PR that causes this issue. Somehow, some version(s) of linkers couldn't find that symbol.
git clone v1.54.0,then compile with c++17 on aarch64 ubuntu 18.04;
cmake ../.. -DCMAKE_BUILD_TYPE=Release -DBUILD_SHARED_LIBS=ON -DgRPC_INSTALL=ON -DCMAKE_INSTALL_PREFIX=/opt/grpc -DCMAKE_CXX_STANDARD=17
make && make install
2)package the shared library,the other people wanna link them on x86_64 ubuntu 18.04, cross compile the executable program of aarch64 ubuntu 18.04.
3) use v1.53.0 is ok.
What version of gRPC and what language are you using?
C++ 17
v1.54.0
What operating system (Linux, Windows,...) and version?
ubuntu 18.04 x86_64
What runtime / compiler are you using (e.g. python version or version of gcc)
cmake 3.23.0
g++ 7.5.0
What did you do?
Please provide either 1) A unit test for reproducing the bug or 2) Specific steps for us to follow to reproduce the bug. If there’s not enough information to debug the problem, gRPC team may close the issue at their discretion. You’re welcome to re-open the issue once you have a reproduction.
1)On the ubuntu 18.04 x86_64 platform, cross compile the executable program of aarch64 ubuntu 18.04。
2)link grpc and related shared libs to my project and make.
What did you expect to see?
I expected make success
What did you see instead?
Make sure you include information that can help us debug (full error message, exception listing, stack trace, logs).
See TROUBLESHOOTING.md for how to diagnose problems better.
Anything else we should know about your project / environment?
The text was updated successfully, but these errors were encountered: