[Bug 294900] Errors during buildworld: C++20 extension
- Reply: bugzilla-noreply_a_freebsd.org: "[Bug 294900] Errors during buildworld: C++20 extension"
- Reply: bugzilla-noreply_a_freebsd.org: "[Bug 294900] Errors during buildworld: C++20 extension"
- Reply: bugzilla-noreply_a_freebsd.org: "[Bug 294900] Errors during buildworld: C++20 extension"
- Reply: bugzilla-noreply_a_freebsd.org: "[Bug 294900] Errors during buildworld: C++20 extension"
- Reply: bugzilla-noreply_a_freebsd.org: "[Bug 294900] Errors during buildworld: C++20 extension"
- Reply: bugzilla-noreply_a_freebsd.org: "[Bug 294900] Errors during buildworld: C++20 extension"
- Reply: bugzilla-noreply_a_freebsd.org: "[Bug 294900] Errors during buildworld: C++20 extension"
- Reply: bugzilla-noreply_a_freebsd.org: "[Bug 294900] Errors during buildworld: C++20 extension"
- Reply: bugzilla-noreply_a_freebsd.org: "[Bug 294900] Errors during buildworld: C++20 extension"
- Reply: bugzilla-noreply_a_freebsd.org: "[Bug 294900] Errors during buildworld: C++20 extension"
- Reply: bugzilla-noreply_a_freebsd.org: "[Bug 294900] Errors during buildworld: C++20 extension"
- Reply: bugzilla-noreply_a_freebsd.org: "[Bug 294900] Errors during buildworld: C++20 extension"
- Reply: bugzilla-noreply_a_freebsd.org: "[Bug 294900] Errors during buildworld: C++20 extension"
- Reply: bugzilla-noreply_a_freebsd.org: "[Bug 294900] Errors during buildworld: C++20 extension"
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Thu, 30 Apr 2026 15:54:41 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=294900
Bug ID: 294900
Summary: Errors during buildworld: C++20 extension
Product: Base System
Version: 16.0-CURRENT
Hardware: amd64
OS: Any
Status: New
Severity: Affects Only Me
Priority: ---
Component: bin
Assignee: bugs@FreeBSD.org
Reporter: thierry@FreeBSD.org
Attachment #270279 text/plain
mime type:
Created attachment 270279
--> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=270279&action=edit
Log of buildworld errors
By default buildworld sets -Werror and -Wc++20-extensions, and this causes
several compilation errors on -CURRENT at 3b59d6ae2e78..dba24eb6f12d:
E.g.:
echo libdwarf.so.4.full: /usr/obj/usr/src/amd64.amd64/tmp/usr/lib/libelf.a
/usr/obj/usr/src/amd64.amd64/tmp/usr/lib/libz.a >> .depend
--- dwarf_abbrev.o ---
/usr/local/libexec/ccache/world/cc -target x86_64-unknown-freebsd16.0
--sysroot=/usr/obj/usr/src/amd64.amd64/tmp
-B/usr/obj/usr/src/amd64.amd64/tmp/usr/bin -O2 -pipe -fno-common -I.
-I/usr/src/contrib/elftoolchain/libdwarf -I/usr/src/contrib/elftoolchain/common
-I/usr/src/contrib/elftoolchain/libelf -g -gz=zlib -MD
-MF.depend.dwarf_abbrev.o -MTdwarf_abbrev.o -std=gnu17 -Wno-format-zero-length
-nobuiltininc -idirafter /usr/lib/clang/19/include -fstack-protector-strong
-Wsystem-headers -Werror -Wall -Wno-format-y2k -W -Wno-unused-parameter
-Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wreturn-type
-Wcast-qual -Wwrite-strings -Wswitch -Wshadow -Wunused-parameter -Wcast-align
-Wchar-subscripts -Wnested-externs -Wold-style-definition -Wno-pointer-sign
-Wdate-time -Wmissing-variable-declarations -Wthread-safety -Wno-empty-body
-Wno-string-plus-int -Wno-unused-const-variable
-Wno-error=unused-but-set-parameter -Wno-error=cast-function-type-mismatch
-Qunused-arguments -c /usr/src/contrib/elftoolchain/libdwarf/dwarf_abbrev.c
-o dwarf_abbrev.o
--- all_subdir_lib/libdevdctl ---
--- consumer.o ---
In file included from /usr/src/lib/libdevdctl/consumer.cc:50:
In file included from
/usr/obj/usr/src/amd64.amd64/tmp/usr/include/c++/v1/list:205:
In file included from
/usr/obj/usr/src/amd64.amd64/tmp/usr/include/c++/v1/__algorithm/lexicographical_compare.h:14:
In file included from
/usr/obj/usr/src/amd64.amd64/tmp/usr/include/c++/v1/__algorithm/mismatch.h:15:
/usr/obj/usr/src/amd64.amd64/tmp/usr/include/c++/v1/__algorithm/simd_utils.h:96:50:
error: explicit template parameter list for lambdas is a C++20 extension
[-Werror,-Wc++20-extensions]
96 | inline constexpr size_t __simd_vector_size_v = []<bool _False =
false>() -> size_t {
| ^
/usr/obj/usr/src/amd64.amd64/tmp/usr/include/c++/v1/__algorithm/simd_utils.h:114:13:
error: explicit template parameter list for lambdas is a C++20 extension
[-Werror,-Wc++20-extensions]
114 | return [=]<size_t... _Indices>(index_sequence<_Indices...>)
_LIBCPP_ALWAYS_INLINE noexcept {
| ^
/usr/obj/usr/src/amd64.amd64/tmp/usr/include/c++/v1/__algorithm/simd_utils.h:129:20:
error: explicit template parameter list for lambdas is a C++20 extension
[-Werror,-Wc++20-extensions]
129 | auto __impl = [&]<class _MaskT>(_MaskT) _LIBCPP_NO_SANITIZE("memory")
noexcept {
| ^
End of log is attached.
--
You are receiving this mail because:
You are the assignee for the bug.