[Bug 278948] sysutils/bareos-server: error: 'char_traits<fmt::detail::char8_type>' is deprecated: char_traits<T> for T not equal to char, wchar_t, char8_t, char16_t or char32_t is non-standard and is provided for a temporary period

From: <bugzilla-noreply_at_freebsd.org>
Date: Mon, 13 May 2024 09:47:33 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=278948

            Bug ID: 278948
           Summary: sysutils/bareos-server: error:
                    'char_traits<fmt::detail::char8_type>' is deprecated:
                    char_traits<T> for T not equal to char, wchar_t,
                    char8_t, char16_t or char32_t is non-standard and is
                    provided for a temporary period
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: acm@FreeBSD.org
          Reporter: Trond.Endrestol@ximalas.info
             Flags: maintainer-feedback?(acm@FreeBSD.org)
          Assignee: acm@FreeBSD.org

FAILED: core/src/stored/CMakeFiles/bareossd.dir/device_resource.cc.o
ccache /usr/local/libexec/ccache/c++ -DFMT_HEADER_ONLY=1 -D_FILE_OFFSET_BITS=64
-Dbareossd_EXPORTS
-I/construction/xports/sysutils/bareos-server/work/bareos-Release-23.0.2/core/src
-I/construction/xports/sysutils/bareos-serv
er/work/bareos-Release-23.0.2/third-party/fmt/include -O2 -pipe
-fno-omit-frame-pointer -DMDB_DSYNC=O_SYNC -DMDB_USE_POSIX_SEM=1
-fstack-protector-strong -isystem /usr/local/include -fno-strict-aliasing 
-isystem /usr/local/
include -Wsuggest-override -Wformat -Werror=format-security
-fdebug-prefix-map=/construction/xports/sysutils/bareos-server/work/bareos-Release-23.0.2/core=.
-fmacro-prefix-map=/construction/xports/sysutils/bareos-server/work
/bareos-Release-23.0.2/core=. -Wno-invalid-offsetof -Werror -Wall -Wextra -O2
-pipe -fno-omit-frame-pointer -DMDB_DSYNC=O_SYNC -DMDB_USE_POSIX_SEM=1
-fstack-protector-strong -isystem /usr/local/include -fno-strict-aliasing
-isystem /usr/local/include   -std=gnu++17 -fPIC -pthread -MD -MT
core/src/stored/CMakeFiles/bareossd.dir/device_resource.cc.o -MF
core/src/stored/CMakeFiles/bareossd.dir/device_resource.cc.o.d -o
core/src/stored/CMakeFiles/
bareossd.dir/device_resource.cc.o -c
/construction/xports/sysutils/bareos-server/work/bareos-Release-23.0.2/core/src/stored/device_resource.cc
In file included from
/construction/xports/sysutils/bareos-server/work/bareos-Release-23.0.2/core/src/stored/device_resource.cc:24:
In file included from
/construction/xports/sysutils/bareos-server/work/bareos-Release-23.0.2/core/src/lib/parse_conf.h:27:
In file included from
/construction/xports/sysutils/bareos-server/work/bareos-Release-23.0.2/core/src/include/bareos.h:130:
In file included from
/construction/xports/sysutils/bareos-server/work/bareos-Release-23.0.2/core/src/include/baconfig.h:34:
In file included from
/construction/xports/sysutils/bareos-server/work/bareos-Release-23.0.2/core/src/lib/message.h:36:
In file included from
/construction/xports/sysutils/bareos-server/work/bareos-Release-23.0.2/core/src/lib/message_destination_info.h:28:
In file included from /usr/include/c++/v1/string:625:
In file included from /usr/include/c++/v1/string_view:213:
/usr/include/c++/v1/__fwd/string_view.h:22:41: error:
'char_traits<fmt::detail::char8_type>' is deprecated: char_traits<T> for T not
equal to char, wchar_t, char8_t, char16_t or char32_t is non-standard and is
provided for a
 temporary period. It will be removed in LLVM 19, so please migrate off of it.
[-Werror,-Wdeprecated-declarations]
   22 | template <class _CharT, class _Traits = char_traits<_CharT> >
      |                                         ^
/construction/xports/sysutils/bareos-server/work/bareos-Release-23.0.2/third-party/fmt/include/fmt/core.h:377:26:
note: in instantiation of default argument for
'basic_string_view<fmt::detail::char8_type>' required here
  377 | template <typename Char> using std_string_view =
std::basic_string_view<Char>;
      |                          ^~~~~
/construction/xports/sysutils/bareos-server/work/bareos-Release-23.0.2/third-party/fmt/include/fmt/core.h:467:50:
note: in instantiation of template type alias 'std_string_view' requested here
  467 |                                       S,
detail::std_string_view<Char>>::value)>
      |                                                  ^
/construction/xports/sysutils/bareos-server/work/bareos-Release-23.0.2/third-party/fmt/include/fmt/format.h:713:57:
note: in instantiation of template class
'fmt::basic_string_view<fmt::detail::char8_type>' requested here
  713 | inline auto compute_width(basic_string_view<char8_type> s) -> size_t {
      |                                                         ^
/usr/include/c++/v1/__string/char_traits.h:81:8: note:
'char_traits<fmt::detail::char8_type>' has been explicitly marked deprecated
here
   81 | struct _LIBCPP_DEPRECATED_(
      |        ^
/usr/include/c++/v1/__config:978:53: note: expanded from macro
'_LIBCPP_DEPRECATED_'
  978 | #      define _LIBCPP_DEPRECATED_(m) __attribute__((__deprecated__(m)))
      |                                                     ^
1 error generated.
ninja: build stopped: subcommand failed.
===> Compilation failed unexpectedly.
Try to set MAKE_JOBS_UNSAFE=yes and rebuild before reporting the failure to
the maintainer.
*** Error code 1

Stop.
make: stopped in /xports/sysutils/bareos-server

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