From nobody Sun Dec 18 17:44:26 2022 X-Original-To: gnome@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 4NZqwC08p0z1Gmkm for ; Sun, 18 Dec 2022 17:44:27 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (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 "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4NZqwB4kQHz4JwN for ; Sun, 18 Dec 2022 17:44:26 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1671385466; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=49Cp4/GzYcoD7nuYf+PZfQXhHw9fEH3xUQMEmh/DmiE=; b=cZoRYHvQxfViSe9y3AEDgsPtdOiUSgGF3PkXktGjUL6nrQI3PAG6waa0Lhlzims7nXoIqE d3bOUZC5jhztErLMwh5M5weNMYS7csgcxImb50b6KxOHmXXMqvJNcZdCK7J8Jhdn8C86Ob rxnRirIS9m4waX81WWxcEghV5g9xWZ/Ucf6aZzL3FhNlPR7Vs2T9/v2QEfJuXM/w24Pbs6 F1pX4ZDYUv9svhmQuy0iMCK2TSguuuovmzBjZ75mrRXaYLjsXD1EKzRkNxYX2Ilwhkkkrd JCq4bLRfss6jKVwtL8a5/S+28NL++NU97xRRztuGJrFfk5wWlxN423IqQ6WcHw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1671385466; a=rsa-sha256; cv=none; b=CHT96++l4mnCVjW8yEQXlnZwoGzBeaGjlSLH/3bUNmgR/pw5IpRV+JvlvEMTjkzienSxI9 echrpzQj4YUGORSyQ8xD0dQvUL1dibFEkzlPvL61BcUr+BMGmsB8eToOhI9wL8DgPN95gT GplgQ22vMr91Giqjna7Vd3eNNgah1GAEAjLLGTja8QSpOELxPuTprjtFt7l537+SC97RN1 wXqA2HmLNsyYhySCV3QUCMHGrMFTgMMCDSnzV3Qs8hOLI6zFh6MkjnmNNQMOFqTqAQur02 7nlpaZPTp3OqLD2y0SVDA+RQE8IaiR3hXHW4bOPrh5cSORmCfm5hf/CrUGZYkQ== Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (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 did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4NZqwB3gTFzPlb for ; Sun, 18 Dec 2022 17:44:26 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 2BIHiQpf004831 for ; Sun, 18 Dec 2022 17:44:26 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from bugzilla@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 2BIHiQFj004830 for gnome@FreeBSD.org; Sun, 18 Dec 2022 17:44:26 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: bugzilla set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: gnome@FreeBSD.org Subject: [Bug 268329] lang/gjs: fix build with clang/libc++ 15 Date: Sun, 18 Dec 2022 17:44:26 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Ports & Packages X-Bugzilla-Component: Individual Port(s) X-Bugzilla-Version: Latest X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: commit-hook@FreeBSD.org X-Bugzilla-Status: Open X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: gnome@FreeBSD.org X-Bugzilla-Flags: maintainer-feedback? X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: GNOME for FreeBSD -- porting and maintaining List-Archive: https://lists.freebsd.org/archives/freebsd-gnome List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-gnome@freebsd.org MIME-Version: 1.0 X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D268329 --- Comment #2 from commit-hook@FreeBSD.org --- A commit in branch main references this bug: URL: https://cgit.FreeBSD.org/ports/commit/?id=3D9f8385f9876a46d8566cd655062c8ba= 24efac2f5 commit 9f8385f9876a46d8566cd655062c8ba24efac2f5 Author: Dimitry Andric AuthorDate: 2022-12-12 13:49:23 +0000 Commit: Dimitry Andric CommitDate: 2022-12-18 17:34:13 +0000 lang/gjs: fix build with libc++ 15 During an exp-run for llvm 15 (see bug 265425), it turned out that lang/gjs failed to build with clang and libc++ 15: In file included from ../test/gjs-tests.cpp:11: In file included from /usr/include/c++/v1/random:1689: In file included from /usr/include/c++/v1/__random/discrete_distribution.h:18: In file included from /usr/include/c++/v1/numeric:167: In file included from /usr/include/c++/v1/functional:515: In file included from /usr/include/c++/v1/__functional/boyer_moore_searcher.h:24: In file included from /usr/include/c++/v1/array:127: In file included from /usr/include/c++/v1/algorithm:1851: In file included from /usr/include/c++/v1/__algorithm/ranges_sample.h= :13: In file included from /usr/include/c++/v1/__algorithm/sample.h:18: /usr/include/c++/v1/__random/uniform_int_distribution.h:162:5: error: static assertion failed due to requirement '__libcpp_random_is_valid_inttype::value': IntType must be a supported integer type static_assert(__libcpp_random_is_valid_inttype<_IntType>::value, "IntType must be a supported integer type"); ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../test/gjs-tests.cpp:71:16: note: in instantiation of template class 'std::uniform_int_distribution' requested here return std::uniform_int_distribution(lowest_value)(gen); ^ ../test/gjs-tests.cpp:942:30: note: in instantiation of function temp= late specialization 'Gjs::Test::get_random_number' requested here char32_t random_char32 =3D get_random_number(); ^ This is because std::uniform_int_distribution is only defined for strict integer types, such as short, int, etc. Use std::uniform_int_distribution instead, and cast the result back to a char32_t. PR: 268329 Approved by: portmgr (tcberner) MFH: 2022Q4 lang/gjs/files/patch-test_gjs-tests.cpp (new) | 11 +++++++++++ 1 file changed, 11 insertions(+) --=20 You are receiving this mail because: You are the assignee for the bug.=