build failure with Fedora 40 (gcc 14.1.1)
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 3/5
- Thời gian dự kiến
- 1-2 ngày
- Mức phù hợp với người mới
- 35/100
- Loại issue
- Lỗi
- Độ rõ ràng
- Khá rõ ràng
- Mức độ hoạt động
- Đình trệ
- Công nghệ
- cpp
- Lĩnh vực
- build-system
Hướng nghiên cứu
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.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
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.
- Ngôn ngữ chính
- C++
- Star
- 773
- Fork
- 233
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Không có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của OpenLightingProject/ola
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100
OpenLightingProject/ola#2075 ·
-
Digital Enlightenment / FX5 not recognizedCó thể đã có người làm Có pull request liên kết đang mở hoặc đã được merge. Đang mởquestion Type-DeviceSupport
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 35/100
OpenLightingProject/ola#2056 · 2 bình luận ·
-
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 55/100
OpenLightingProject/ola#2055 ·
-
Difficulty-Medium Language-C++ Maintainability OpSys-All
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 45/100
OpenLightingProject/ola#2053 · 1 bình luận ·
-
v0.11.0Có thể làm lại được @peternewman đã nhận 227 ngày trước và không có pull request nào đang mở. Đang mở
OpenLightingProject/ola#2038 · 18 bình luận · 2 người được giao ·
Tất cả issue của OpenLightingProject/ola
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
deepseek-ai/DeepEP#830 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 66/100
google-ai-edge/LiteRT-LM#4701 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
HarperFast/rocksdb-js#1131 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Swapped cache lookups in ScanModelAndDecideAllDiffExpansionCó thể đã có người làm @Lian292213 đã nhận hôm nay. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
Maintainer thường phản hồi trong vòng 1 ngày
-
area/daemon bug good first issue platform/linux priority/p2
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
ToshiNamura/Deimos#5 ·