[GH-ISSUE #10] Source code compile and build #9

Closed
opened 2026-10-29 21:07:46 +00:00 by bsakaguchi · 3 comments
Owner

Originally created by @junna2016 on GitHub (Dec 2, 2024).
Original GitHub issue: https://github.com/kvcache-ai/Mooncake/issues/10

When I compile from source code, it will meet an error when compile grpc process(grpc is on v1.27.3 branch). I done this in a nvcr.io/nvidia/pytorch:23.10-py3 docker environment, error is:

Mooncake/grpc/third_party/abseil-cpp/absl/synchronization/internal/graphcycles.cc: In member function ‘void absl::synchronization_internal::GraphCycles::RemoveNode(void*)’:
Mooncake/grpc/third_party/abseil-cpp/absl/synchronization/internal/graphcycles.cc:451:26: error: ‘numeric_limits’ is not a member of ‘std’
451 | if (x->version == std::numeric_limits<uint32_t>::max()) {
| ^~~~~~~~~~~~~~
Mooncake/grpc/third_party/abseil-cpp/absl/synchronization/internal/graphcycles.cc:451:49: error: expected primary-expression before ‘>’ token
451 | if (x->version == std::numeric_limits<uint32_t>::max()) {
| ^
Mooncake/grpc/third_party/abseil-cpp/absl/synchronization/internal/graphcycles.cc:451:52: error: ‘::max’ has not been declared; did you mean ‘std::max’?
451 | if (x->version == std::numeric_limits<uint32_t>::max()) {
| ^~~
| std::max

Originally created by @junna2016 on GitHub (Dec 2, 2024). Original GitHub issue: https://github.com/kvcache-ai/Mooncake/issues/10 When I compile from source code, it will meet an error when compile grpc process(grpc is on v1.27.3 branch). I done this in a nvcr.io/nvidia/pytorch:23.10-py3 docker environment, error is: Mooncake/grpc/third_party/abseil-cpp/absl/synchronization/internal/graphcycles.cc: In member function ‘void absl::synchronization_internal::GraphCycles::RemoveNode(void*)’: Mooncake/grpc/third_party/abseil-cpp/absl/synchronization/internal/graphcycles.cc:451:26: error: ‘numeric_limits’ is not a member of ‘std’ 451 | if (x->version == std::numeric_limits<uint32_t>::max()) { | ^~~~~~~~~~~~~~ Mooncake/grpc/third_party/abseil-cpp/absl/synchronization/internal/graphcycles.cc:451:49: error: expected primary-expression before ‘>’ token 451 | if (x->version == std::numeric_limits<uint32_t>::max()) { | ^ Mooncake/grpc/third_party/abseil-cpp/absl/synchronization/internal/graphcycles.cc:451:52: error: ‘::max’ has not been declared; did you mean ‘std::max’? 451 | if (x->version == std::numeric_limits<uint32_t>::max()) { | ^~~ | std::max
Author
Owner

@alogfans commented on GitHub (Dec 2, 2024):

You may need to use export CXXFLAGS='-include /usr/include/c++/11.2.0/limits' for your Docker env (c.f. https://github.com/gpujs/gpu.js/issues/753). In addition, we prefer to use grpc from system's repository (such as apt-get install).

<!-- gh-comment-id:2511257722 --> @alogfans commented on GitHub (Dec 2, 2024): You may need to use export CXXFLAGS='-include /usr/include/c++/11.2.0/limits' for your Docker env (c.f. https://github.com/gpujs/gpu.js/issues/753). In addition, we prefer to use grpc from system's repository (such as apt-get install).
Author
Owner

@junna2016 commented on GitHub (Dec 4, 2024):

You may need to use export CXXFLAGS='-include /usr/include/c++/11.2.0/limits' for your Docker env (c.f. gpujs/gpu.js#753). In addition, we prefer to use grpc from system's repository (such as apt-get install).

I resolved by change grpc codebase. Thanks a lot

<!-- gh-comment-id:2516046666 --> @junna2016 commented on GitHub (Dec 4, 2024): > You may need to use export CXXFLAGS='-include /usr/include/c++/11.2.0/limits' for your Docker env (c.f. [gpujs/gpu.js#753](https://github.com/gpujs/gpu.js/issues/753)). In addition, we prefer to use grpc from system's repository (such as apt-get install). I resolved by change grpc codebase. Thanks a lot
Author
Owner

@IEI-mjx commented on GitHub (Jan 21, 2025):

Hi, @junna2016
I also used this container, but failed when installing etcd-cpp-apiv3.
The above is error traceback,

CMake Error at /usr/lib/cmake/utf8_range/utf8_range-targets.cmake:86 (message):
  The imported target "utf8_range::utf8_validity" references the file

     "/usr/lib/libutf8_validity.a"

  but this file does not exist.  Possible reasons include:

  * The file was deleted, renamed, or moved to another location.

  * An install or uninstall procedure did not complete successfully.

  * The installation package was faulty and contained

     "/usr/lib/cmake/utf8_range/utf8_range-targets.cmake"

  but not all the files it references.

Call Stack (most recent call first):
  /usr/lib/cmake/utf8_range/utf8_range-config.cmake:7 (include)
  /usr/lib/cmake/protobuf/protobuf-config.cmake:12 (find_package)
  CMakeLists.txt:125 (find_package)

Have you encountered this error?
If possible, could you share your environment especially the versions of cmake, protobuf?
I would greatly appreciate your assistance.

<!-- gh-comment-id:2603452449 --> @IEI-mjx commented on GitHub (Jan 21, 2025): Hi, @junna2016 I also used this container, but failed when installing etcd-cpp-apiv3. The above is error traceback, ``` CMake Error at /usr/lib/cmake/utf8_range/utf8_range-targets.cmake:86 (message): The imported target "utf8_range::utf8_validity" references the file "/usr/lib/libutf8_validity.a" but this file does not exist. Possible reasons include: * The file was deleted, renamed, or moved to another location. * An install or uninstall procedure did not complete successfully. * The installation package was faulty and contained "/usr/lib/cmake/utf8_range/utf8_range-targets.cmake" but not all the files it references. Call Stack (most recent call first): /usr/lib/cmake/utf8_range/utf8_range-config.cmake:7 (include) /usr/lib/cmake/protobuf/protobuf-config.cmake:12 (find_package) CMakeLists.txt:125 (find_package) ``` Have you encountered this error? If possible, could you share your environment especially the versions of cmake, protobuf? I would greatly appreciate your assistance.
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#9
No description provided.