From nobody Wed Oct 09 18:59:45 2024 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 4XP2J23777z5Yshs for ; Wed, 09 Oct 2024 18:59:46 +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 "R11" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4XP2J2216bz4Kx6 for ; Wed, 9 Oct 2024 18:59:46 +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=1728500386; 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=9D0FSojcy1X8cb+uHY8lO30vXb2Up92Lv+Y0MDoMvgU=; b=TKwwYlQS1kVELPvXhLQGn/Gt1PvIeMsQW5tNzkTVbD4zhujKpqgpoyqCA0GWnaZmLKjXq5 YO6gwRKlVeUxtA3DL6Mscqf2LyoOJDoVeNkIBG+SQlpuHDHCWR5JPLeYfRcgumK/Kvdw95 5GOODpNJiJ5unGGKjo3mSft8scWeoyglh4XWstKZm+qRPDjOWCap5nS8ewRbeLJ0ChIngf n3E/hQYutyrmzTMEwnVMyaBG82eZUdqytdYclG0W9q2eCN70J90TK8DYp12+lRnubTeo4w qTq2iAInOpg2ZYPQxuaoVKl6ujkRWfy4XPiRVrDjH9wMEb+Cigmwpm/7TT8lFQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1728500386; a=rsa-sha256; cv=none; b=w1kwF2QGr3zwghWCExCuq7TwDnvuE6p0AWoAmbGgzZN1b44dzRHUj1O3c7nSWs1bPL2AkI +EagmO6JzROr8+n2ssX/eljyUWSyIibkOoSEZjDDs0yYSzVX8nVlWdCrymmz9cAi2zt3cI 00Ed1pduqPsMMvPjRgM3VEScGgf9xjPCRnaNoqWKeyU6Y2A11byq6kZnGZ687VX+hJX81j vhF+oXIZrgdRVhVOrgifKJv/pSG3I5aB/JvCK9+t2UQQwwEV5cS1b7yrLhI0IqZv4ucv0R Mq2NaallV9Zv96H8k7FnIRV+6fKNXYo7pF88tJgIE5D7ivqLC8s6phYtUYcc/w== 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 4XP2J218VqzQgS for ; Wed, 9 Oct 2024 18:59:46 +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 499IxkvW043465 for ; Wed, 9 Oct 2024 18:59:46 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 499IxkKv043464 for ports-bugs@FreeBSD.org; Wed, 9 Oct 2024 18:59:46 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 281975] science/dlib-cpp: fix build with clang and libc++ 19 Date: Wed, 09 Oct 2024 18:59:45 +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: arrowd@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: X-BeenThere: freebsd-ports-bugs@freebsd.org Sender: owner-freebsd-ports-bugs@FreeBSD.org MIME-Version: 1.0 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D281975 Bug ID: 281975 Summary: science/dlib-cpp: fix build with clang and libc++ 19 Product: Ports & Packages Version: Latest Hardware: Any OS: Any Status: New Severity: Affects Some People Priority: --- Component: Individual Port(s) Assignee: arrowd@FreeBSD.org Reporter: dim@FreeBSD.org Assignee: arrowd@FreeBSD.org Flags: maintainer-feedback?(arrowd@FreeBSD.org) As noted in the libc++ 19 release notes [1], std::char_traits<> is now only provided for char, char8_t, char16_t, char32_t and wchar_t, and any instantiation for other types will fail. This causes science/dlib-cpp to fail to compile with clang 19 and libc++ 19, resulting in errors similar to: /usr/include/c++/v1/string:820:42: error: implicit instantiation of undef= ined template 'std::char_traits' 820 | static_assert(is_same<_CharT, typename traits_type::char_type>::value, | ^ =20 /wrkdirs/usr/ports/science/dlib-cpp/work/dlib-19.24/dlib/bigint/../unicode/= unicode.h:496:26: note: in instantiation of template class 'std::basic_string' requested here 496 | inline const ustring convert_utf8_to_utf32 ( | ^ /usr/include/c++/v1/__fwd/string.h:23:29: note: template is declared here 23 | struct _LIBCPP_TEMPLATE_VIS char_traits; | ^ These can be fixed by using `char32_t` instead of `uint32_t` for the `unichar` type. Also, clang 19 now implements CWG 96 [1], which requires a template argument list after a 'template' keyword, resulting in errors similar to: =20 /wrkdirs/usr/ports/science/dlib-cpp/work/dlib-19.24/dlib/filtering/../globa= l_optimization/find_max_global.h:61:130: error: a template argument list is expected after a name prefixed by the template keyword [-Wmissing-template-arg-list-after-template-kw] 61 | static auto go(T&& f, const matrix& a) -> decltype(call_function_and_expand_args::template go(std::forward(f),a)) |=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20 ^ This can be fixed by adding `<>` after the `go` identifier. [1] https://libcxx.llvm.org/ReleaseNotes/19.html#deprecations-and-removals --=20 You are receiving this mail because: You are the assignee for the bug.=