centos7编译brpc报错
- Dominant language
- C++
- Stars
- 17.6k
- Forks
- 4.1k
- Avg merge
- 2d 12h
- Merged PRs (30d)
- 69
Description
**Describe the bug (描述bug)**
基于官方文档开始编译brpc
https://github.com/apache/brpc/blob/master/docs/cn/getting_started.md#%E4%BD%BF%E7%94%A8cmake%E7%BC%96%E8%AF%91brpc
使用的是yum install安装的相关依赖,虽然可能会有版本很旧的情况,但是操作流程是按照官方文档来的。
**To Reproduce (复现方法)**
直接按照官方文档一步一步操作即可,在不同电脑的centos虚拟机上,必定出现同样的问题。都是在同一个位置报段错误,但是同样的代码在unbuntu上可以通过,说明肯定不是代码的问题
**Expected behavior (期望行为)**
正常编译通过。
事实上我在ubuntu16.04.07机器上按照官方文档的说明进操作,最后编译成功了,但是在centos7上始终卡在对应的问题上。
**Versions (各种版本)**
OS:[CentOS-7-x86_64-DVD-2009.iso](https://mirrors.aliyun.com/centos/7/isos/x86_64/CentOS-7-x86_64-DVD-2009.iso)
Compiler:gcc 4.8.5 5.4.0 8.3.0 都尝试过
brpc: master分支,release-1.6.0, release-1.5.0都尝试过
protobuf: yum install默认安装的版本,2.5.0-8.el7
**Additional context/screenshots (更多上下文/截图)**

Contributor guide
Research direction
Start with the CMake build section in docs/cn/getting_started.md and reproduce the reported segmentation fault on CentOS 7 using the listed GCC and protobuf versions. Compare the CentOS and Ubuntu build environments and identify the cause; done means the documented build completes successfully on CentOS 7 or the incompatibility is clearly documented.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cpp
- Domain
- build-system, operating-systems
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 28/100