[GH-ISSUE #1730] [Bug]: when using docker build TENT, some error occurs #502

Closed
opened 2026-10-29 21:15:33 +00:00 by bsakaguchi · 5 comments
Owner

Originally created by @easonyang1010 on GitHub (Mar 23, 2026).
Original GitHub issue: https://github.com/kvcache-ai/Mooncake/issues/1730

Originally assigned to: @alogfans on GitHub.

Bug Report

Dockerfile:
# Configure & build Mooncake RUN mkdir -p build && \ cd build && \ cmake .. \ -DUSE_TENT=ON \ -DTENT_METRICS_ENABLED=ON && \ export LIBRARY_PATH=/usr/local/cuda/lib64/stubs:$LIBRARY_PATH && \ export GOPROXY=https://goproxy.cn,direct && \ cmake --build . -j"$(nproc)"

error:
[ 18%] Building CXX object mooncake-transfer-engine/tent/src/transport/rdma/CMakeFiles/tent_xport_rdma.dir/rdma_transport.cpp.o [ 18%] Building CXX object mooncake-transfer-engine/tent/src/transport/rdma/CMakeFiles/tent_xport_rdma.dir/shared_quota.cpp.o [ 18%] Building CXX object mooncake-transfer-engine/tent/src/transport/rdma/CMakeFiles/tent_xport_rdma.dir/workers.cpp.o In file included from /usr/local/include/ylt/metric/metric_manager.hpp:12, from /usr/local/include/ylt/metric.hpp:20, from /workspace/mooncake-transfer-engine/tent/src/../include/tent/metrics/tent_metrics.h:37, from /workspace/mooncake-transfer-engine/tent/src/metrics/tent_metrics.cpp:15: /usr/local/include/ylt/coro_io/coro_io.hpp: In lambda function: /usr/local/include/ylt/coro_io/coro_io.hpp:769:8: error: 'signal' is not a member of 'std' 769 | std::signal(SIGPIPE, SIG_IGN); | ^~~~~~ /usr/local/include/ylt/coro_io/coro_io.hpp:769:15: error: 'SIGPIPE' was not declared in this scope 769 | std::signal(SIGPIPE, SIG_IGN); | ^~~~~~~ /usr/local/include/ylt/coro_io/coro_io.hpp:769:24: error: 'SIG_IGN' was not declared in this scope 769 | std::signal(SIGPIPE, SIG_IGN); | ^~~~~~~

Before submitting...

  • Ensure you searched for relevant issues and read the [documentation]
Originally created by @easonyang1010 on GitHub (Mar 23, 2026). Original GitHub issue: https://github.com/kvcache-ai/Mooncake/issues/1730 Originally assigned to: @alogfans on GitHub. ### Bug Report Dockerfile: `# Configure & build Mooncake RUN mkdir -p build && \ cd build && \ cmake .. \ -DUSE_TENT=ON \ -DTENT_METRICS_ENABLED=ON && \ export LIBRARY_PATH=/usr/local/cuda/lib64/stubs:$LIBRARY_PATH && \ export GOPROXY=https://goproxy.cn,direct && \ cmake --build . -j"$(nproc)"` error: `[ 18%] Building CXX object mooncake-transfer-engine/tent/src/transport/rdma/CMakeFiles/tent_xport_rdma.dir/rdma_transport.cpp.o [ 18%] Building CXX object mooncake-transfer-engine/tent/src/transport/rdma/CMakeFiles/tent_xport_rdma.dir/shared_quota.cpp.o [ 18%] Building CXX object mooncake-transfer-engine/tent/src/transport/rdma/CMakeFiles/tent_xport_rdma.dir/workers.cpp.o In file included from /usr/local/include/ylt/metric/metric_manager.hpp:12, from /usr/local/include/ylt/metric.hpp:20, from /workspace/mooncake-transfer-engine/tent/src/../include/tent/metrics/tent_metrics.h:37, from /workspace/mooncake-transfer-engine/tent/src/metrics/tent_metrics.cpp:15: /usr/local/include/ylt/coro_io/coro_io.hpp: In lambda function: /usr/local/include/ylt/coro_io/coro_io.hpp:769:8: error: 'signal' is not a member of 'std' 769 | std::signal(SIGPIPE, SIG_IGN); | ^~~~~~ /usr/local/include/ylt/coro_io/coro_io.hpp:769:15: error: 'SIGPIPE' was not declared in this scope 769 | std::signal(SIGPIPE, SIG_IGN); | ^~~~~~~ /usr/local/include/ylt/coro_io/coro_io.hpp:769:24: error: 'SIG_IGN' was not declared in this scope 769 | std::signal(SIGPIPE, SIG_IGN); | ^~~~~~~` ### Before submitting... - [x] Ensure you searched for relevant issues and read the [documentation]
bsakaguchi 2026-10-29 21:15:33 +00:00
  • closed this issue
  • added the
    bug
    label
Author
Owner

@staryxchen commented on GitHub (Mar 23, 2026):

Hi @easonyang1010, could you please try commit 75438df and see if it resolves the issue? Thanks!

<!-- gh-comment-id:4111889886 --> @staryxchen commented on GitHub (Mar 23, 2026): Hi @easonyang1010, could you please try commit [75438df](https://github.com/kvcache-ai/Mooncake/commit/75438df15f7532428102fe1b67ab137ef2bcd8a9) and see if it resolves the issue? Thanks!
Author
Owner

@easonyang1010 commented on GitHub (Mar 24, 2026):

ok I will try it today, and reply to you

<!-- gh-comment-id:4115026540 --> @easonyang1010 commented on GitHub (Mar 24, 2026): ok I will try it today, and reply to you
Author
Owner

@easonyang1010 commented on GitHub (Mar 24, 2026):

@staryxchen
After pull 75438df
Error still occurs:
[ 17%] Built target metastore_http [ 18%] Building CXX object mooncake-transfer-engine/tent/src/transport/rdma/CMakeFiles/tent_xport_rdma.dir/rdma_transport.cpp.o [ 18%] Building CXX object mooncake-transfer-engine/tent/src/transport/rdma/CMakeFiles/tent_xport_rdma.dir/shared_quota.cpp.o In file included from /usr/local/include/ylt/metric/metric_manager.hpp:12, from /usr/local/include/ylt/metric.hpp:20, from /workspace/mooncake-transfer-engine/tent/src/../include/tent/metrics/tent_metrics.h:37, from /workspace/mooncake-transfer-engine/tent/src/metrics/tent_metrics.cpp:15: /usr/local/include/ylt/coro_io/coro_io.hpp: In lambda function: /usr/local/include/ylt/coro_io/coro_io.hpp:769:8: error: 'signal' is not a member of 'std' 769 | std::signal(SIGPIPE, SIG_IGN); | ^~~~~~ /usr/local/include/ylt/coro_io/coro_io.hpp:769:15: error: 'SIGPIPE' was not declared in this scope 769 | std::signal(SIGPIPE, SIG_IGN); | ^~~~~~~ [ 18%] Building CXX object mooncake-transfer-engine/tent/src/transport/rdma/CMakeFiles/tent_xport_rdma.dir/workers.cpp.o /usr/local/include/ylt/coro_io/coro_io.hpp:769:24: error: 'SIG_IGN' was not declared in this scope 769 | std::signal(SIGPIPE, SIG_IGN); | ^~~~~~~ [ 18%] Linking CXX static library libplatform_cuda.a

<!-- gh-comment-id:4115215563 --> @easonyang1010 commented on GitHub (Mar 24, 2026): @staryxchen After pull [75438df](https://github.com/kvcache-ai/Mooncake/commit/75438df15f7532428102fe1b67ab137ef2bcd8a9) Error still occurs: `[ 17%] Built target metastore_http [ 18%] Building CXX object mooncake-transfer-engine/tent/src/transport/rdma/CMakeFiles/tent_xport_rdma.dir/rdma_transport.cpp.o [ 18%] Building CXX object mooncake-transfer-engine/tent/src/transport/rdma/CMakeFiles/tent_xport_rdma.dir/shared_quota.cpp.o In file included from /usr/local/include/ylt/metric/metric_manager.hpp:12, from /usr/local/include/ylt/metric.hpp:20, from /workspace/mooncake-transfer-engine/tent/src/../include/tent/metrics/tent_metrics.h:37, from /workspace/mooncake-transfer-engine/tent/src/metrics/tent_metrics.cpp:15: /usr/local/include/ylt/coro_io/coro_io.hpp: In lambda function: /usr/local/include/ylt/coro_io/coro_io.hpp:769:8: error: 'signal' is not a member of 'std' 769 | std::signal(SIGPIPE, SIG_IGN); | ^~~~~~ /usr/local/include/ylt/coro_io/coro_io.hpp:769:15: error: 'SIGPIPE' was not declared in this scope 769 | std::signal(SIGPIPE, SIG_IGN); | ^~~~~~~ [ 18%] Building CXX object mooncake-transfer-engine/tent/src/transport/rdma/CMakeFiles/tent_xport_rdma.dir/workers.cpp.o /usr/local/include/ylt/coro_io/coro_io.hpp:769:24: error: 'SIG_IGN' was not declared in this scope 769 | std::signal(SIGPIPE, SIG_IGN); | ^~~~~~~ [ 18%] Linking CXX static library libplatform_cuda.a`
Author
Owner

@staryxchen commented on GitHub (Mar 24, 2026):

Hi @easonyang1010, thanks for testing!

Looking at your error output, the compiler is pointing to tent_metrics.h:37 as the location of #include <ylt/metric.hpp>. However, in commit 75438df, we inserted #include <csignal> before that line — so after the fix, <ylt/metric.hpp> should be at line 38, not 37.

This suggests the fix may not have been applied to your local copy. Could you double-check the following?

  1. Confirm the commit is present in your branch:

    git log --oneline | grep 75438df
    
  2. If it's there, try a clean rebuild to rule out stale cache:

    rm -rf build
    cmake ... && make
    

If the commit is missing from your branch, you may need to pull from the latest main. Let me know what you find!

<!-- gh-comment-id:4115397007 --> @staryxchen commented on GitHub (Mar 24, 2026): Hi @easonyang1010, thanks for testing! Looking at your error output, the compiler is pointing to **`tent_metrics.h:37`** as the location of `#include <ylt/metric.hpp>`. However, in commit 75438df, we inserted `#include <csignal>` *before* that line — so after the fix, `<ylt/metric.hpp>` should be at line **38**, not 37. This suggests the fix may not have been applied to your local copy. Could you double-check the following? 1. Confirm the commit is present in your branch: ```bash git log --oneline | grep 75438df ``` 2. If it's there, try a clean rebuild to rule out stale cache: ```bash rm -rf build cmake ... && make ``` If the commit is missing from your branch, you may need to pull from the latest `main`. Let me know what you find!
Author
Owner

@easonyang1010 commented on GitHub (Mar 24, 2026):

Sorry my bad, it did use cache.
After retried, github.com/kvcache-ai/Mooncake@75438df15f can solve this case.
Thanks!

<!-- gh-comment-id:4115711855 --> @easonyang1010 commented on GitHub (Mar 24, 2026): Sorry my bad, it did use cache. After retried, https://github.com/kvcache-ai/Mooncake/commit/75438df15f7532428102fe1b67ab137ef2bcd8a9 can solve this case. Thanks!
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#502
No description provided.