From nobody Wed Jan 18 21:16:06 2023 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 4Nxz865ZTdz2t1wB for ; Wed, 18 Jan 2023 21:16:06 +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 4Nxz864WzXz44hc for ; Wed, 18 Jan 2023 21:16:06 +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=1674076566; 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=AkS+X2yWTXBjZ/faz5l2yCqJWVP7WYSuXxUOX795Ghs=; b=lN1oKE/9/4OPudvZ376y+/9O3ZNhdpDXnjIMlFtqB0KkHComcnheaJw2tVCT643wwFqR6u TRrTyfyrvvq2bN0tZu8sfqM6jeJGMV1GWhqhsFwlB5Ay0whhe2pDCOivlYrHA/a+J0786z 7jsVnXAy3pRhfCBu+z9dg472QuFn5m3sSXXogTs7MEDWNFrwnH2DZv6FlPPXyCW2afNlz4 KxWAmqIGELNgPjv4KtmZ2l/CfiNxP2ifwcV6xsymQdwwarDh3hWfEuO8Q7f5fLIleuGYcR t1xXqS4Cp/47SJsxBSXlf9pTxXiAoAMSbrXFGas5Q0xEF6Rq/YDBGucHpFZN6A== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1674076566; a=rsa-sha256; cv=none; b=IwE8YPnguCR/m843B3M488+tSoGbz+izhjnusDEhhfD6i3ACn1i54hW6nfOzGhftN4ta8L HyWVLuThJVpdYNPVXJvOuzWRS3mHrDihXtGbs2BQTnGfT65X9BmZgGZzrpS6ZmfQ/5IA59 fh6Rlw5UiCNrAATalPWfl7SFTj4CiglDeqTm1SqsaUZGH5bokCuH5/ukOWbwMM9dthzVAu o2ilNeTjDfX9xOWS5GpbZXNY0dks/B9APcYCo5XV7sjxuobDYcoBwPLdAMcc9CLv947MRp /lnTl+nZdxcL/94FUqWyPp3iyTNp2RehAXg3Rgl4ZV2FNugv3K8DRzZsQ1YqKw== 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 4Nxz863Tc5zQh1 for ; Wed, 18 Jan 2023 21:16:06 +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 30ILG6cH000358 for ; Wed, 18 Jan 2023 21:16:06 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 30ILG6Wt000357 for ports-bugs@FreeBSD.org; Wed, 18 Jan 2023 21:16:06 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 269035] databases/soci: fix build with libc++ 15 Date: Wed, 18 Jan 2023 21:16:06 +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: nc@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=3D269035 Bug ID: 269035 Summary: databases/soci: fix build with libc++ 15 Product: Ports & Packages Version: Latest Hardware: Any OS: Any Status: New Severity: Affects Some People Priority: --- Component: Individual Port(s) Assignee: nc@FreeBSD.org Reporter: dim@FreeBSD.org Flags: maintainer-feedback?(nc@FreeBSD.org) Assignee: nc@FreeBSD.org During an exp-run for llvm 15 (see bug 265425), it turned out that databases/soci failed to build with clang 15: In file included from /wrkdirs/usr/ports/databases/soci/work/soci-4.0.3/tests/empty/test-empty.cp= p:8: In file included from /wrkdirs/usr/ports/databases/soci/work/soci-4.0.3/include/soci/soci.h:12: In file included from /wrkdirs/usr/ports/databases/soci/work/soci-4.0.3/include/soci/soci-platfor= m.h:18: In file included from /usr/include/c++/v1/string:551: In file included from /usr/include/c++/v1/string_view:222: 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:235:5: error: sta= tic assertion failed due to requirement '__libcpp_random_is_valid_urng::value': static_assert(__libcpp_random_is_valid_urng<_URNG>::value, ""); ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/c++/v1/__algorithm/shuffle.h:154:35: note: in instantiation = of function template specialization 'std::uniform_int_distribution::operator()' requested here difference_type __i =3D __uid(__g, _Pp(0, __d)); ^ /usr/include/c++/v1/__algorithm/shuffle.h:166:14: note: in instantiation = of function template specialization 'std::__shuffle, std::__wrap_iter, Catch::RandomNumberGenerator &>' requested here (void)std::__shuffle<_ClassicAlgPolicy>( ^ /wrkdirs/usr/ports/databases/soci/work/soci-4.0.3/tests/catch.hpp:7186:18: note: in instantiation of function template specialization 'std::shuffle, Catch::RandomNumberGener= ator &>' requested here std::shuffle( vector.begin(), vector.end(), rng ); ^ /wrkdirs/usr/ports/databases/soci/work/soci-4.0.3/tests/catch.hpp:7204:44: note: in instantiation of function template specialization 'Catch::RandomNumberGenerator::shuffle>' reque= sted here RandomNumberGenerator::shuffle( sorted ); ^ This is because soci declares its RandomNumberGenerator class with a result_type of std::ptrdiff_t, which is signed. However, the urng class used for std::shuffle must have an unsigned integer type as its result type. Use std::size_t instead. --=20 You are receiving this mail because: You are the assignee for the bug.=