Unable to compile 1.8.0 with the latest GCC 13 toolchain
- Dominant language
- C++
- Stars
- 17.6k
- Forks
- 4.1k
- Avg merge
- 2d 12h
- Merged PRs (30d)
- 69
Description
**Describe the bug (描述bug)**
Unable to compile with the latest GCC 13 toolchain.
**To Reproduce (复现方法)**
```
git clone https://github.com/apache/brpc.git
git checkout 1.8.0
cmake -B build
cmake --build build > brpc.log 2>&1
```
**Expected behavior (期望行为)**
Compilation successful.
**Versions (各种版本)**
OS:
```
DISTRIB_ID="ManjaroLinux"
DISTRIB_RELEASE="23.1.3"
DISTRIB_CODENAME="Vulcan"
DISTRIB_DESCRIPTION="Manjaro Linux"
```
Compiler: gcc13.2.1
brpc: 1.8.0
protobuf: 25.3
**Additional context/screenshots (更多上下文/截图)**
log file:
[brpc.log](https://github.com/apache/brpc/files/14771028/brpc.log)
Contributor guide
Research direction
Check out the 1.8.0 tag, run the provided cmake configure and build commands, and inspect the resulting brpc.log with GCC 13. Done means the brpc 1.8.0 build completes successfully with the reported Manjaro, GCC, and protobuf versions.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cmake, cpp
- Domain
- build-system
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100