Skip to content

clangd-index-server-monitor & grpc++ fails to link on Debian 12 #59844

@sylvestre

Description

@sylvestre

Since grpc 1.51.1 upload in Debian sid, clangd + libgrpc (-DCLANGD_ENABLE_REMOTE=ON) fails to link with:

: && "/home/sylvestre/dev/debian/pkg-llvm/llvm-toolchain/branches/llvm-toolchain-snapshot_16~++20221227120055+36d70a6aea6b/build-llvm/./bin/clang++" -fstack-protector-strong -Wformat -Werror=format-security -Wno-unused-command-line-argument -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -Werror=date-time -Werror=unguarded-availability-new -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers -pedantic -Wno-long-long -Wc++98-compat-extra-semi -Wimplicit-fallthrough -Wcovered-switch-default -Wno-noexcept-type -Wnon-virtual-dtor -Wdelete-non-virtual-dtor -Wsuggest-override -Wstring-conversion -Wmisleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -ffunction-sections -fdata-sections -ffile-prefix-map=/home/sylvestre/dev/debian/pkg-llvm/llvm-toolchain/branches/llvm-toolchain-snapshot_16~++20221227120055+36d70a6aea6b/build-llvm/tools/clang/stage2-bins=build-llvm/tools/clang/stage2-bins -ffile-prefix-map=/home/sylvestre/dev/debian/pkg-llvm/llvm-toolchain/branches/llvm-toolchain-snapshot_16~++20221227120055+36d70a6aea6b/= -no-canonical-prefixes -fno-common -Woverloaded-virtual -Wno-nested-anon-types -O2 -DNDEBUG -g1 -Wl,-z,relro -Wl,--build-id -fuse-ld=gold    -Wl,--gc-sections tools/clang/tools/extra/clangd/index/remote/monitor/CMakeFiles/clangd-index-server-monitor.dir/Monitor.cpp.o -o bin/clangd-index-server-monitor  -Wl,-rpath,"\$ORIGIN/../lib"  lib/libclangBasic.a  lib/libclangdSupport.a  lib/libclangdMonitoringServiceProto.a  lib/libclangdRemoteIndexServiceProto.a  lib/libclangdMonitoringServiceProto.a  lib/libclangdRemoteIndexProto.a  lib/libLLVM-16.so.1  /usr/lib/x86_64-linux-gnu/libgrpc++.so  /usr/lib/x86_64-linux-gnu/libprotobuf.so && :
/usr/include/grpcpp/completion_queue.h:119: error: undefined reference to 'absl::debian3::Mutex::~Mutex()'
/usr/include/grpcpp/completion_queue.h:119: error: undefined reference to 'absl::debian3::Mutex::~Mutex()'
/usr/include/grpcpp/completion_queue.h:119: error: undefined reference to 'absl::debian3::Mutex::~Mutex()'
/usr/include/grpcpp/impl/call_op_set.h:978: error: undefined reference to 'gpr_log'
/usr/include/grpcpp/impl/call_op_set.h:978: error: undefined reference to 'gpr_log'
/usr/include/grpcpp/impl/call_op_set.h:978: error: undefined reference to 'gpr_log'
/usr/include/grpcpp/impl/call_op_set.h:978: error: undefined reference to 'gpr_log'

I will submit a patch to fix it

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions