[Bug 284096] cad/freecad fix build with clang 19

From: <bugzilla-noreply_at_freebsd.org>
Date: Thu, 16 Jan 2025 11:45:23 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=284096

            Bug ID: 284096
           Summary: cad/freecad fix build with clang 19
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: cmt@freebsd.org
          Reporter: kwhite.uottawa@gmail.com
          Assignee: cmt@freebsd.org
             Flags: maintainer-feedback?(cmt@freebsd.org)

Created attachment 256730
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=256730&action=edit
char_traits patch

cad/freecad fails to build with errors like:

In file included from
/wrkdirs/usr/ports/cad/freecad/work/FreeCAD-1.0.0/src/CXX/Python3/Exception.hxx:47:
/usr/include/c++/v1/string:820:42: error: implicit instantiation of undefined
template 'std::char_traits<unsigned int>'
  820 |   static_assert(is_same<_CharT, typename
traits_type::char_type>::value,
      |                                          ^
/wrkdirs/usr/ports/cad/freecad/work/FreeCAD-1.0.0/src/CXX/Python3/Objects.hxx:2233:20:
note: in instantiation of template class 'std::basic_string<unsigned int>'
requested here
 2233 |         ucs4string as_ucs4string() const
      |                    ^

A possible fix is provided in https://github.com/FreeCAD/FreeCAD/issues/17987

-- 
You are receiving this mail because:
You are the assignee for the bug.