aarch64 下编译失败
维护者通常 2 天内回复
还没有人认领这个 Issue。
评估
- 难度
- 3/5
- 预计耗时
- 1-2 天
- 新手友好度
- 45/100
- Issue 类型
- 缺陷
- 描述清晰度
- 基本清楚
- 活跃度
- 停滞
- 技术栈
- cpp
调研方向
首先,在 aarch64 AWS Graviton4 环境中使用 make -j CXXFLAGS="-fsigned-char -DGFLAGS_NS=gflags" 重现该故障。阅读 src/bthread/butex.cpp 以及 src/butil/macros.h 中 BAIDU_CACHELINE_SIZE 和 BAIDU_CASSERT 的定义;当静态断言通过,并且项目使用所报告的编译器和版本成功构建时,即表示完成。
由索引模型根据 Issue 内容生成。
描述
Describe the bug
Failed to make in aarch64(AWS Graviton4 instance)
......
Compiling src/brpc/nshead_meta.pb.o
In file included from ./src/butil/atomicops.h:34:0,
from src/bthread/butex.cpp:22:
./src/butil/macros.h:173:34: error: static assertion failed: butex_fits_in_one_cacheline
#define BAIDU_CASSERT(expr, msg) static_assert(expr, #msg)
^
src/bthread/butex.cpp:126:1: note: in expansion of macro ‘BAIDU_CASSERT’
BAIDU_CASSERT(sizeof(Butex) == BAIDU_CACHELINE_SIZE, butex_fits_in_one_cacheline);
^~~~~~~~~~~~~
......
To Reproduce
make -j CXXFLAGS="-fsigned-char -DGFLAGS_NS=gflags"
Expected behavior
Build successfully.
Versions
OS: Amazon Linux 2
Compiler: gcc version 7.3.1 20180712 (Red Hat 7.3.1-17) (GCC)
brpc: v0.9.7 , v1.4.0
protobuf: 2.5.0-8.amzn2.0.5
Additional context/screenshots
- 主要语言
- C++
- 星标
- 17.6k
- 派生
- 4.2k
- 平均合并
- 3 天 17 小时
- 30 天内合并 PR
- 72
环境准备
- 提供 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
apache/brpc 的其他 Issue
-
难度 1/5 1-3 小时 新手友好度 88/100
维护者通常 2 天内回复
-
endpoint2hostname() prints a byte-swapped port for IPv6 endpoints可能已有人在做 @0z5a 于 8 天前认领。 未关闭
难度 2/5 1-3 小时 新手友好度 86/100
维护者通常 2 天内回复
-
perf(butil): ARM64 (aarch64) performance and modernisation improvements across atomics, CRC32C, spin-wait hints, and fast timers可能已有人在做 @jimmystewpot 于 2 天前认领。 未关闭
难度 5/5 一周以上 新手友好度 12/100
维护者通常 2 天内回复
-
file:// naming service takes a comment after the address as the tag可能已有人在做 @0z5a 于 8 天前认领。 未关闭
难度 2/5 1-3 小时 新手友好度 35/100
维护者通常 2 天内回复
-
难度 5/5 一周以上 新手友好度 25/100
维护者通常 2 天内回复
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 77/100
protocolbuffers/protobuf#31768 ·
维护者通常 1 天内回复
-
Needs: Triage :mag: Platform: Android
难度 2/5 1-3 小时 新手友好度 78/100
react/react-native#60167 ·
维护者通常 2 天内回复
-
documentation
难度 2/5 1-3 小时 新手友好度 63/100
-
tests: ofx_render_test doesn't compile against FFmpeg 4.x (const AVCodec* to av_find_best_stream)未关闭
难度 2/5 1-3 小时 新手友好度 78/100
NatronGitHub/openfx-io#221 · 1 条评论 ·
维护者通常 1 天内回复
-
bug
难度 2/5 1-3 小时 新手友好度 72/100
subsurface/subsurface#5145 ·
维护者通常 2 天内回复