Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 14 Dec 2023 21:23:41 +0100
From:      Dimitry Andric <dim@FreeBSD.org>
To:        Rainer Hurling <rhurlin@FreeBSD.org>
Cc:        "<tagattie@freebsd.org>" <tagattie@FreeBSD.org>, FreeBSD Mailing List <freebsd-ports@freebsd.org>
Subject:   Re: devel/electron25: Build failure on CURRENT with clang17
Message-ID:  <3A903343-1A21-474D-82A2-ACE40DCE19D3@FreeBSD.org>
In-Reply-To: <e26a34ef-ad6d-4a42-872f-2a1b33c6973c@gwdg.de>
References:  <e26a34ef-ad6d-4a42-872f-2a1b33c6973c@gwdg.de>

next in thread | previous in thread | raw e-mail | index | archive | help

--Apple-Mail=_02A0A78D-B200-4777-9B5E-B942BED371D7
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain;
	charset=us-ascii

On 14 Dec 2023, at 20:49, Rainer Hurling <rhurlin@gwdg.de> wrote:
>=20
> On my FreeBSD 15.0-CURRENT amd64 boxes with clang 17 as base compiler =
I get:
>=20
> =3D=3D=3D>  Building for electron25-25.9.8_1
> ninja: Entering directory `out/Release'
> [  0% 1/32805] c++ -MMD -MF obj/base/base/reentry_guard.o.d =
-DBASE_IMPLEMENTATION -DIS_RAW_PTR_IMPL -DSYSTEM_NATIVE_UTF8 =
-DUSE_SYMBOLIZE -DUSE_AURA=3D1 -DUSE_GLIB=3D1 -DUSE_OZONE=3D1 =
-DOFFICIAL_BUILD -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS =
-D_FORTIFY_SOURCE=3D2 -D_FILE_OFFSET_BITS=3D64 -D_LARGEFILE_SOURCE =
-D_LARGEFILE64_SOURCE -DNO_UNWIND_TABLES -D_GNU_SOURCE -DNDEBUG =
-DNVALGRIND -DDYNAMIC_ANNOTATIONS_ENABLED=3D0 -DIS_MAS_BUILD\(\)=3D0 =
-DGLIB_VERSION_MAX_ALLOWED=3DGLIB_VERSION_2_56 =
-DGLIB_VERSION_MIN_REQUIRED=3DGLIB_VERSION_2_56 -DUSE_SYSTEM_LIBEVENT=3D1 =
-DGLOG_EXPORT=3D -DUSING_SYSTEM_ICU=3D1
> -DICU_UTIL_DATA_IMPL=3DICU_UTIL_DATA_STATIC -DU_FINAL=3Dfinal =
-DU_NOEXCEPT=3Dnoexcept -DU_OVERRIDE=3Doverride -DU_IMPORT=3DU_EXPORT =
-I../.. -Igen -I../../third_party/perfetto/include =
-Igen/third_party/perfetto/build_config -Igen/third_party/perfetto =
-Igen/shim_headers/libevent_shim -Igen/shim_headers/icui18n_shim =
-Igen/shim_headers/icuuc_shim -I../../third_party/abseil-cpp =
-I../../third_party/boringssl/src/include =
-I../../third_party/protobuf/src -Igen/protoc_out -Wall -Wextra =
-Wimplicit-fallthrough -Wextra-semi -Wunreachable-code-aggressive =
-Wthread-safety -Wno-missing-field-initializers -Wno-unused-parameter =
-Wno-psabi -Wloop-analysis -Wno-unneeded-internal-declaration =
-Wenum-compare-conditional -Wno-ignored-pragma-optimize -Wshadow =
-fno-delete-null-pointer-checks -fno-ident -fno-strict-aliasing =
--param=3Dssp-buffer-size=3D4 -fstack-protector -fno-unwind-tables =
-fno-asynchronous-unwind-tables -fPIC -pthread -fcolor-diagnostics =
-fmerge-all-constants -m64 -msse3 -Xclang -fdebug-compilation-dir =
-Xclang . -no-canonical-prefixes -ftrivial-auto-var-init=3Dpattern =
-fno-omit-frame-pointer -g0 -fvisibility=3Dhidden -Wheader-hygiene =
-Wstring-conversion -Wtautological-overlap-compare -Wshorten-64-to-32 =
-Wimplicit-int-conversion -Wsign-compare -Wsign-conversion =
-Wtautological-unsigned-zero-compare -Wexit-time-destructors =
-Wglobal-constructors -I/usr/local/include -I/usr/local/include/glib-2.0 =
-I/usr/local/lib/glib-2.0/include -O2 -fdata-sections =
-ffunction-sections -fno-unique-section-names =
-DPROTOBUF_ALLOW_DEPRECATED=3D1 -I/usr/local/include =
-I/usr/local/include -std=3Dc++20 -Wno-trigraphs -fno-exceptions =
-fno-rtti -fvisibility-inlines-hidden -O2 -pipe -fstack-protector-strong =
-isystem /usr/local/include -fno-strict-aliasing  -isystem =
/usr/local/include  -c ../../base/allocator/dispatcher/reentry_guard.cc =
-o obj/base/base/reentry_guard.o
> FAILED: obj/base/base/reentry_guard.o
> c++ -MMD -MF obj/base/base/reentry_guard.o.d -DBASE_IMPLEMENTATION =
-DIS_RAW_PTR_IMPL -DSYSTEM_NATIVE_UTF8 -DUSE_SYMBOLIZE -DUSE_AURA=3D1 =
-DUSE_GLIB=3D1 -DUSE_OZONE=3D1 -DOFFICIAL_BUILD -D__STDC_CONSTANT_MACROS =
-D__STDC_FORMAT_MACROS -D_FORTIFY_SOURCE=3D2 -D_FILE_OFFSET_BITS=3D64 =
-D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -DNO_UNWIND_TABLES =
-D_GNU_SOURCE -DNDEBUG -DNVALGRIND -DDYNAMIC_ANNOTATIONS_ENABLED=3D0 =
-DIS_MAS_BUILD\(\)=3D0 -DGLIB_VERSION_MAX_ALLOWED=3DGLIB_VERSION_2_56 =
-DGLIB_VERSION_MIN_REQUIRED=3DGLIB_VERSION_2_56 -DUSE_SYSTEM_LIBEVENT=3D1 =
-DGLOG_EXPORT=3D -DUSING_SYSTEM_ICU=3D1 =
-DICU_UTIL_DATA_IMPL=3DICU_UTIL_DATA_STATIC -DU_FINAL=3Dfinal =
-DU_NOEXCEPT=3Dnoexcept -DU_OVERRIDE=3Doverride -DU_IMPORT=3DU_EXPORT =
-I../.. -Igen -I../../third_party/perfetto/include =
-Igen/third_party/perfetto/build_config -Igen/third_party/perfetto =
-Igen/shim_headers/libevent_shim -Igen/shim_headers/icui18n_shim =
-Igen/shim_headers/icuuc_shim -I../../third_party/abseil-cpp =
-I../../third_party/boringssl/src/include =
-I../../third_party/protobuf/src -Igen/protoc_out -Wall -Wextra =
-Wimplicit-fallthrough -Wextra-semi -Wunreachable-code-aggressive =
-Wthread-safety -Wno-missing-field-initializers -Wno-unused-parameter =
-Wno-psabi -Wloop-analysis -Wno-unneeded-internal-declaration =
-Wenum-compare-conditional -Wno-ignored-pragma-optimize -Wshadow =
-fno-delete-null-pointer-checks -fno-ident -fno-strict-aliasing =
--param=3Dssp-buffer-size=3D4 -fstack-protector -fno-unwind-tables =
-fno-asynchronous-unwind-tables -fPIC -pthread -fcolor-diagnostics =
-fmerge-all-constants -m64 -msse3 -Xclang -fdebug-compilation-dir =
-Xclang . -no-canonical-prefixes -ftrivial-auto-var-init=3Dpattern =
-fno-omit-frame-pointer -g0 -fvisibility=3Dhidden -Wheader-hygiene =
-Wstring-conversion -Wtautological-overlap-compare -Wshorten-64-to-32 =
-Wimplicit-int-conversion -Wsign-compare -Wsign-conversion =
-Wtautological-unsigned-zero-compare -Wexit-time-destructors =
-Wglobal-constructors -I/usr/local/include -I/usr/local/include/glib-2.0 =
-I/usr/local/lib/glib-2.0/include -O2 -fdata-sections =
-ffunction-sections -fno-unique-section-names =
-DPROTOBUF_ALLOW_DEPRECATED=3D1 -I/usr/local/include =
-I/usr/local/include -std=3Dc++20 -Wno-trigraphs -fno-exceptions =
-fno-rtti -fvisibility-inlines-hidden -O2 -pipe -fstack-protector-strong =
-isystem /usr/local/include -fno-strict-aliasing  -isystem =
/usr/local/include  -c ../../base/allocator/dispatcher/reentry_guard.cc =
-o obj/base/base/reentry_guard.o
> In file included from =
../../base/allocator/dispatcher/reentry_guard.cc:9:
> In file included from ../../base/debug/crash_logging.h:16:
> In file included from =
../../base/strings/string_number_conversions.h:15:
> In file included from ../../base/containers/span.h:19:
> ../../base/containers/checked_iterators.h:248:8: error: no template =
named '__is_cpp17_contiguous_iterator'; did you mean =
'__libcpp_is_contiguous_iterator'?
>  248 | struct =
__is_cpp17_contiguous_iterator<::base::CheckedContiguousIterator<T>>
>      |        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>      |        __libcpp_is_contiguous_iterator
> /usr/include/c++/v1/__iterator/iterator_traits.h:476:8: note: =
'__libcpp_is_contiguous_iterator' declared here
>  476 | struct __libcpp_is_contiguous_iterator : _Or<
>      |        ^
> 1 error generated.
> ninja: build stopped: subcommand failed.
> *** Error code 1

This is the same problem that I fixed for qt6-webengine here:
=
https://cgit.freebsd.org/ports/commit/?id=3D660b01aa59ee1266ce0faf5718dc5c=
90abfa4f31

I'll take a look.

-Dimitry


--Apple-Mail=_02A0A78D-B200-4777-9B5E-B942BED371D7
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment;
	filename=signature.asc
Content-Type: application/pgp-signature;
	name=signature.asc
Content-Description: Message signed with OpenPGP

-----BEGIN PGP SIGNATURE-----
Version: GnuPG/MacGPG2 v2.2

iF0EARECAB0WIQR6tGLSzjX8bUI5T82wXqMKLiCWowUCZXtkTQAKCRCwXqMKLiCW
o5qCAJwI0E5j4z2N4BcTDa64a5UZLxgvwQCdFnLw+bQHJfwnoLzcgTncAyWOW1k=
=4cU0
-----END PGP SIGNATURE-----

--Apple-Mail=_02A0A78D-B200-4777-9B5E-B942BED371D7--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3A903343-1A21-474D-82A2-ACE40DCE19D3>