[GH-ISSUE #132] protoc erro when run 'make -j' in build/ dir #67

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

Originally created by @CharlesJhonson on GitHub (Mar 10, 2025).
Original GitHub issue: https://github.com/kvcache-ai/Mooncake/issues/132

I pulled latest code(commit 4d89151302) ----- [FIX] Fix the content of README.md (#130)

Some protoc errors when run 'make -j' in build/ dir. Error log as follows:

In file included from /home/caoq/Mooncake-dev-pd/mooncake-store/src/master.pb.cpp:4:
/home/caoq/Mooncake-dev-pd/mooncake-store/include/master.pb.h:15:2: error: #error "This file was generated by a newer version of protoc which is"
   15 | #error "This file was generated by a newer version of protoc which is"

Image

How to fix it?

Originally created by @CharlesJhonson on GitHub (Mar 10, 2025). Original GitHub issue: https://github.com/kvcache-ai/Mooncake/issues/132 I pulled latest code(commit 4d8915130218f81074b39ac5650bcbe771001b7f) ----- [FIX] Fix the content of README.md (#130) Some protoc errors when run 'make -j' in build/ dir. Error log as follows: ``` In file included from /home/caoq/Mooncake-dev-pd/mooncake-store/src/master.pb.cpp:4: /home/caoq/Mooncake-dev-pd/mooncake-store/include/master.pb.h:15:2: error: #error "This file was generated by a newer version of protoc which is" 15 | #error "This file was generated by a newer version of protoc which is" ``` ![Image](https://github.com/user-attachments/assets/062b8cd5-93d7-4722-b22a-23e8dde3f044) How to fix it?
Author
Owner

@alogfans commented on GitHub (Mar 10, 2025):

You can try to remove *.pb.h and *.pb.cc manually, and rerun cmake ...

<!-- gh-comment-id:2710323651 --> @alogfans commented on GitHub (Mar 10, 2025): You can try to remove `*.pb.h` and `*.pb.cc` manually, and rerun `cmake ..`.
Author
Owner

@CharlesJhonson commented on GitHub (Mar 11, 2025):

You can try to remove *.pb.h and *.pb.cc manually, and rerun cmake ...

It works!
But other error occurred when make -j in build/ dir, please help.

Image

grpcpp/impl/proto_utils.h existed in my system(ubuntu 22.04).

Image

Image

<!-- gh-comment-id:2712513062 --> @CharlesJhonson commented on GitHub (Mar 11, 2025): > You can try to remove `*.pb.h` and `*.pb.cc` manually, and rerun `cmake ..`. It works! But other error occurred when `make -j` in build/ dir, please help. ![Image](https://github.com/user-attachments/assets/593e51aa-dd6f-40f2-9a55-819d7de8837d) `grpcpp/impl/proto_utils.h` existed in my system(ubuntu 22.04). ![Image](https://github.com/user-attachments/assets/ceaab35f-1c52-4678-a7d6-409df0a98a9a) ![Image](https://github.com/user-attachments/assets/b3ee6d00-f388-4bfa-b258-9ec4c0f09d47)
Author
Owner

@alogfans commented on GitHub (Mar 12, 2025):

Mooncake requires grpcpp installed in system (that is in /usr/). Potentially the miniforge affects gcc for seraching the system include paths. You can try to use the following environment variable to add paths:

# C
export C_INCLUDE_PATH=XXXX:$C_INCLUDE_PATH
# CPP
export CPLUS_INCLUDE_PATH=XXX:$CPLUS_INCLUDE_PATH
<!-- gh-comment-id:2716159855 --> @alogfans commented on GitHub (Mar 12, 2025): Mooncake requires grpcpp installed in system (that is in /usr/). Potentially the miniforge affects gcc for seraching the system include paths. You can try to use the following environment variable to add paths: ``` # C export C_INCLUDE_PATH=XXXX:$C_INCLUDE_PATH # CPP export CPLUS_INCLUDE_PATH=XXX:$CPLUS_INCLUDE_PATH ```
Author
Owner

@xiaguan commented on GitHub (Mar 12, 2025):

Based on my previous experience, the gRPC toolchain in Ubuntu 24.04 seems to have some issues. I tried to fix it, but I wasn't successful. Ubuntu 22.04 is the best development choice, and you can choose to start a dev container for development.

<!-- gh-comment-id:2716269617 --> @xiaguan commented on GitHub (Mar 12, 2025): Based on my previous experience, the gRPC toolchain in Ubuntu 24.04 seems to have some issues. I tried to fix it, but I wasn't successful. Ubuntu 22.04 is the best development choice, and you can choose to start a dev container for development.
Author
Owner

@CharlesJhonson commented on GitHub (Mar 12, 2025):

Mooncake requires grpcpp installed in system (that is in /usr/). Potentially the miniforge affects gcc for seraching the system include paths. You can try to use the following environment variable to add paths:

# C
export C_INCLUDE_PATH=XXXX:$C_INCLUDE_PATH
# CPP
export CPLUS_INCLUDE_PATH=XXX:$CPLUS_INCLUDE_PATH

It not work, and more errors occurred.

<!-- gh-comment-id:2716835151 --> @CharlesJhonson commented on GitHub (Mar 12, 2025): > Mooncake requires grpcpp installed in system (that is in /usr/). Potentially the miniforge affects gcc for seraching the system include paths. You can try to use the following environment variable to add paths: > > ``` > # C > export C_INCLUDE_PATH=XXXX:$C_INCLUDE_PATH > # CPP > export CPLUS_INCLUDE_PATH=XXX:$CPLUS_INCLUDE_PATH > ``` It not work, and more errors occurred.
Author
Owner

@alogfans commented on GitHub (Apr 10, 2025):

Closed as the latest version of Mooncake not longer relies on protobuf.

<!-- gh-comment-id:2791874921 --> @alogfans commented on GitHub (Apr 10, 2025): Closed as the latest version of Mooncake not longer relies on protobuf.
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#67
No description provided.