From nobody Sat Aug 17 22:17:27 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 4WmYBh367Gz5Tmvv for ; Sat, 17 Aug 2024 22:17:32 +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 4WmYBh1q6lz4Vb7 for ; Sat, 17 Aug 2024 22:17:32 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1723933052; a=rsa-sha256; cv=none; b=wozEVv5HfXVwUhmsB22Lv4i8sjtGkzh9skO+VeLG6mUD+k3hsYiJPErWuDcJlv10d6Ubeo b2D7jbPwZ1PqAVVQRZhKmV8DqlqP3r4guJ9r+0hI8Li9xTAarN/7Eg73S7QBOO9KLyxnTA Bro1/v7hnMznY7GL9C6kJzqqDmP3+LvlwFmPoqMQN49ASXA/dtszHGM0siEMjyZsqL9tCr CwT0tFoaYNNkqVKcnBefs2YIq3QsRs5Hw47NXqBGJHC9IqA+P8JJujvgYRhnNRXZAFBhQ0 BWGko7fLA0WPC/x1ce8aMje5PeMlsisBRLDcoD+rhbpFHwyYmd7fjoJwx90MXw== 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=1723933052; 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=hljqeOqWzzYextsZcE033I98N6mOdvbuRI0Ux7RC844=; b=cY9wbJLQFIY7Ckf+UtnNT3gHlQdAbJGzSSKSmS4/iJzJtglHKzLearAbnhxNbklGntliil RTEEeYspgEJkjWGLzxTcKXjvk0clgGXcAJsqZ0iEJh+EOvsHiU/r0o+yjtbeCvh+soEHAG 0qdwtHzR+ul4FkOxFv+dWSQ04XKIWGVBDvMiJIhEbGWowf7Ibtdj1Zqoq6+oFwjACy976Z 3Ton1gTaGdXVL1LwCpJaIvnEUwMvbQHc6GvrthJXTTwvrSCYF7TihmxxBCE/TkPXbMBWyG OW9pXqDOPY58dvy9u2XK4ALMSYfRG++5FsKpQ1RK+U3hZ60+eXSB53T3glgHTQ== 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 4WmYBh1CLcz16LW for ; Sat, 17 Aug 2024 22:17:32 +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 47HMHWko065339 for ; Sat, 17 Aug 2024 22:17:32 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 47HMHWBD065333 for ports-bugs@FreeBSD.org; Sat, 17 Aug 2024 22:17:32 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 280893] math/vtk9: fix build with clang and libc++ 19 Date: Sat, 17 Aug 2024 22:17:27 +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: yuri@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=3D280893 Bug ID: 280893 Summary: math/vtk9: 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: yuri@freebsd.org Reporter: dim@FreeBSD.org Assignee: yuri@freebsd.org Flags: maintainer-feedback?(yuri@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 math/vtk9 to fail to compile with clang 19 and libc++ 19, resulting in errors similar to: =20=20=20 /wrkdirs/usr/ports/math/vtk9/work/VTK-9.2.6/ThirdParty/diy2/vtkdiy2/include= /vtkdiy2/fmt/core.h:272:30: error: implicit instantiation of undefined template 'std::char_traits' 272 | : data_(s), size_(std::char_traits::length(s)) {} | ^ =20=20=20 /wrkdirs/usr/ports/math/vtk9/work/VTK-9.2.6/ThirdParty/diy2/vtkdiy2/include= /vtkdiy2/fmt/format.h:487:9: note: in instantiation of member function 'fmt::basic_string_view::basic_string_view' requested here 487 | : basic_string_view(reinterpret_cast(s)) {} | ^ /usr/include/c++/v1/__string/char_traits.h:45:8: note: template is decl= ared here 45 | struct char_traits; | ^ This is actually a problem in the vendored version of Victor Zverovich's fmt library [2]. More recent versions of this library have completely rewritten this part of the header, so work around the issue by making the basic_string_view part conditional on char8_t being actually available. (This is only in C++20 and later.) Clang 19 now also diagnoses incorrect member accesses, which causes errors similar to: =20=20=20 /wrkdirs/usr/ports/math/vtk9/work/VTK-9.2.6/Utilities/octree/octree/octree_= node.txx:210:16: error: no member named '_M_chilren' in 'octree_node'; did you m= ean 'm_children'? 210 | return this->_M_chilren[child]; | ^~~~~~~~~~ | m_children =20=20=20 /wrkdirs/usr/ports/math/vtk9/work/VTK-9.2.6/Utilities/octree/octree/octree_= node.h:37:23: note: 'm_children' declared here 37 | octree_node_pointer m_children; | ^ This was apparently a typo, and upstream vtk fixed this in . Apply that as a small patch. [1] https://libcxx.llvm.org/ReleaseNotes/19.html#deprecations-and-removals [2] https://fmt.dev/ --=20 You are receiving this mail because: You are the assignee for the bug.=