[PR #145] [MERGED] fix compilation errors #1353

Closed
opened 2026-10-29 21:26:41 +00:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/kvcache-ai/Mooncake/pull/145
Author: @xhyf77
Created: 3/16/2025
Status: ✅ Merged
Merged: 3/20/2025
Merged by: @alogfans

Base: main ← Head: fix-compilation


📝 Commits (2)

📊 Changes

4 files changed (+20 additions, -8 deletions)

View changed files

📝 dependencies.sh (+2 -1)
📝 mooncake-store/src/CMakeLists.txt (+5 -2)
📝 mooncake-store/tests/CMakeLists.txt (+8 -4)
📝 mooncake-transfer-engine/src/CMakeLists.txt (+5 -1)

📄 Description

Compilation fails on Debian 12 (Bookworm) due to libgrpc29 version.

xhy@debian12:~/Mooncake/build$ make -j
[ 89%] Linking CXX executable client_integration_test
[ 90%] Linking CXX executable mooncake_master
[ 95%] Built target mooncake_vllm_adaptor
/usr/bin/ld: libcache_allocator.a(master.grpc.pb.cpp.o): undefined reference to symbol 'gpr_log'
/usr/bin/ld: /lib/x86_64-linux-gnu/libgpr.so.29: error adding symbols: DSO missing from command line
collect2: error: ld returned 1 exit status
make[2]: *** [mooncake-store/src/CMakeFiles/mooncake_master.dir/build.make:103:mooncake-store/src/mooncake_master] 错误 1
make[1]: *** [CMakeFiles/Makefile2:800:mooncake-store/src/CMakeFiles/mooncake_master.dir/all] 错误 2
make[1]: *** 正在等待未完成的任务....
/usr/bin/ld: ../src/libcache_allocator.a(master.grpc.pb.cpp.o): undefined reference to symbol 'gpr_log'
/usr/bin/ld: /lib/x86_64-linux-gnu/libgpr.so.29: error adding symbols: DSO missing from command line
/usr/bin/ld: ../src/libcache_allocator.a(master.grpc.pb.cpp.o): undefined reference to symbol 'gpr_log'
/usr/bin/ld: /lib/x86_64-linux-gnu/libgpr.so.29: error adding symbols: DSO missing from command line
collect2: error: ld returned 1 exit status
make[2]: *** [mooncake-store/tests/CMakeFiles/client_integration_test.dir/build.make:103:mooncake-store/tests/client_integration_test] 错误 1
make[1]: *** [CMakeFiles/Makefile2:922:mooncake-store/tests/CMakeFiles/client_integration_test.dir/all] 错误 2
collect2: error: ld returned 1 exit status
make[2]: *** [mooncake-store/tests/CMakeFiles/stress_workload_test.dir/build.make:103:mooncake-store/tests/stress_workload_test] 错误 1
make[1]: *** [CMakeFiles/Makefile2:954:mooncake-store/tests/CMakeFiles/stress_workload_test.dir/all] 错误 2
make: *** [Makefile:146:all] 错误 2

xhy@debian12:~/Mooncake$ dpkg -l|grep grpc
ii  libgrpc++-dev:amd64                           1.51.1-3+b1                         amd64        high performance general RPC framework (development)
ii  libgrpc++1.51:amd64                           1.51.1-3+b1                         amd64        high performance general RPC framework
ii  libgrpc-dev:amd64                             1.51.1-3+b1                         amd64        high performance general RPC framework (development)
ii  libgrpc29:amd64                               1.51.1-3+b1                         amd64        high performance general RPC framework
ii  protobuf-compiler-grpc                        1.51.1-3+b1                         amd64        high performance general RPC framework - protobuf plugin

can be resolved by this commit


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/kvcache-ai/Mooncake/pull/145 **Author:** [@xhyf77](https://github.com/xhyf77) **Created:** 3/16/2025 **Status:** ✅ Merged **Merged:** 3/20/2025 **Merged by:** [@alogfans](https://github.com/alogfans) **Base:** `main` ← **Head:** `fix-compilation` --- ### 📝 Commits (2) - [`4a97148`](https://github.com/kvcache-ai/Mooncake/commit/4a971481e532e4659552745b8041e94f64a7ec2c) fix compilation errors - [`1916f25`](https://github.com/kvcache-ai/Mooncake/commit/1916f25a9b3327ec64b0af661d352887768d14e7) try to fix CI build issues ### 📊 Changes **4 files changed** (+20 additions, -8 deletions) <details> <summary>View changed files</summary> 📝 `dependencies.sh` (+2 -1) 📝 `mooncake-store/src/CMakeLists.txt` (+5 -2) 📝 `mooncake-store/tests/CMakeLists.txt` (+8 -4) 📝 `mooncake-transfer-engine/src/CMakeLists.txt` (+5 -1) </details> ### 📄 Description Compilation fails on Debian 12 (Bookworm) due to libgrpc29 version. ``` xhy@debian12:~/Mooncake/build$ make -j [ 89%] Linking CXX executable client_integration_test [ 90%] Linking CXX executable mooncake_master [ 95%] Built target mooncake_vllm_adaptor /usr/bin/ld: libcache_allocator.a(master.grpc.pb.cpp.o): undefined reference to symbol 'gpr_log' /usr/bin/ld: /lib/x86_64-linux-gnu/libgpr.so.29: error adding symbols: DSO missing from command line collect2: error: ld returned 1 exit status make[2]: *** [mooncake-store/src/CMakeFiles/mooncake_master.dir/build.make:103:mooncake-store/src/mooncake_master] 错误 1 make[1]: *** [CMakeFiles/Makefile2:800:mooncake-store/src/CMakeFiles/mooncake_master.dir/all] 错误 2 make[1]: *** 正在等待未完成的任务.... /usr/bin/ld: ../src/libcache_allocator.a(master.grpc.pb.cpp.o): undefined reference to symbol 'gpr_log' /usr/bin/ld: /lib/x86_64-linux-gnu/libgpr.so.29: error adding symbols: DSO missing from command line /usr/bin/ld: ../src/libcache_allocator.a(master.grpc.pb.cpp.o): undefined reference to symbol 'gpr_log' /usr/bin/ld: /lib/x86_64-linux-gnu/libgpr.so.29: error adding symbols: DSO missing from command line collect2: error: ld returned 1 exit status make[2]: *** [mooncake-store/tests/CMakeFiles/client_integration_test.dir/build.make:103:mooncake-store/tests/client_integration_test] 错误 1 make[1]: *** [CMakeFiles/Makefile2:922:mooncake-store/tests/CMakeFiles/client_integration_test.dir/all] 错误 2 collect2: error: ld returned 1 exit status make[2]: *** [mooncake-store/tests/CMakeFiles/stress_workload_test.dir/build.make:103:mooncake-store/tests/stress_workload_test] 错误 1 make[1]: *** [CMakeFiles/Makefile2:954:mooncake-store/tests/CMakeFiles/stress_workload_test.dir/all] 错误 2 make: *** [Makefile:146:all] 错误 2 xhy@debian12:~/Mooncake$ dpkg -l|grep grpc ii libgrpc++-dev:amd64 1.51.1-3+b1 amd64 high performance general RPC framework (development) ii libgrpc++1.51:amd64 1.51.1-3+b1 amd64 high performance general RPC framework ii libgrpc-dev:amd64 1.51.1-3+b1 amd64 high performance general RPC framework (development) ii libgrpc29:amd64 1.51.1-3+b1 amd64 high performance general RPC framework ii protobuf-compiler-grpc 1.51.1-3+b1 amd64 high performance general RPC framework - protobuf plugin ``` can be resolved by this commit --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-10-29 21:26:41 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
kvcache-ai/Mooncake#1353
No description provided.