From nobody Mon Dec 12 13:53:54 2022 X-Original-To: ports-bugs@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 4NW34y6QXyz4kS9X for ; Mon, 12 Dec 2022 13:53:54 +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 4NW34y42kvz4FfD for ; Mon, 12 Dec 2022 13:53:54 +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=1670853234; 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; bh=oUJyrjh+drtl444ykNhcsPTOn4OIGukxBHRW3TC3zMY=; b=oEQ55sisph6DM1cv8z4xZf/5dLicVRl4GcSQkhmIIVpivH7regHgPKAVO8xK+YZPUKvlC8 sJDS5tygFAHU9XeHd8tO1WmG0WMcGg8E5T+AVI21mxhm59sUEihwaqnmo7CJBnx7fAuLSW VzTWVuX1XSb9f+5ZzaEIEG3VOAylgQ6DUu4icmdcFdVSgVOM3pteKzklLwU5auM5zkZ+Fw 1fLZOrAT9VVys4f9HOFtMyUmPPJnnSlYJlW2FuvqMiHEmnp0/p/BVtdx9mgsz+k6ecvzI4 WjaaSuWlSn5LeozzCQFnvpYjom8IAFPG14Z8tK0rtTxn4IKGQc2+34gVTo3uqg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1670853234; a=rsa-sha256; cv=none; b=Nn5muU6w7x2PPed4yC806RpdnuXtSivAaifWrLiL0HdWGVpd4jXUo7q7+HO++QnYjLLbbo VuHbJ+snaODGMlEDUMihuffkGjcFPCwZ6r1DlFjMNWMFEP5FSKqbi2av3UEp73HN5KcSEB xrIaL/CsOxV5SbXvrZ9vjOTrd1gSvl28J1oPWKL6SHd0Ug0hXb2GvmIy7clv/V1O/Icli9 MxxPeVui4QZr3lfp07pjD8KFOX2cGoqEhKRDevxQQ89X+eIrr0+Xz7JDUlnW42eAy1mgoD JSQG8Wx9MEJHCtSM6Nsu0zuCXCg6EFhOpWR8ABgaD7Oszb45pU3qVdJpf75VHg== 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 4NW34y356BzcC6 for ; Mon, 12 Dec 2022 13:53:54 +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 2BCDrs9F037460 for ; Mon, 12 Dec 2022 13:53:54 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 2BCDrsnk037459 for ports-bugs@FreeBSD.org; Mon, 12 Dec 2022 13:53:54 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: ports-bugs@FreeBSD.org Subject: [Bug 268329] lang/gjs: fix build with clang/libc++ 15 Date: Mon, 12 Dec 2022 13:53:54 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new 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: dim@FreeBSD.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: gnome@FreeBSD.org X-Bugzilla-Flags: maintainer-feedback? X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter flagtypes.name Message-ID: 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: Ports bug reports List-Archive: https://lists.freebsd.org/archives/freebsd-ports-bugs List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-ports-bugs@freebsd.org X-BeenThere: freebsd-ports-bugs@freebsd.org MIME-Version: 1.0 X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D268329 Bug ID: 268329 Summary: lang/gjs: fix build with clang/libc++ 15 Product: Ports & Packages Version: Latest Hardware: Any OS: Any Status: New Severity: Affects Some People Priority: --- Component: Individual Port(s) Assignee: gnome@FreeBSD.org Reporter: dim@FreeBSD.org Assignee: gnome@FreeBSD.org Flags: maintainer-feedback?(gnome@FreeBSD.org) 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: sta= tic 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, "Int= Type 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 template 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 t= o a char32_t. --=20 You are receiving this mail because: You are the assignee for the bug.=