mirror of
https://github.com/kvcache-ai/Mooncake.git
synced 2026-11-05 01:17:55 +00:00
[GH-ISSUE #1702] [Bug]: cmake -DUSE_TENT=ON -DTENT_METRICS_ENABLED=ON .. and make -j then error occurs #495
Labels
No labels
ascend
auto-closed
bug
bug
CI/Build
Common
documentation
enhancement
feature request
good first issue
help wanted
high priority
MetaX
nightly-failure
pull-request
PyTorch Backend
question
RFC
Roadmap
stale
Store
Tests
Transfer Engine
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
kvcache-ai/Mooncake#495
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @easonyang1010 on GitHub (Mar 19, 2026).
Original GitHub issue: https://github.com/kvcache-ai/Mooncake/issues/1702
Originally assigned to: @staryxchen on GitHub.
Bug Report
this is error log, please help me , how to fix it
[ 31%] Building CXX object mooncake-transfer-engine/tent/src/runtime/CMakeFiles/tent_runtime.dir/transport_loader.cpp.o
CMakeFiles/tent_metrics_example.dir/tent_metrics_example.cpp.o: in function
asio::error::get_system_category()': /usr/local/include/asio/error.hpp:263: undefined reference toasio::system_category()'/bin/ld: CMakeFiles/tent_metrics_example.dir/tent_metrics_example.cpp.o: in function
__static_initialization_and_destruction_0(int, int) [clone .constprop.0]': /usr/local/include/asio/error.hpp:296: undefined reference toasio::error::get_netdb_category()'/bin/ld: /usr/local/include/asio/error.hpp:299: undefined reference to
asio::error::get_addrinfo_category()' /bin/ld: /usr/local/include/asio/error.hpp:302: undefined reference toasio::error::get_misc_category()'/bin/ld: CMakeFiles/tent_metrics_example.dir/tent_metrics_example.cpp.o: in function
__static_initialization_and_destruction_0(int, int) [clone .constprop.0]': /usr/local/include/asio/experimental/channel_error.hpp:41: undefined reference toasio::experimental::error::get_channel_category()'Before submitting...
@easonyang1010 commented on GitHub (Mar 19, 2026):
cmake -DUSE_TENT=ON ..
make -j
when I use above command, without -DTENT_METRICS_ENABLED=ON, everything is fine
@alogfans commented on GitHub (Mar 20, 2026):
The main reason is the bundled asio in ylt lib is not consistent with OS-installed asio lib. @staryxchen how do you resolve this problem in your developing environment?
@easonyang1010 commented on GitHub (Mar 20, 2026):
@alogfans thanks, by the way, when I use TENT on CUDA, -DUSE_TENT=ON is enough? or I need use -DUSE_TENT=ON -DUSE_CUDA=ON?
@staryxchen commented on GitHub (Mar 20, 2026):
Hi @easonyang1010, this is a known build issue when compiling with
-DUSE_TENT=ON -DTENT_METRICS_ENABLED=ON. The root cause is:tent_metricslibrary is missing theyalantinglibs::yalantinglibslink target (only include dirs were added, missing compile definitions and transitive deps)tent_metrics_exampleis missing theasio_sharedlink dependency (required since the project usesASIO_SEPARATE_COMPILATIONmode)Temporary Workaround
Apply the following changes manually:
mooncake-transfer-engine/tent/src/metrics/CMakeLists.txt— replace thetarget_link_librariesline and remove thefind_pathblock at the bottom:mooncake-transfer-engine/tent/include/tent/metrics/tent_metrics.h— add#include <csignal>before ylt headers:mooncake-transfer-engine/tent/tests/CMakeLists.txt— addasio_sharedto the link libraries:Fix PR
A fix has been submitted: #1712