build failure with Fedora 40 (gcc 14.1.1)
还没有人认领这个 Issue。
评估
- 难度
- 3/5
- 预计耗时
- 1-2 天
- 新手友好度
- 35/100
- Issue 类型
- 缺陷
- 描述清晰度
- 基本清楚
- 活跃度
- 停滞
- 技术栈
- cpp
- 领域
- build-system
调研方向
Start with include/ola/base/Macro.h and the DISALLOW_COPY_AND_ASSIGN uses in include/ola/thread/FuturePrivate.h. Reproduce the configure and build command on Fedora 40 with GCC 14.1.1, then update the affected declarations so the build no longer emits template-id-cdtor errors. Done means the project builds successfully with warnings treated as errors.
由索引模型根据 Issue 内容生成。
描述
I'm packaging this for Fedora 40 and I hit the following build error:
In file included from ./include/ola/Clock.h:32:
./include/ola/base/Macro.h:45:11: error: template-id not allowed for constructor in C++20 [-Werror=template-id-cdtor]
45 | TypeName(const TypeName&); \
| ^
./include/ola/thread/FuturePrivate.h:92:3: note: in expansion of macro 'DISALLOW_COPY_AND_ASSIGN'
92 | DISALLOW_COPY_AND_ASSIGN(FutureImpl<T>);
| ^~~~~~~~~~~~~~~~~~~~~~~~
./include/ola/base/Macro.h:45:11: note: remove the '< >'
45 | TypeName(const TypeName&); \
| ^
./include/ola/thread/FuturePrivate.h:92:3: note: in expansion of macro 'DISALLOW_COPY_AND_ASSIGN'
92 | DISALLOW_COPY_AND_ASSIGN(FutureImpl<T>);
| ^~~~~~~~~~~~~~~~~~~~~~~~
./include/ola/base/Macro.h:45:11: error: template-id not allowed for constructor in C++20 [-Werror=template-id-cdtor]
45 | TypeName(const TypeName&); \
| ^
./include/ola/thread/FuturePrivate.h:155:3: note: in expansion of macro 'DISALLOW_COPY_AND_ASSIGN'
155 | DISALLOW_COPY_AND_ASSIGN(FutureImpl<void>);
| ^~~~~~~~~~~~~~~~~~~~~~~~
./include/ola/base/Macro.h:45:11: note: remove the '< >'
45 | TypeName(const TypeName&); \
| ^
./include/ola/thread/FuturePrivate.h:155:3: note: in expansion of macro 'DISALLOW_COPY_AND_ASSIGN'
155 | DISALLOW_COPY_AND_ASSIGN(FutureImpl<void>);
| ^~~~~~~~~~~~~~~~~~~~~~~~
cc1plus: all warnings being treated as errors
make[2]: *** [Makefile:11568: common/thread/libolacommon_la-ExecutorThread.lo] Error 1
Compiler was gcc-c++-14.1.1-7.fc40, configure line was:
+ ./configure --build=x86_64-redhat-linux --host=x86_64-redhat-linux --program-prefix= --disable-dependency-tracking --prefix=/usr --exec-prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin --sysconfdir=/etc --datadir=/usr/share --includedir=/usr/include --libdir=/usr/lib64 --libexecdir=/usr/libexec --localstatedir=/var --runstatedir=/run --sharedstatedir=/var/lib --mandir=/usr/share/man --infodir=/usr/share/info --disable-static --enable-python-libs --enable-tcmalloc
See https://clang.llvm.org/extra/clang-tidy/checks/modernize/replace-disallow-copy-and-assign-macro.html for a modern replacement for this macro.
- 主要语言
- C++
- 星标
- 773
- 派生
- 233
- PR 合并指标
- 30 天内没有已合并 PR
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 没有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
OpenLightingProject/ola 的其他 Issue
-
难度 2/5 1-3 小时 新手友好度 70/100
OpenLightingProject/ola#2075 ·
-
Digital Enlightenment / FX5 not recognized可能已有人在做 关联的 PR 仍在进行中或已合并。 未关闭question Type-DeviceSupport
难度 4/5 3-5 天 新手友好度 35/100
OpenLightingProject/ola#2056 · 2 条评论 ·
-
难度 3/5 1-2 天 新手友好度 55/100
OpenLightingProject/ola#2055 ·
-
Difficulty-Medium Language-C++ Maintainability OpSys-All
难度 4/5 3-5 天 新手友好度 45/100
OpenLightingProject/ola#2053 · 1 条评论 ·
-
v0.11.0可能重新可做 @peternewman 于 227 天前认领,目前没有进行中的 PR。 未关闭
OpenLightingProject/ola#2038 · 18 条评论 · 已指派 2 人 ·
查看 OpenLightingProject/ola 的全部 Issue
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 85/100
antlr/grammars-v4#5219 ·
维护者通常 1 天内回复
-
documentation
难度 1/5 1 小时以内 新手友好度 86/100
Awesome-Embedded-Learning-Studio/Tutorial_AwesomeModernCPP#335 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 76/100
deepseek-ai/DeepEP#830 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 66/100
google-ai-edge/LiteRT-LM#4701 ·
维护者通常 1 天内回复
-
status:needs-triage
难度 2/5 1-3 小时 新手友好度 78/100
PX4/PX4-Autopilot#29898 ·
维护者通常 1 天内回复