From nobody Sun Nov 03 10:56:46 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 4XhBPB6C2qz5brd2 for ; Sun, 03 Nov 2024 10:56: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 "R10" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4XhBPB4WG4z4cXl for ; Sun, 3 Nov 2024 10:56: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=1730631406; 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=V5DB+RWzVb7LrA5CDhhaq1d+4WsI1VFWE1DaS4fM/qg=; b=r/a5BBeK+0H8FB+gc0F5jXOSwVZEXWqln1/dxQXOwqs4AMcIi+2av7OYiLtxSdT6u/Cw/6 PXzVZG2xvJ9LELyR7KM/7y13u6j2Y0TW6/+WPq/d6GzjCPwb0BbgTagDjWaUpTIuCVfdWo WNuxknTTCFdKDrGedYkCGGxrDdTHtftDS5GfLB8apq3zjPz1q67DsppfSQ4dk4u/7Q80df yDblJQ4Fyp614FwoSk0vLW3ScEvrQtE8l/YS4UNiqnXohyIMdVgzD8c40fJ63bTCvP12iT CW43an8DAiWaNPcqfK2B68AIztPOcCJY3jzF7dwn0UQmBeO1g6uvLq+EYGf2Kw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1730631406; a=rsa-sha256; cv=none; b=OvziRRnJURgotaOwxWLJI2K5g7oitlT3zyfkneCN4SRevVMelL5kaqyOfw4/NmaeIVJi6Z qnzzUgMCzdbB3wuq7oAOLa7zwv4bRL2Tf8llv+S78PHTabPef34naYAzGGKsnXcoEPv2Zk ROxz0ODg/d7v5dKdGD0cyrrrwZtbJjyVGgIi29N7k8D2Df0SsAESoMUNtPz/lPvNDkVV5S 7fJwx7UvM35NtdIENFFBJN3iv/1attCyAP36f5+hDiASBzmtpU0hhnhFyh7xZI9UM5TNDB fJ9Zf3eBYpKDMPlBRnPflTl7ZVtTJ/66yeSSgamEnJP9uq7kv+q3foswVfioUg== 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 4XhBPB3WWwzmRP for ; Sun, 3 Nov 2024 10:56: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 4A3AukjN018311 for ; Sun, 3 Nov 2024 10:56:46 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 4A3AukUp018310 for ports-bugs@FreeBSD.org; Sun, 3 Nov 2024 10:56: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 282512] cad/kicad-devel: fix build with libc++ 19 Date: Sun, 03 Nov 2024 10:56:46 +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: mr@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=3D282512 Bug ID: 282512 Summary: cad/kicad-devel: fix build with libc++ 19 Product: Ports & Packages Version: Latest Hardware: Any OS: Any Status: New Severity: Affects Some People Priority: --- Component: Individual Port(s) Assignee: mr@FreeBSD.org Reporter: dim@FreeBSD.org Flags: maintainer-feedback?(mr@FreeBSD.org) Assignee: mr@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 cad/kicad-devel to fail to compile with clang 19 and libc++ 19, resulting in errors similar to: =20 /wrkdirs/usr/ports/cad/kicad-devel/work/kicad-6ebd8f46fe24533214b9ed43f1f7e= 5a4b80dcc71/thirdparty/nanodbc/nanodbc/nanodbc.cpp:261:25: error: implicit instantiation of undefined template 'std::char_traits' 261 | auto const n =3D std::char_traits::length(ar= ray); | ^ /usr/include/c++/v1/__string/char_traits.h:45:8: note: template is declar= ed here 45 | struct char_traits; | ^ =20 /wrkdirs/usr/ports/cad/kicad-devel/work/kicad-6ebd8f46fe24533214b9ed43f1f7e= 5a4b80dcc71/thirdparty/nanodbc/nanodbc/nanodbc.cpp:3576:52: error: implicit instantiation of undefined template 'std::char_traits' 3576 | dsn.name =3D string(&name[0], &name[std::char_traits::length(name)]); | ^ /usr/include/c++/v1/__string/char_traits.h:45:8: note: template is declar= ed here 45 | struct char_traits; | ^ =20 /wrkdirs/usr/ports/cad/kicad-devel/work/kicad-6ebd8f46fe24533214b9ed43f1f7e= 5a4b80dcc71/thirdparty/nanodbc/nanodbc/nanodbc.cpp:3578:49: error: implicit instantiation of undefined template 'std::char_traits' 3578 | string(&driver[0], &driver[std::char_traits::length(driver)]); | ^ /usr/include/c++/v1/__string/char_traits.h:45:8: note: template is declar= ed here 45 | struct char_traits; | ^ =20 /wrkdirs/usr/ports/cad/kicad-devel/work/kicad-6ebd8f46fe24533214b9ed43f1f7e= 5a4b80dcc71/thirdparty/nanodbc/nanodbc/nanodbc.cpp:3629:54: error: implicit instantiation of undefined template 'std::char_traits' 3629 | drv.name =3D string(&descr[0], &descr[std::char_traits::length(descr)]); | ^ /usr/include/c++/v1/__string/char_traits.h:45:8: note: template is declar= ed here 45 | struct char_traits; | ^ and: /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/cad/kicad-devel/work/kicad-6ebd8f46fe24533214b9ed43f1f7e= 5a4b80dcc71/thirdparty/compoundfilereader/compoundfilereader.h:226:21: note: in instantiation of template class 'std::basic_string' requested here 226 | utf16string dir; | ^ /usr/include/c++/v1/__fwd/string.h:23:29: note: template is declared here 23 | struct _LIBCPP_TEMPLATE_VIS char_traits; | ^ and: =20 /wrkdirs/usr/ports/cad/kicad-devel/work/kicad-6ebd8f46fe24533214b9ed43f1f7e= 5a4b80dcc71/thirdparty/nlohmann_json/nlohmann/json.hpp:3604:22: error: implicit instantiation of undefined template 'std::char_traits' 3604 | struct char_traits : std::char_traits | ^ =20 /wrkdirs/usr/ports/cad/kicad-devel/work/kicad-6ebd8f46fe24533214b9ed43f1f7e= 5a4b80dcc71/thirdparty/nlohmann_json/nlohmann/json.hpp:6289:14: note: in instantiation of template class 'nlohmann::detail::char_traits' requested here 6289 | typename char_traits::int_type get_character() | ^ =20 /wrkdirs/usr/ports/cad/kicad-devel/work/kicad-6ebd8f46fe24533214b9ed43f1f7e= 5a4b80dcc71/thirdparty/nlohmann_json/nlohmann/json.hpp:6465:22: note: in instantiation of template class 'nlohmann::detail::iterator_input_adapter' reques= ted here 6465 | BaseInputAdapter base_adapter; | ^ =20 /wrkdirs/usr/ports/cad/kicad-devel/work/kicad-6ebd8f46fe24533214b9ed43f1f7e= 5a4b80dcc71/thirdparty/nlohmann_json/nlohmann/json.hpp:23323:16: note: in instantiation of template class 'nlohmann::detail::wide_string_input_adapter, wxUniChar>' requested here 23323 | parser(detail::input_adapter(std::forward(i)), cb, allow_exceptions, ignore_comments).parse(true, result); | ^ =20 /wrkdirs/usr/ports/cad/kicad-devel/work/kicad-6ebd8f46fe24533214b9ed43f1f7e= 5a4b80dcc71/eeschema/sch_io/easyedapro/sch_io_easyedapro.cpp:209:53: note: in instantiation of function template specialization 'nlohmann::basic_json<>::parse' requested here 209 | nlohmann::json js =3D nlohmann::json::parse( txt.ReadLine() ); | ^ /usr/include/c++/v1/__string/char_traits.h:45:8: note: template is declar= ed here 45 | struct char_traits; | ^ The first batch of errors can be fixed by providing a simple `length()` function for the `NANODBC_SQLCHAR const*` type. The second batch can be fixed by using `std::basic_string` for `utf16string`, and adjusting the call to `std::basic_string::append`. The third batch can be fixed by adding a `char_traits` definition specifically for the `wxUniChar` type. [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.=