From nobody Fri Dec 15 08:40:08 2023 X-Original-To: freebsd-ports@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4Ss2j86sd3z54TnJ for ; Fri, 15 Dec 2023 08:40:12 +0000 (UTC) (envelope-from tagattie@FreeBSD.org) Received: from smtp.freebsd.org (smtp.freebsd.org [IPv6:2610:1c1:1:606c::24b:4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "smtp.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Ss2j86Jdbz3Gp3; Fri, 15 Dec 2023 08:40:12 +0000 (UTC) (envelope-from tagattie@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1702629612; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=cd+D/GJdLiBSuAWC36Qr92GItyOylhZwAiHVeftMPS8=; b=Xq8UhQkC7Ysdi69qW/9hds0Jp7AnpbIqU2jqcDOolmkGznHMlAaoESqbAA2FvSL6XCLjMf Gz7QcZD9zwXxuohAkxeO/2eToFJYiOytymLpF8jRnvjp4gXHnZ86hkUZ+4mnvN4KYTAbUI aT80GXZLcWLTqmLxrAS8bUASKUoqAMPxBIX3AOOJOEe2LzrkJgcxFdree40KqY+X/zTFyq GQAfUIlOCAHzxkpttarLPyd9mQFqhrAIxWCldzuCXvhh5R7czo/IbsGV31oKpyRUJb8CUG qEyggMxRrQcrruMovtuFng7Zmz3FsLMCwzRzPE2i5ZZZfIa3dgfvnisG3XCCjw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1702629612; a=rsa-sha256; cv=none; b=tG3Lw6MGerlvJmxtCdHh4jGODDWnw9AqGlWxhcts5kjOJXZcJY0ERysoXMqBwQ5UL8VCyt 3xE9NglGyq0iiRAhbYSk/TJT10dAmG+q88VPz8A7oMbP4fW8reFRHogby+p1bA3+UzR4wP 8seMkr9dS2p20bMoyxzHwzGedwJ7fW6CHIidGjf11o/J1g6QTLzgWe7EA9vtQF0WefjCRh W208oHhoGeTWFUUQ4D7xRxROH92bsgOplOZznF29n5IlaXf+kMoC8cNn5rzu63PBMXEWGo 995XiEw4+bKqjfO/+OKNV+21eBN78KS78WXvzX+bKzeBl3GSl+TAOUx9iDK+PQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1702629612; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=cd+D/GJdLiBSuAWC36Qr92GItyOylhZwAiHVeftMPS8=; b=oMZqFdVy4DMWqVzVH0TZhA9D6Ii6shX1ju51gTLzbWYyLRd1TFZ0mgp466wceEMXvWJFL4 m4zgpj/OEPBDWGzIwLqjAgJx9Fq/3k3XT5KJWGjNp0So05WXilmq719EsZHB5IZ3D40+Ll Aus3R6GFJk6BW7ifirVMYQh9dzYjNJ8Leaov29GFKwzfxAE2UwBu21IJ4qrHwSDC4C+88N XWJdXAvbtRSJlKn8jUW3OdZvHAQSl2srVbpqwqyR52F+3jRmt8p5gjFJIdSXDzpLtglowc zQECLaLKS7egaI9cr5jPxcUYxQ80NRe0T2SWimGBgFVj+G/76jpPUpFqyQTEJQ== Received: from [IPV6:2409:11:22a0:8900::34] (unknown [IPv6:2409:11:22a0:8900::34]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) (Authenticated sender: tagattie/mail) by smtp.freebsd.org (Postfix) with ESMTPSA id 4Ss2j74zMnz18B0; Fri, 15 Dec 2023 08:40:11 +0000 (UTC) (envelope-from tagattie@FreeBSD.org) Message-ID: <299b57f6-4ff0-4239-a9e5-c3eead1db4be@FreeBSD.org> Date: Fri, 15 Dec 2023 17:40:08 +0900 List-Id: Porting software to FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-ports List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-ports@freebsd.org X-BeenThere: freebsd-ports@freebsd.org MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: devel/electron25: Build failure on CURRENT with clang17 Content-Language: en-US To: Rainer Hurling , Dimitry Andric Cc: FreeBSD Mailing List References: <3A903343-1A21-474D-82A2-ACE40DCE19D3@FreeBSD.org> <39cb099e-73cb-4532-8b2d-a10be1487a12@gwdg.de> From: Hiroki Tagato In-Reply-To: <39cb099e-73cb-4532-8b2d-a10be1487a12@gwdg.de> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Hi Rainer and Dimitry, On 2023/12/15 14:39, Rainer Hurling wrote: > Am 15.12.23 um 00:53 schrieb Dimitry Andric: >> On 14 Dec 2023, at 21:23, Dimitry Andric wrote: >>> >>> On 14 Dec 2023, at 20:49, Rainer Hurling wrote: >>>> >>>> On my FreeBSD 15.0-CURRENT amd64 boxes with clang 17 as base >>>> compiler I get: >>>> >>>> ===>  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=1 -DUSE_GLIB=1 -DUSE_OZONE=1 >>>> -DOFFICIAL_BUILD -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS >>>> -D_FORTIFY_SOURCE=2  -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE >>>> -D_LARGEFILE64_SOURCE >> -DNO_UNWIND_TABLES -D_GNU_SOURCE -DNDEBUG -DNVALGRIND >> -DDYNAMIC_ANNOTATIONS_ENABLED=0 -DIS_MAS_BUILD\(\)=0 >> -DGLIB_VERSION_MAX_ALLOWED=GLIB_VERSION_2_56 >> -DGLIB_VERSION_MIN_REQUIRED=GLIB_VERSION_2_56 -DUSE_SYSTEM_LIBEVENT=1 >> -DGLOG_EXPORT= -DUSING_SYSTEM_ICU=1 >>>> -DICU_UTIL_DATA_IMPL=ICU_UTIL_DATA_STATIC -DU_FINAL=final >>>> -DU_NOEXCEPT=noexcept -DU_OVERRIDE=override -DU_IMPORT=U_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=ssp-buffer-size=4 -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=pattern >> -fno-omit-frame-pointer -g0 -fvisibility=hidden -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=1 -I/usr/local/include >> -I/usr/local/include -std=c++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=1 >>>> -DUSE_GLIB=1 -DUSE_OZONE=1 -DOFFICIAL_BUILD -D__STDC_CONSTANT_MACROS >>>> -D__STDC_FORMAT_MACROS -D_FORTIFY_SOURCE=2 -D_FILE_OFFSET_BITS=64 >>>> -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -DNO_UNWIND_TABLES >> -D_GNU_SOURCE -DNDEBUG -DNVALGRIND -DDYNAMIC_ANNOTATIONS_ENABLED=0 >> -DIS_MAS_BUILD\(\)=0 -DGLIB_VERSION_MAX_ALLOWED=GLIB_VERSION_2_56 >> -DGLIB_VERSION_MIN_REQUIRED=GLIB_VERSION_2_56 -DUSE_SYSTEM_LIBEVENT=1 >> -DGLOG_EXPORT= -DUSING_SYSTEM_ICU=1 >> -DICU_UTIL_DATA_IMPL=ICU_UTIL_DATA_STATIC -DU_FINAL=final >> -DU_NOEXCEPT=noexcept -DU_OVERRIDE=override -DU_IMPORT=U_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=ssp-buffer-size=4 -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=pattern >> -fno-omit-frame-pointer -g0 -fvisibility=hidden -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=1 -I/usr/local/include >> -I/usr/local/include -std=c++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> >>>>      |        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ >>>>      |        __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=660b01aa59ee1266ce0faf5718dc5c90abfa4f31 >>> >>> I'll take a look. >> >> I haven't yet been able to build the port itself as my test machine is >> swamped with jobs, but the patch from qt6-webengine applied without >> fuzz. Can you please try the attached diff? >> >> -Dimitry > > It applies fine here, I am building now and will report back. Thanks for reporting and providing the patch. I will look forward to the build result. Cheers, Hiroki